Android Question Playing multiple simultaneous videos on the same activity

Asim A Baki

Active Member
Licensed User
Longtime User
I was trying to play multiple videos on the same activity using videoview

It worked fine with online http source, I tried upto 16 on the same source

but I can't make it work on more than 1 video if tried to play local mp4 media
I receive the errors below

B4X:
PROGRAM PAUSED!
Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: /mnt/sdcard/presentiva/media/PlayListe32a166/Mini Minion Mashup - Despicable Me 2 (2013) - Steve Carell Movie HD 1080.mp4
setScreenOnWhilePlaying(true) is ineffective without a SurfaceHolder
Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: /mnt/sdcard/presentiva/media/PlayListe43124/Hotel Transylvania 2 Official Trailer 1 (2015) - Animated Sequel HD 1080.mp4
setScreenOnWhilePlaying(true) is ineffective without a SurfaceHolder
** Activity (clientpage) Resume **
Skipped 42 frames!  The application may be doing too much work on its main thread.
setSubtitleAnchor in MediaPlayer
info/warning (3, 0)
setSubtitleAnchor in MediaPlayer
info/warning (702, 0)
EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
Error (-2,0)
Error: -2,0
EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000

any solution?
 

Asim A Baki

Active Member
Licensed User
Longtime User
There is no reason to use VideoView. Only ExoPlayer. Whether multiple videos will play at once or not depends on the device capabilities.
I was using simple exoplayer it plays multiple videos but it freezes if the video activity was paused on amlogic
I tried to use textureexoplayer it playes correctly on the same device but only one video
 
Upvote 0
Top