bilibili / ijkplayer

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

iOS seek not working for rtsp protocol, but works fine on Android #2440

Open leo7nel23 opened 7 years ago

leo7nel23 commented 7 years ago

Hi,

I try to seek video in iOS demo project.

it works perfectly on local file, even http streaming, but rtsp streaming.

I also try it on Android IJKPlayer, it works fine.

I can seek rtsp streaming on Android perfectly.

Is there any way to solve it?

Thanks a lot!

@"rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"

leo7nel23 commented 7 years ago

@"rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"

rtsp sample provide!

Thanks

leo7nel23 commented 7 years ago

Is there any update about this issue? Thanks

xinzhengzhang commented 7 years ago

Try avcodec, there is huge problem with your video stream. And iOS videotoolbox can not decode any frame from it.

leo7nel23 commented 7 years ago

So it means it's video's problem? I try to play this video on Mac OS via VLC player, it allow to seek, and works fine.

And what is try avcodec mean? what should I do? any suggestion?

I try to play this video on iOS by ijkplayer, it playable, and also shows both audio and video, why you says iOS cannot decode it?

xinzhengzhang commented 7 years ago

Sorry, not the vtb problem. set option packet-buffering to 0 will fix it. And it will cause screen mess.

leo7nel23 commented 7 years ago

it works, thanks a lot.

leo7nel23 commented 7 years ago

I set packet-buffering to 0, but it make "FFP_MSG_BUFFERING_UPDATE" notify very slowly, is there anyway to solve it?

Aviru commented 6 years ago

Hi, Thank you for such a nice and powerful library. But I am trying to integrate into swift, is it possible? I tried the swift version of ijkplayer using pod, but many functionalities are not there. So, can I integrate this ijkplayer Objective C into swift?

Thanks & Regards

Aviru commented 6 years ago

Hi, Any help would be appreciated. Thanks

fukemy commented 6 years ago

no one help u. I decide using VLC. That library so bad in swift, and can not play rsmp/rtsp as well in IOS

Aviru commented 6 years ago

@fukemy , I also tried VLC, but I am unable to implement some functionalities like seekbar, time duration, track forwarding etc.

fukemy commented 6 years ago

let use https://github.com/iOSDevLog/ijkplayer. It good. Im using it due to VLC version 3.x.x have many crashed

fukemy commented 6 years ago

this man iOSDevLog have already implemented all seek+play pause function for u