-
Notifications
You must be signed in to change notification settings - Fork 6k
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
The surface show nothing after mSimpleExoPlayer.setVideoListener(mVideoListener); #2800
Comments
Is there a shutter involved? If so, are you making it invisible? If there is a SimpleExoPlayerView involved, maybe you should also add
|
The problem is that We could change |
Marking as needs-more-info to clarify what the use case is for needing these events. |
The object can not use the method. |
Yes, looking into it into detail I noticed the class that actually implements |
@ojw28 Sometimes I need to monitor the changes in the listener, such as in the TIF, TvInputService want to get the size of the player changes, and then notify the corresponding surface to make the appropriate changes. |
Using |
@ojw28 I think a legitimate use case could be performance monitoring. While the SimpleExoPlayerView needs the onRenderedFirstFrame to remove the shutter, a performance monitoring listener wants to know the time it takes until the first frame is rendered and report that time. On the other hand there is also simpleExoPlayer.setVideoDebugListener which allows to set a VideoRendererEventListener which has a onRenderedFirstFrame(Surface surface) callback which is quite the same thing. |
Right, the debug listener is suitable for that case. Closing this for now. |
We've seen more than one issue filed where a developer has registered a video listener and been confused by the fact their SimpleExoPlayerView no longer works properly. There are also valid use cases for having multiple metadata/text outputs. Issue: #2933 Issue: #2800 Issue: #2286 Issue: #2240 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=164839882
We've seen more than one issue filed where a developer has registered a video listener and been confused by the fact their SimpleExoPlayerView no longer works properly. There are also valid use cases for having multiple metadata/text outputs. Issue: #2933 Issue: #2800 Issue: #2286 Issue: #2240 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=164839882
We've seen more than one issue filed where a developer has registered a video listener and been confused by the fact their SimpleExoPlayerView no longer works properly. There are also valid use cases for having multiple metadata/text outputs. Issue: #2933 Issue: #2800 Issue: #2286 Issue: #2240 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=164839882
when I use the simpExoPlayer to setVideoListener(videoListener),like this :
the surface is black ,but audio is play.
The text was updated successfully, but these errors were encountered: