bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.4k stars 8.11k forks source link

android black screen, log show that "invalid stream index 1" #1878

Open zhushaodong opened 8 years ago

zhushaodong commented 8 years ago

It happens highly at first load video,30% chance. If finish activity and restart activity,it will be ok. Demo also happens. What it means that "invalid stream index 1"?

ctiao commented 8 years ago

Can you provide the video sample?

zhushaodong commented 8 years ago

It happens when I use a ".m3u8" live stream. It will happen 30% chance black screen, but have sound. Logs show error message "Invalid stream index 1" . Other vod stream like ".mp4" does not happen. The demo is just the demo in ijkplayer/android/ijkplayer/ijkplayer-example/ .

ctiao commented 8 years ago

I can not reproduce this issue on any of my devices. Provide more information with logcat. mediacodec enabled or no? which device?

Android4MediaPlayer commented 8 years ago

url?