Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: HLS video less than 1 second doesn't work on iOS #4274

Open
ivaniuk7531 opened this issue Nov 5, 2024 · 6 comments
Open

[BUG]: HLS video less than 1 second doesn't work on iOS #4274

ivaniuk7531 opened this issue Nov 5, 2024 · 6 comments

Comments

@ivaniuk7531
Copy link

ivaniuk7531 commented Nov 5, 2024

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

System:
  OS: macOS 14.6.1
  CPU: (8) arm64 Apple M1 Pro
  Memory: 51.97 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.18.0
    path: ~/.nvm/versions/node/v20.18.0/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.8.2
    path: ~/.nvm/versions/node/v20.18.0/bin/npm
  Watchman:
    version: 2024.09.16.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/ivaniuk/.rvm/gems/ruby-3.2.0/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.18034.62.2411.12071903
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.12
    path: /Users/ivaniuk/.jenv/shims/javac
  Ruby:
    version: 3.2.0
    path: /Users/ivaniuk/.rvm/rubies/ruby-3.2.0/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.4
    wanted: 0.75.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

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:

{
    "error": {
        "code": -11848,
        "domain": "AVFoundationErrorDomain",
        "localizedDescription": "Cannot Open",
        "localizedFailureReason": "The media cannot be used on this device.",
        "localizedRecoverySuggestion": ""
    },
    "target": 6625
}

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

@ivaniuk7531 ivaniuk7531 added the bug label Nov 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

Previous bot comment (click to expand)

Thank you for your bug report. We will review it and get back to you if we need more information.

Copy link

github-actions bot commented Nov 5, 2024

Thank you for your bug report. We will review it and get back to you if we need more information.

@skochkodmytro
Copy link

same issue

@SerhiiKultprosvet
Copy link

Same for me

Copy link

github-actions bot commented Dec 6, 2024

This issue is stale because it has been open for 30 days with no activity. If there won't be any activity in the next 14 days, this issue will be closed automatically.

@github-actions github-actions bot added the stale Closed due to inactivity or lack or resources label Dec 6, 2024
@SerhiiKultprosvet
Copy link

Still appears

@github-actions github-actions bot removed the stale Closed due to inactivity or lack or resources label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants