TvOS / iOS - Intercepting AudioQueue request to trim ERROR

I download a video from an HLS stream, but sometimes I get this error, and then the sound crashes:

ERROR: 849: AudioQueue: request to trim 4294723408 + 0 = 4294723408 frames from buffer containing 21504 frames 

Is there a way to catch this error so that I can at least try to reload the stream or take some other measures?

+5
source share

Source: https://habr.com/ru/post/1235865/


All Articles