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

Will this support Play and Cache simultaneously ? #23

Closed maheshm504 closed 1 year ago

maheshm504 commented 2 years ago

We tried but its not working we are fetching videos from Dash Camera through Wifi connected

but its playing only after the file downloaded

Can you get me some solution ?

eroscai commented 2 years ago

I guess Dash Camera does not support range request, it is only available play and cache simultaneously with range request. You can check this line, the variable isByteRangeAccessSupported is used to detect whether the range request supported. https://github.com/eroscai/SZAVPlayer/blob/3c2280a0fc79f96b2771f71fcf7c97f8cbb39d75/Sources/Classes/SZAVPlayerAssetLoader.swift#L151-L154