Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play multiple videos at the same time ExoPlayer

I want to play a list of videos at the same time(one after other, just like 1 video)

I’m now using ExoPlayer to play those videos, but I cannot buffer next video when the current video is playing. So it can’t look like one video, there is delay when switch between two videos.

Any one has solution for this, please?

like image 676
Thanh Le Avatar asked Mar 15 '16 12:03

Thanh Le


1 Answers

I have the same problem,

change line 360 :codec = MediaCodec.createByCodecName(codecName) to codec = MediaCodec.createDecoderByType(mimeType) in MediaCodecTrackRenderer class.

looks like exoplayer try to use more than one hardware decoder but some devices does not allow more than one hardware decoders.

the changes will let exoplayer to pick software decoder if hardware decoders are allocated.

like image 52
William Avatar answered Nov 16 '22 13:11

William