Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grayjay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoStreaming
Grayjay
Commits
c025913f
Commit
c025913f
authored
1 year ago
by
Koen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed tutorial video aspect ratio.
parent
48b2c68e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/TutorialFragment.kt
+9
-5
9 additions, 5 deletions
...formplayer/fragment/mainactivity/main/TutorialFragment.kt
with
9 additions
and
5 deletions
app/src/main/java/com/futo/platformplayer/fragment/mainactivity/main/TutorialFragment.kt
+
9
−
5
View file @
c025913f
...
@@ -108,9 +108,9 @@ class TutorialFragment : MainFragment() {
...
@@ -108,9 +108,9 @@ class TutorialFragment : MainFragment() {
}
}
}
}
class
TutorialVideoSourceDescriptor
(
url
:
String
,
duration
:
Long
)
:
VideoUnMuxedSourceDescriptor
()
{
class
TutorialVideoSourceDescriptor
(
url
:
String
,
duration
:
Long
,
width
:
Int
,
height
:
Int
)
:
VideoUnMuxedSourceDescriptor
()
{
override
val
videoSources
:
Array
<
IVideoSource
>
=
arrayOf
(
override
val
videoSources
:
Array
<
IVideoSource
>
=
arrayOf
(
VideoUrlSource
(
"
1080p"
,
url
,
1920
,
1080
,
duration
,
"video/mp4"
)
VideoUrlSource
(
"
Original"
,
url
,
width
,
height
,
duration
,
"video/mp4"
)
)
)
override
val
audioSources
:
Array
<
IAudioSource
>
=
arrayOf
()
override
val
audioSources
:
Array
<
IAudioSource
>
=
arrayOf
()
}
}
...
@@ -121,7 +121,9 @@ class TutorialFragment : MainFragment() {
...
@@ -121,7 +121,9 @@ class TutorialFragment : MainFragment() {
override
val
description
:
String
,
override
val
description
:
String
,
thumbnailUrl
:
String
,
thumbnailUrl
:
String
,
videoUrl
:
String
,
videoUrl
:
String
,
override
val
duration
:
Long
override
val
duration
:
Long
,
width
:
Int
=
1920
,
height
:
Int
=
1080
)
:
IPlatformVideoDetails
{
)
:
IPlatformVideoDetails
{
override
val
id
:
PlatformID
=
PlatformID
(
"tutorial"
,
uuid
)
override
val
id
:
PlatformID
=
PlatformID
(
"tutorial"
,
uuid
)
override
val
contentType
:
ContentType
=
ContentType
.
MEDIA
override
val
contentType
:
ContentType
=
ContentType
.
MEDIA
...
@@ -138,7 +140,7 @@ class TutorialFragment : MainFragment() {
...
@@ -138,7 +140,7 @@ class TutorialFragment : MainFragment() {
override
val
isLive
:
Boolean
=
false
override
val
isLive
:
Boolean
=
false
override
val
rating
:
IRating
=
RatingLikes
(-
1
)
override
val
rating
:
IRating
=
RatingLikes
(-
1
)
override
val
viewCount
:
Long
=
-
1
override
val
viewCount
:
Long
=
-
1
override
val
video
:
IVideoSourceDescriptor
=
TutorialVideoSourceDescriptor
(
videoUrl
,
duration
)
override
val
video
:
IVideoSourceDescriptor
=
TutorialVideoSourceDescriptor
(
videoUrl
,
duration
,
width
,
height
)
override
fun
getComments
(
client
:
IPlatformClient
):
IPager
<
IPlatformComment
>
{
override
fun
getComments
(
client
:
IPlatformClient
):
IPager
<
IPlatformComment
>
{
return
EmptyPager
()
return
EmptyPager
()
}
}
...
@@ -210,7 +212,9 @@ class TutorialFragment : MainFragment() {
...
@@ -210,7 +212,9 @@ class TutorialFragment : MainFragment() {
description
=
"How can I monetize as a creator?"
,
description
=
"How can I monetize as a creator?"
,
thumbnailUrl
=
"https://releases.grayjay.app/tutorials/monetization.jpg"
,
thumbnailUrl
=
"https://releases.grayjay.app/tutorials/monetization.jpg"
,
videoUrl
=
"https://releases.grayjay.app/tutorials/monetization.mp4"
,
videoUrl
=
"https://releases.grayjay.app/tutorials/monetization.mp4"
,
duration
=
47
duration
=
47
,
1080
,
1920
)
)
)
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment