Closed maksimaliabyshev closed 6 years ago
Here is the error returned by the underlying AVPlayer
:
Error Domain=ch.srgssr.mediaplayer Code=0 "The media cannot be played" UserInfo={NSLocalizedDescription=The media cannot be played, NSUnderlyingError=0x608000252090 {Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (1718449215), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x60c00025e3c0 {Error Domain=NSOSStatusErrorDomain Code=1718449215 "(null)" UserInfo={AVErrorFourCharCode='fmt?'}}}}}
The cryptic error code 1718449215 is the kAudioFormatUnsupportedDataFormatError
named constant. If you look at the stream information, the audio codec is mpga
, which is namely not supported on iOS.
A list of supported audio codecs is provided on Stack Overflow.
Issue overview
Description of the problem
Environment information
Reproducibility
Code sample
Steps to reproduce
This stream http://str1.iptvportal.ru:8080/ort/index.m3u8 correct read VLC Player
SRGMediaPlayer no read this stream
No documentation about supporting codecs
In debug information not present description codec reading current stream