bilibili / ijkplayer

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

请问在Android播放rtmp打开时,有3秒到5秒延时,请问怎样解决? #2731

Open candebbs opened 7 years ago

raymond1012 commented 7 years ago

可以尝试去修改缓存机制,读到IDR就直接播

2017-02-23 12:23 GMT+08:00 candebbs notifications@github.com:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Bilibili/ijkplayer/issues/2731, or mute the thread https://github.com/notifications/unsubscribe-auth/AEOmli1qXJG9091OfJxPrv-FuYNBnMUfks5rfQmwgaJpZM4MJh5S .

zhanggao commented 7 years ago

@raymond1012 关于你说的缓存机制代码是哪部分呢?

raymond1012 commented 7 years ago

可以从read_thread函数中查看相关实现

2017-02-27 11:05 GMT+08:00 zhanggao notifications@github.com:

@raymond1012 https://github.com/raymond1012 关于你说的缓存机制代码是哪部分呢?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Bilibili/ijkplayer/issues/2731#issuecomment-282617219, or mute the thread https://github.com/notifications/unsubscribe-auth/AEOmllCObCMQTolTDHeDvLFQU2143enHks5rgj18gaJpZM4MJh5S .

candebbs commented 7 years ago

可以尝试去修改缓存机制,读到IDR就直接播 试过还是不行?

raymond1012 commented 7 years ago

尝试去debug,确认延时是在客户端还是在服务端,如果确认在客户端,尝试以read_thread函数为入口,查看哪里缓存了数据

2017-03-08 9:56 GMT+08:00 candebbs notifications@github.com:

可以尝试去修改缓存机制,读到IDR就直接播 试过还是不行?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Bilibili/ijkplayer/issues/2731#issuecomment-284921994, or mute the thread https://github.com/notifications/unsubscribe-auth/AEOmlnQscC-5pJ7FKys-AJ9Ac8MOiSltks5rjgq0gaJpZM4MJh5S .