Problem with AVPlayer error

Hi.

I try to reproduce a streaming in my AvPlayer but I have this error:

NSConcreteNotification 0x281b850b0 {name = AVPlayerItemFailedToPlayToEndTimeNotification; object = <AVPlayerItem: 0x2815aa060, asset = <AVURLAsset: 0x2816d4640, URL = URLSTREAMING>>; userInfo = { AVPlayerItemFailedToPlayToEndTimeErrorKey = "Error Domain=AVFoundationErrorDomain Code=-11800 "No se ha podido completar la operaci\U00f3n" UserInfo={NSLocalizedFailureReason=Se ha producido un error desconocido (-12976), NSLocalizedDescription=No se ha podido completar la operaci\U00f3n, NSUnderlyingError=0x281b85770 {Error Domain=NSOSStatusErrorDomain Code=-12976 "(null)"}}"; }}

I know that it is related to the metadata of the signal. But I don't know what is the cause of this error.

Somebody could help me?

Thanks greetings

Do you run on simulator or device ? Should be on device.

Did you allow NSAllowsArbitraryLoads in info.plist in NSAppTransportSecurity dictionary ?

See more info here:

https://stackoverflow.com/questions/51532165/getting-error-when-trying-to-download-a-m3u8-video-using-avassetdownloadurlsessi

Hi Claude31, thank your for you response.

I run on device.

Yes I have this in my info.plist:

NSAppTransportSecurity NSAllowsArbitraryLoads

I can reproduce other streaming without problem. But I have problem with a streaming that have metadata inside of signal.

Problem with AVPlayer error
 
 
Q