vimeo / VIMVideoPlayer

Deprecated: Please use [PlayerKit]( https://github.com/vimeo/PlayerKit) instead.
MIT License
281 stars 63 forks source link

Play video with different source type #27

Open kevinbubu opened 8 years ago

kevinbubu commented 8 years ago

Hi,

I try to play video with different source type, but the second source can't be played.

First source type is mp4, and second source type is m3u8. It's work smoothly on iOS 9 device and simulator, but it can't work on iOS 7 & 8. How can I do?

Error Log:

didFailWithError: Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo=0x174467dc0 {NSUnderlyingError=0x17005eea0 "The operation couldn’t be completed. (OSStatus error -12783.)", NSLocalizedFailureReason=An unknown error occurred (-12783), NSLocalizedDescription=The operation could not be completed}

My code:

Thanks!

alfiehanssen commented 8 years ago

@kevinbubu I'm fairly certain that this is a bug in AVPlayer. Playing 2 consecutive videos with the same AVPlayer, each a different type, the second one will fail to play:

http://stackoverflow.com/questions/10839061/avplayer-not-switching-between-progressive-download-and-streaming

kevinbubu commented 8 years ago

@alfiehanssen Thank you for your reply. But I can use AVPlayer and play smoothly. Is it VIMVideoPlayer's bug?

This is my code: