Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
674d70e8
authored
Nov 19, 2021
by
ibaker
Committed by
tonihei
Nov 19, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Migrate the GL demo app from PlayerView to StyledPlayerView
PiperOrigin-RevId: 411006397
parent
dad44a1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/MainActivity.java
demos/gl/src/main/res/layout/main_activity.xml
demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/MainActivity.java
View file @
674d70e8
...
@@ -34,7 +34,7 @@ import com.google.android.exoplayer2.drm.HttpMediaDrmCallback;
...
@@ -34,7 +34,7 @@ import com.google.android.exoplayer2.drm.HttpMediaDrmCallback;
import
com.google.android.exoplayer2.source.MediaSource
;
import
com.google.android.exoplayer2.source.MediaSource
;
import
com.google.android.exoplayer2.source.ProgressiveMediaSource
;
import
com.google.android.exoplayer2.source.ProgressiveMediaSource
;
import
com.google.android.exoplayer2.source.dash.DashMediaSource
;
import
com.google.android.exoplayer2.source.dash.DashMediaSource
;
import
com.google.android.exoplayer2.ui.PlayerView
;
import
com.google.android.exoplayer2.ui.
Styled
PlayerView
;
import
com.google.android.exoplayer2.upstream.DataSource
;
import
com.google.android.exoplayer2.upstream.DataSource
;
import
com.google.android.exoplayer2.upstream.DefaultDataSource
;
import
com.google.android.exoplayer2.upstream.DefaultDataSource
;
import
com.google.android.exoplayer2.upstream.DefaultHttpDataSource
;
import
com.google.android.exoplayer2.upstream.DefaultHttpDataSource
;
...
@@ -61,7 +61,7 @@ public final class MainActivity extends Activity {
...
@@ -61,7 +61,7 @@ public final class MainActivity extends Activity {
private
static
final
String
DRM_SCHEME_EXTRA
=
"drm_scheme"
;
private
static
final
String
DRM_SCHEME_EXTRA
=
"drm_scheme"
;
private
static
final
String
DRM_LICENSE_URL_EXTRA
=
"drm_license_url"
;
private
static
final
String
DRM_LICENSE_URL_EXTRA
=
"drm_license_url"
;
@Nullable
private
PlayerView
playerView
;
@Nullable
private
Styled
PlayerView
playerView
;
@Nullable
private
VideoProcessingGLSurfaceView
videoProcessingGLSurfaceView
;
@Nullable
private
VideoProcessingGLSurfaceView
videoProcessingGLSurfaceView
;
@Nullable
private
ExoPlayer
player
;
@Nullable
private
ExoPlayer
player
;
...
...
demos/gl/src/main/res/layout/main_activity.xml
View file @
674d70e8
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:keepScreenOn=
"true"
>
android:keepScreenOn=
"true"
>
<com.google.android.exoplayer2.ui.PlayerView
<com.google.android.exoplayer2.ui.
Styled
PlayerView
android:id=
"@+id/player_view"
android:id=
"@+id/player_view"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment