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
17c60923
authored
Jul 02, 2021
by
ibaker
Committed by
Ian Baker
Jul 16, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Clarify the thread requirements of a SurfaceView or SurfaceHolder
Issue: #9005 PiperOrigin-RevId: 382765045
parent
278593f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
library/common/src/main/java/com/google/android/exoplayer2/Player.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java
library/common/src/main/java/com/google/android/exoplayer2/Player.java
View file @
17c60923
...
...
@@ -1761,6 +1761,9 @@ public interface Player {
* Sets the {@link SurfaceHolder} that holds the {@link Surface} onto which video will be
* rendered. The player will track the lifecycle of the surface automatically.
*
* <p>The thread that calls the {@link SurfaceHolder.Callback} methods must be the thread
* associated with {@link #getApplicationLooper()}.
*
* @param surfaceHolder The surface holder.
*/
void
setVideoSurfaceHolder
(
@Nullable
SurfaceHolder
surfaceHolder
);
...
...
@@ -1777,6 +1780,9 @@ public interface Player {
* Sets the {@link SurfaceView} onto which video will be rendered. The player will track the
* lifecycle of the surface automatically.
*
* <p>The thread that calls the {@link SurfaceHolder.Callback} methods must be the thread
* associated with {@link #getApplicationLooper()}.
*
* @param surfaceView The surface view.
*/
void
setVideoSurfaceView
(
@Nullable
SurfaceView
surfaceView
);
...
...
@@ -1793,6 +1799,9 @@ public interface Player {
* Sets the {@link TextureView} onto which video will be rendered. The player will track the
* lifecycle of the surface automatically.
*
* <p>The thread that calls the {@link TextureView.SurfaceTextureListener} methods must be the
* thread associated with {@link #getApplicationLooper()}.
*
* @param textureView The texture view.
*/
void
setVideoTextureView
(
@Nullable
TextureView
textureView
);
...
...
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java
View file @
17c60923
...
...
@@ -334,6 +334,9 @@ public interface ExoPlayer extends Player {
* Sets the {@link SurfaceHolder} that holds the {@link Surface} onto which video will be
* rendered. The player will track the lifecycle of the surface automatically.
*
* <p>The thread that calls the {@link SurfaceHolder.Callback} methods must be the thread
* associated with {@link #getApplicationLooper()}.
*
* @param surfaceHolder The surface holder.
*/
void
setVideoSurfaceHolder
(
@Nullable
SurfaceHolder
surfaceHolder
);
...
...
@@ -350,6 +353,9 @@ public interface ExoPlayer extends Player {
* Sets the {@link SurfaceView} onto which video will be rendered. The player will track the
* lifecycle of the surface automatically.
*
* <p>The thread that calls the {@link SurfaceHolder.Callback} methods must be the thread
* associated with {@link #getApplicationLooper()}.
*
* @param surfaceView The surface view.
*/
void
setVideoSurfaceView
(
@Nullable
SurfaceView
surfaceView
);
...
...
@@ -366,6 +372,9 @@ public interface ExoPlayer extends Player {
* Sets the {@link TextureView} onto which video will be rendered. The player will track the
* lifecycle of the surface automatically.
*
* <p>The thread that calls the {@link TextureView.SurfaceTextureListener} methods must be the
* thread associated with {@link #getApplicationLooper()}.
*
* @param textureView The texture view.
*/
void
setVideoTextureView
(
@Nullable
TextureView
textureView
);
...
...
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