B BOHANG Member May 28, 2025 #1 How to take screenshots while playing videos using Exaplayer. Tested several screenshot examples on the forum, and the obtained images showed that the video playback area was blank, while other positions were normal.
How to take screenshots while playing videos using Exaplayer. Tested several screenshot examples on the forum, and the obtained images showed that the video playback area was blank, while other positions were normal.
Solution Erel May 29, 2025 Try it with TextureView: https://www.b4x.com/android/forum/t...th-textureview-instead-of-surfaceview.163710/
Try it with TextureView: https://www.b4x.com/android/forum/t...th-textureview-instead-of-surfaceview.163710/
Erel B4X founder Staff member Licensed User Longtime User May 29, 2025 #2 Try it with TextureView: https://www.b4x.com/android/forum/t...th-textureview-instead-of-surfaceview.163710/ Upvote 0 Solution
Try it with TextureView: https://www.b4x.com/android/forum/t...th-textureview-instead-of-surfaceview.163710/
drgottjr Expert Licensed User Longtime User May 30, 2025 #3 after you get the above running, B4X: Dim bmp as Bitmap = TextureView.RunMethod("getBitmap",Null) will capture the video screen as a bitmap. do what you want with it Upvote 0
after you get the above running, B4X: Dim bmp as Bitmap = TextureView.RunMethod("getBitmap",Null) will capture the video screen as a bitmap. do what you want with it
Erel B4X founder Staff member Licensed User Longtime User Jun 1, 2025 #4 Or: B4X: TextureView.As(B4XView).Snapshot Upvote 0