ios - AVURLAsset status stuck on AVKeyValueStatusLoading; loadValuesAsynchronouslyForKeys:completionHandler never completes -


i using avplayer stream audio. before beginning play url, call

[self.currentlyloadingasset loadvaluesasynchronouslyforkeys:@[@"playable", @"duration"] completionhandler:^{     [self evaluateassetstatusforepisode:episode asset:self.currentlyloadingasset]; }]; 

only when completionhandler executes reevaluate item see if it's ready play.

but 1 user, completionhandler not firing. cannot stream audio web (but can still play downloaded tracks). logging

avkeyvaluestatus status = [asset statusofvalueforkey:@"playable" error:&error]; 

, find status continually avkeyvaluestatusloading. never updates, avkeyvaluestatusloading never returns error.

i have tried putting loadvaluesasynchronouslyforkeys on main thread, removing duration key, , making currentlyloadingasset property ensure it's not getting released.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -