I cannot play HLS videos that are less than 1 second in length on iOS devices. However, the same video works on Android devices and the online service at HLS.js demo. When I try to play HLS videos that are less than 1 second, I get this error below:
{
"error": {
"code": -11848,
"domain": "AVFoundationErrorDomain",
"localizedDescription": "Cannot Open",
"localizedFailureReason": "The media cannot be used on this device.",
"localizedRecoverySuggestion": ""
},
"target": 6625
}
Version
6.7.0
What platforms are you having the problem on?
iOS
System Version
iOS 17.6.1
On what device are you experiencing the issue?
Real device, Simulator
Architecture
New architecture with interop layer
System and libraries information
What happened?
I cannot play HLS videos that are less than 1 second in length on iOS devices. However, the same video works on Android devices and the online service at HLS.js demo. When I try to play HLS videos that are less than 1 second, I get this error below:
Reproduction Link
https://github.com/ivaniuk7531/react-native-video-HLS-error
Reproduction
This is very easy to reproduce. You can use this URL https://d1249b47aalla0.cloudfront.net/pictures/41/726/41726322/5ynk7fyup8pf8t5gr7/video/low/10030395362/vid.m3u8 and react native video version 6.7.0