![]() ![]() And then you could call setSurface(.) on the player.īut you shouldn't really need to do this anymore now that SimpleExoPlayer has the TextureView setter (we didn't always have this in old ExoPlayer). ![]() See TextureView's documentation and this post. You can also create a Surface from a SurfaceTexture which you can get through TextureView's setSurfaceTextureViewListener(). TexturView textureView = findViewById(texture_view) Something like: SimpleExoPlayer player = ExoPlayerFactory.newSimpleInstance(context, trackSelector) So the relevant part here would be the setVideoTextureView(). If you require fine-grained control over the player controls and the Surface onto which video is rendered, you can set the player’s target SurfaceView, TextureView, SurfaceHolder or Surface directly using SimpleExoPlayer’s setVideoSurfaceView, setVideoTextureView, setVideoSurfaceHolder and setVideoSurface methods respectively. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |