Android Question exoplayer screenshot

Sasuke Sama

Active Member
Licensed User
Hi
im trying to take a screenshot from exoplayer but its not showing in the taken image
all other stuff shows like buttons and labels but the exopayer view dosent
it shows an empty space as if it is not there
i tried xui method, java method and the old reflector one but all the same
 

moster67

Expert
Licensed User
It might be possible to change the SurfaceView into a TextureView in Exoplayer and then you should have a possibility to save a screen as a bitmap. I have never used Exoplayer and I guess what mentioned would require changes in the wrapper so I guess you are better off waiting for someone else to reply to know if this is even possible.

Otherwise, you have some alternatives:

-A simple VideoView alternative which replaces the original VideoView namely B4ATextureVideoView:
https://www.b4x.com/android/forum/t...view-wrapper-another-videoview.69833/#content
-Vitamio5:
https://www.b4x.com/android/forum/threads/vitamio-5-version-5-2-3.65176/#content
Above options require you to change the Video-player but will let you take screenshots.

Alternatively you can use my ScreenRecorder/ScreenShot library:
https://www.b4x.com/android/forum/threads/b4a-screenrecorder-screenshots.71348/#content
 

Sasuke Sama

Active Member
Licensed User
It might be possible to change the SurfaceView into a TextureView in Exoplayer and then you should have a possibility to save a screen as a bitmap. I have never used Exoplayer and I guess what mentioned would require changes in the wrapper so I guess you are better off waiting for someone else to reply to know if this is even possible.

Otherwise, you have some alternatives:

-A simple VideoView alternative which replaces the original VideoView namely B4ATextureVideoView:
https://www.b4x.com/android/forum/t...view-wrapper-another-videoview.69833/#content
-Vitamio5:
https://www.b4x.com/android/forum/threads/vitamio-5-version-5-2-3.65176/#content
Above options require you to change the Video-player but will let you take screenshots.

Alternatively you can use my ScreenRecorder/ScreenShot library:
https://www.b4x.com/android/forum/threads/b4a-screenrecorder-screenshots.71348/#content
Yeah after searching i found that it has to be a texture view
The problem is that im working with a project which is not mine so i cant change the player and even if i want the project is quite big XD that i might brick some stuff
Well i hope someone got a solution
Thank you for your answer will consider using one of them if things didn't worked out
 
Top