-
Notifications
You must be signed in to change notification settings - Fork 583
Add SphericalGLSurfaceView
support to PlayerSurface
#2619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,15 @@ | |
*/ | ||
package androidx.media3.demo.compose.data | ||
|
||
import androidx.media3.ui.compose.SURFACE_TYPE_SPHERICAL_GL_SURFACE_VIEW | ||
import androidx.media3.ui.compose.SURFACE_TYPE_SURFACE_VIEW | ||
|
||
val videos = | ||
listOf( | ||
"https://html5demos.com/assets/dizzy.mp4", | ||
"https://storage.googleapis.com/exoplayer-test-media-0/shortform_2.mp4", | ||
"https://storage.googleapis.com/exoplayer-test-media-1/gen-3/screens/dash-vod-single-segment/video-vp9-360.webm", | ||
"https://storage.googleapis.com/exoplayer-test-media-0/shortform_3.mp4", | ||
mapOf( | ||
"https://html5demos.com/assets/dizzy.mp4" to SURFACE_TYPE_SURFACE_VIEW, | ||
"https://storage.googleapis.com/exoplayer-test-media-0/shortform_2.mp4" to SURFACE_TYPE_SURFACE_VIEW, | ||
"https://storage.googleapis.com/exoplayer-test-media-1/gen-3/screens/dash-vod-single-segment/video-vp9-360.webm" to SURFACE_TYPE_SURFACE_VIEW, | ||
"https://storage.googleapis.com/exoplayer-test-media-0/shortform_3.mp4" to SURFACE_TYPE_SURFACE_VIEW, | ||
// https://bitmovin.com/demos/vr-360/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: leftover uri There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I put this comment to explain where the video comes from. |
||
"https://cdn.bitmovin.com/content/assets/playhouse-vr/progressive.mp4" to SURFACE_TYPE_SPHERICAL_GL_SURFACE_VIEW, | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Proguard rules specific to the UI Compose module. | ||
|
||
# Constructor method and classes accessed via reflection in PlayerSurface | ||
-dontnote androidx.media3.exoplayer.video.spherical.SphericalGLSurfaceView | ||
-keepclassmembers class androidx.media3.exoplayer.video.spherical.SphericalGLSurfaceView { | ||
<init>(android.content.Context); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBD: this will be triggered on all the events, even when they are not relevant to localConfiguration. We are considering adding a
player.listen(Player.Events, Player.()->Unit)
overload that will let you specify the relevant events for the actionable-trailing-lambda. I'll update this comment once I push that.