How to play multiple (maximum four in my case) .m3u8 streaming video in single activity in Android?

Since then, I have encountered these problems for a very long time, and I am really disappointed with the support of the Android HLS, as it behaves too randomly.

Demand:

1) Play multiple streams of .m3u8 video

2) Should work on different devices and api levels.

What I have and related issues:

Method - 1) TextureView with native MediaPlayer :

  • The amount of video that is played depends on the device, for some devices it is only one video (My Device - samsung galaxy grand quattro - api level 16), and for some devices it can play all four streamings video.

  • Depends on the api level, some .m3u8 url work on jellybean, but not higher than kitkat.

Method - 2) ExoPlayer :

  • The same problems of method -1

Method - 3) Vitamio :

  • Successfully play every .m3u8 url

  • No suuport for multiple video viewing

Method - 4) grafika :

  • This is not stable, but (as they mentioned).

The solutions I'm looking for:

1) It is necessary to play several video streams, as with any of the above methods, my device can play one video, but it seems Milestone Mobile can play 8 video streams on my device (How ?: O).

2) If the native MediaPlayer cannot reproduce any .m3u8 URL, then how to debug what the exact problem is, for example, are there any problems with the aac codec, decoder, segments, .ts file, etc. .?

3) If the native MediaPlayer is not able to play streams, then how can I make a custom MediaPlayer that supports most streaming URLs?

4) Is it possible to play multiple videos using Vitamio?

5) Link to any other HLS client that matches my requirement?

Personally, I would like to go with Method-1, so what can I do?

+8
android hls exoplayer m3u8 vitamio
source share

No one has answered this question yet.

See similar questions:

41
Play video in TextureView
thirteen
How to play multiple video files simultaneously in one layout side by side in another view on Android
2
android vitamio multiple video stream error

or similar:

2510
How to keep Android activity state by saving instance state?
1270
How to transfer data between actions in an Android application?
nine
Exoplayer playing m3u8 Android files
6
ExoPlayer on Android TV plays video in portrait mode instead of landscape
5
select video quality in hls stream on Android
4
Android mms and m3u8 video stream
3
How to merge and play HLS format (or) .m3u8 Video
2
Android and Vitamio: Sorry, this video cannot be played.
2
Sync multiple audio and video tracks in Android
one
Any ideas on how I can transfer m3u8 video to android

All Articles