[iOS][Airplay][LG / Samsung TV] Playing m3u8 videos via AirPlay is not supported and returns error code: 2101(-12927)

Affected product

Streams

Affected platforms

iOS

Description

Playing m3u8 videos via AirPlay(LG TV) is not supported and returns error code 2101(-12927)

We tested:
-1 “The m3u8 video link includes subtitles data.” Playback failed and returns error code 2101(-12927)
-2 “The m3u8 video link doesn’t includes subtitles data.” Playback normally.

-1 Playing on the phone is normal.
-2 Casting to AppleTV via airplay can also play normally.
-3 Casting to LG TV (LG webOS TV UK6500PCC Airplay 2.0) via airplay cannot play normally. The corresponding error is returned:###name: “onSourceError”

  • code: __C.BMPSourceErrorCode
  • message: “General playback error. An unknown error occurred (-12927)”>###

NOTES:
-1 When testing the demo movie m3u8 URL on an LG TV, it plays normally.
let movieURL = “https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8

-2 M3U8 temp share link: (“The m3u8 video link includes subtitles data.”)
let movieURL = “https://d2d233dxwe0v9g.cloudfront.net/vodapi/airplay.m3u8?vid=f09523f997079c8097fcaf49a61064b8&ts=202407180929&streamurl=https://d2d233dxwe0v9g.cloudfront.net/vodapi/viu_aws.m3u8&layer=Layer2&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kMmQyMzNkeHdlMHY5Zy5jbG91ZGZyb250Lm5ldC92b2RhcGkvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMTI4NDE0MH19fV19&Signature=E67CR7oE8RWY-Z4wQcnIT3Tbhr404iDjK7GFzvo85meoW~hcXm3hdV9C-kK6oktVEaoZPtxb9jgPUTmu7tF~coeZmtnHd8QiYpmYUclG10i-D8nmWy-nyqSyQqBiDKwO9GEpJVKjQL~T4ZBc5xsFJ0ly~vioJ~DR448mnSkC6TsZy-PbbOMhZML5ppMtUiYO3uJ6z~Y57RcvNjC52eU2Zo3g8kCScBGhSAKxtSX~BpiAn8WOAhGZkw5VgTAJh9U8JWp-deYd6P81DcoaC5aH7X4TryWQjngMMYzkpO8ovKJw58HGzyvU3sWKl0ws7IEZQylRv9ir4Ws3PbCJnTNu2g__&Key-Pair-Id=APKAJ6Z4RF5IYK7Y3SQQ&region=hk&area_id=1&lang_id=1&subLang=&subDef=

Expected behavior

  • Playback normally.

Reproduction steps

-1 connect with LG TV var Airplay.
-2 playback the m3u8 video
-3 then return the error:
###name: “onSourceError”

  • code: __C.BMPSourceErrorCode
  • message: “General playback error. An unknown error occurred (-12927)”>###

Additional details

SDK: 3.66.1, iPhone:(iOS 15.0, iPhone 13 mini) / (iOS 18.0 beta 3, iPhone 14 pro), stream-type: m3u8
M3U8 temp share link:
let movieURL = “https://d2d233dxwe0v9g.cloudfront.net/vodapi/airplay.m3u8?vid=f09523f997079c8097fcaf49a61064b8&ts=202407180929&streamurl=https://d2d233dxwe0v9g.cloudfront.net/vodapi/viu_aws.m3u8&layer=Layer2&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kMmQyMzNkeHdlMHY5Zy5jbG91ZGZyb250Lm5ldC92b2RhcGkvKiIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyMTI4NDE0MH19fV19&Signature=E67CR7oE8RWY-Z4wQcnIT3Tbhr404iDjK7GFzvo85meoW~hcXm3hdV9C-kK6oktVEaoZPtxb9jgPUTmu7tF~coeZmtnHd8QiYpmYUclG10i-D8nmWy-nyqSyQqBiDKwO9GEpJVKjQL~T4ZBc5xsFJ0ly~vioJ~DR448mnSkC6TsZy-PbbOMhZML5ppMtUiYO3uJ6z~Y57RcvNjC52eU2Zo3g8kCScBGhSAKxtSX~BpiAn8WOAhGZkw5VgTAJh9U8JWp-deYd6P81DcoaC5aH7X4TryWQjngMMYzkpO8ovKJw58HGzyvU3sWKl0ws7IEZQylRv9ir4Ws3PbCJnTNu2g__&Key-Pair-Id=APKAJ6Z4RF5IYK7Y3SQQ&region=hk&area_id=1&lang_id=1&subLang=&subDef=

Hi,
Thanks for reporting this.
I cannot access your stream unfortunately.
This error typically means that the LG fairplay implementation might fail to handle your particular stream. To validate this, I recommend running the following test :

  • Open the stream URL in a new tab of Safari (either iOS or macOS)
  • Start Airplaying
  • Check whether the behaviour is the same

Also, please feel free to share your test stream. It might not be possible to get detailed errors from the LG Airplay implementation, but looking into your stream might give us some leads.

Thanks in advance for your feedback.

The share link can’t play on Safari. I tested it using the BitmovinPlayerSamples.BasicPlayback demo(iOS project).

NOTES: LG TV Logs


