eroscai / SZAVPlayer

SZAVPlayer is a lightweight audio/video player library, based on AVPlayer and AVAssetResourceLoaderDelegate, pure-Swift. Support cache and video image output.
MIT License
242 stars 32 forks source link

Simulator compatibility #24

Closed sushant-here closed 1 year ago

sushant-here commented 2 years ago

I know you have said that there are bugs/incompatibilities with the simulator. Its very annoying not being able to use simulator - can you please share what you know about the issue? I wouldn't mind trying to have a go at trying to fix myself and contributing back to your project.

eroscai commented 2 years ago

Well, actually there really isn't much issue to share. Sometimes it is suddenly unable to play, and it returns directly to failure when it start playing, but it never happens in real device. When this problem happens, you can only fix it by restart simulator.

sushant-here commented 2 years ago

I see it every time on my simulator brave tried resetting them. Nothing seems to work. :(

My colleague is tuning a intel Mac. Works for her. Never works on my M1. Wonder if that's somehow related.

eroscai commented 2 years ago

I think it is easier to confirm whether it is the problem of the system itself. You can create new empty project and use AVPlayer directly to play local files, if it is still not working, i think you can only tested with real device. Then you can also post on the apple forum to see if anyone else has a solution.