Closed NikmanSergey closed 8 years ago
try set "timeout" in microseconds.
@NikmanSergey how to set the user-agent in the code.?
thansk
@andyjmzheng, You can find it by using serach in repositiry 'user-agent': ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "user-agent", "xxx");
in my project not have the function ijkMediaPlayer.setOption. so i can not set . i want to ask you a question. wo git java code from the github .why my code not have the set url page??@NikmanSergey
@andyjmzheng 你这个菜鸟是来捣乱的么?
@bbcallen, setting "timeout" to 10000 did not help.
After ~20 minutes of playback buffering incrementally becames slower. Until it's completely hangs on buffering stage. It seems, that some network connection remains alive after releasing IjkMediaPlayer. As long as, all other app networking things like loading images becomes very-very slow. Local files still plays OK - so it is networking problem. How can be sure that all network connections closed when releasing player? I do like this:
// Release previous video
mp.stop();
mp.reset();
mp.release();
// Create new instance for next video playback
mp = new IjkMediaPlayer();
Please, help!!! Maybe I can add some debuging prints. It's very important stability issue. Thanks!
@NikmanSergey Now is the Mid Autumn Festival and National Day holiday, to wait until October 8th to come back。^_^
I am not working on httplive recently. Have a look at libavformat/network.c libavformat/tcp.c libavformat/http.c libavformat/httplive.c
@bbcallen, I've found that this bug was introduced in k0.4.0 version! k0.3.3 version do not have this issue. It occurs only when playing HLS streams. By monitoring live network connections on my router during HLS playback I see adding new connections every ~6 sec. When connections number grows up to ~100, Android OS do prevent adding new network connections for this app. Stopping and releasing player do not close this connections. So, it can't play any network streams before app restarting.
Also, I could solve the issue by rollback this commit: https://github.com/Bilibili/ijkplayer/commit/2518e04fe59877ff47e799368b6ad550b155c3dd I guess, the bug somewhere in ffmpeg n2.8 (ff2.8--ijk0.3.3--dev0.3.3--rc1). Will this bug be removed at next ffmpeg 2.8 updates? Can you help me find it? Thanks a lot!!!
@bbcallen, The bug is in hls.c module. Using this file from previous ffmpeg (ijk-r0.2.4-dev) version or from the latest FFMpeg repository works OK. Thanks!
Hi! Thanks for the Great library! I have endless preparing on network streams issue. It happens often and after it happened any other network streams hangs on preparing state. Local files still plays OK. You need to restart app to it work again. Tested on different devices. Here is the log when preparing hangs:
Log when releasing this player:
Thank you for any help!