You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got weird crashes when trying to loading items one after one in .stream sourceType.
I'm using AudioPlayer and not QueuedAudioPlayer
I've checked a few things and it seems the problem is with removing observer and sometimes the AVPlayerItem gets deallocated but the observers for .duration and ```.loadedTimeRanges```` still registered.
Image 1:
Image 2:
NOTE
the problem occurred when I've tried to load items immediately one after one.
its ok when I let them to get .ready state before loading another-one.
The text was updated successfully, but these errors were encountered:
sorry for delay, the problem occurred when I was trying to load items immediately in stream mode one after one, without letting them to load completely.
I fixed this error by loading items in a background thread. it works fine now
still testing it and will let you know if the issue still exists.
I've got weird crashes when trying to loading items one after one in
.stream
sourceType.I'm using
AudioPlayer
and notQueuedAudioPlayer
I've checked a few things and it seems the problem is with removing observer and sometimes the
AVPlayerItem
gets deallocated but the observers for.duration
and ```.loadedTimeRanges```` still registered.Image 1:
Image 2:
NOTE
the problem occurred when I've tried to load items immediately one after one.
its ok when I let them to get
.ready state
before loading another-one.The text was updated successfully, but these errors were encountered: