Skip to content

Commit

Permalink
feat(Main): add video example using DASH uri
Browse files Browse the repository at this point in the history
closes #58
  • Loading branch information
aelnonym committed Jun 13, 2023
1 parent 4edea30 commit 5a387f8
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MainActivity : ComponentActivity() {
.fillMaxSizeOnLandscape(orientation = orientation)
.fillMaxWidth()
) {
VideoFromHLSUri()
VideoFromDASHUri()
}
RecommendedVideosComponent()
}
Expand Down Expand Up @@ -75,6 +75,21 @@ fun VideoFromHLSUri() {
)
}

@Composable
fun VideoFromDASHUri() {
EnhancedVideoPlayer(
mediaItem = MediaItem.fromUri(
"https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd"
),
zoomToFit = false,
enableImmersiveMode = true,
alwaysRepeat = false,
settingsControlsCustomization = SettingsControlsCustomization(
speeds = listOf(0.5f, 1f, 2f, 4f)
)
)
}

@Composable
fun VideoFromResources() {
EnhancedVideoPlayer(
Expand Down

0 comments on commit 5a387f8

Please sign in to comment.