{"postTime":1721358324.213, "events":
["_method":0,"_status":0,"_event Type":0, "eventTime":1721358322.812,
"_timezoneOffset":-28800,"_eventNumber":0,"_clientTS":1721358322.8 13,"_ sender":"HLSJS", "_clientName":"AirPlay", "_serviceName".:"com.apple.hlsjs.airplay.Other", "applicationName"."Other", "deviceName":"LG
Electronics", "_reportScheme":"1",
reportVers""0.1.40","_sessionID":"6
7a9b040-3d35-45e7-8371-
71826eOb14b", "SenderOSVersion"."18.0", "SenderOSBuild""22A5307;
" "SenderOSName":"iPhone
OS", "model":"43UK6500PCC", "firmwareVersion":"05.50.15", "AirPlayReceiverSDKVersion":"25.06", "Sampling Threshold": 1,"StorebagScheme":1,
"StorebagName":"DefaultConfig Version2", "HLSJSVersion":"2.450.6", "Ai rPlayReceiverAppVersion":"19.9.9"},
{"ErrCode": "manifestincompatibleCodecsError", "ErrReason":-12927, "ErrI sFatal":true, "ErrDomain": "mediaError", "PlayerErrCount": 1,"PlayTimeWC": 0, "LastLikelyToKeepUp":1192.42, "LastSwitch":217377.64, "Rate":0,"Forlnterstitial":false, "HLSJSVersion":"2.450.6", "InterstitialsEnabled":false, "Is Looping Player":false,"_method":6107, "_status":0,"_eventType":0, "event
Time":1721358324.126, "_timezoneOffset":-28800,"_eventNumber": ," -
clientTS":1721358324.126, "_sender": "HLSJS", "_clientName":"AirPlay","-
serviceName":"com.apple.hlsjs.airplay.Other", "'applicationName":"Other"
"deviceName":"LG
Electronics", "_reportScheme"."1", "_reportVers":"0.1.40" "_sessionID":"6 7a9b040-3d35-45e7-8371-
71e826e0b14b", "SenderOSVersion":"18.0" "'SenderOSBuild":"22A5307;
" "SenderOSName":"iPhone
OS" "model":"43UK6500PCC", "firmwareVersion":"05.50.15", "AirPlayRe
ceiverSDKVersion":"25.06", "Sampling Threshold":1, "StorebagScheme": 1,
"StorebagName" :"DefaultConfigVersion2", "AirPlayReceiverAppVersion":
"19.9.9"},
{"Play TimeWC":O, "Rate":0,"VarEndTime":0,"AvgVideoBitrate":0, "AvgAudioBitrate":0, "ForInterstitial":false, "HLSJSVersion"."2.450.6", "Interstitial
sEnabled":false, "'sLoopingPlayer":false,"_method":6111,"_status":0,"_eventTvoe":0."eventTime":1721358324.179." timezoneOffset":-28800,"_ev entNumber":2,"_clientTS":1721358324.18, "_sender": "HLSJS", "_clientNa me":"AirPlay", "_serviceName": "com.apple.hlsjs.airplay.Other", "applicationName":"Other", "deviceName":"LG
Electronics", "_reportScheme":"1", "_reportVers":"0.1.40", "_sessionID":"6
7a9b040-3d35-45e7-8371-
71e826e0b14b", "'SenderOSVersion":"18.0" "SenderOSBuild":"22A5307i
" "SenderOSName":"iPhone
OS", "model":"43UK6500PCC", "firmwareVersion":"05.50.15", "AirPlayReceiverSDKVersion":"25.06", "Sampling Threshold":1, "StorebagScheme": 1,
"StorebagName":"DefaultConfig Version2", "AirPlayReceiverAppVersion":
"19.9.9"},
{"HLSJSVersion":"2.450.6", "InterstitialsEnabled":false, "IsLoopingPlayer" false, "PlayerErrCount":1, "FatalPlayerErrCount":1, "ErrCode":"manifestincompatibleCodecsError"
"ErrReason":-12927 "ErrIsFatal":true, "ErrDomain
""mediaError", "Init Time":1195.94, "PlayErrTime":65.08, "AvgVideoBitrate
":0, "AvgAudioBitrate":0, "NetBytes":0, "TWOBR":0, "PerceivedTWOBR" :0,
"NetTWOBR":0, "Player TWIBR":0, "PlayerTWIABR":0,"TWBitRk":0,"PlaylistMimeType":''' "SegmentMimeType"':' "Rate":0,"_method":6101,"_statu
s":O, "_eventType":1, "event Time":1721358324.209,"_timezoneOffset" :-28800, "_eventNumber":3, "_clientTS": 721358324.209,"_sender":"HLSJS
" "_clientName":"AirPlay", "_serviceName":"com.apple.hlsjs.airplay.Other"
, "applicationName":"Other", "deviceName":"LG
Electronics", "_reportScheme":"1","_reportVers":"0.1.40", "_sessionID": "6
7a9b040-3d35-45e7-8371-
71e826eOb14b", "SenderOSVersion":"18.0", "SenderOSBuild":"22A5307;
" "SenderOSName":"iPhone
OS", "model":"43UK6500PC", "firmwareVersion": "05.50.15", "AirPlayReceiverSDKVersion":"25.06", "Sampling Threshold": 1,"StorebagScheme":1,
"StorebagName":"DefaultConfigVersion2", "AirPlayReceiverAppVersion":
"19.9.9"}], "header":"2024-07-19T03:05:24.213Z"}

Hi @qiang.zhou,

Unfortunately, we have seen many issues with third-party AirPlay receivers, such as TVs. Because we do not have any control or insights into the AirPlay implementation on these receivers, we do not officially support them.

As you also found out, everything works fine when AirPlaying to an AppleTV, so we can assume it’s an issue on the LG TV.

1 Like