TheWidlarzGroup / react-native-video

A <Video /> component for react-native
http://thewidlarzgroup.github.io/react-native-video/
MIT License
7.15k stars 2.88k forks source link

AWS IVS live streaming is too slow #2489

Closed Wivil closed 2 years ago

Wivil commented 3 years ago

Bug

Hello, everyone. We're creating react native app which can play live streaming with AWS IVS and this component. We've already successfully played live streaming. However, it's very slow. There is a gap of 10 ~ 15 sec. We've confirmed live stream in iVS channel and it doesn't have such a gap, which was only 2~3 sec. So, we think this is a problem on this component. We've already confirmed that bufferConfig prop cannot help us to solve this. Does anybody know how to fix this issue? Thank you for your help in advance.

Platform

Which player are you experiencing the problem on:

Environment info

React native info output: System: OS: macOS 11.3.1 CPU: (4) x64 Intel(R) Core(TM) i5-4308U CPU @ 2.80GHz Memory: 82.86 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 16.2.0 - /usr/local/bin/node Yarn: Not Found npm: 7.17.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 Android SDK: API Levels: 29, 30 Build Tools: 29.0.2, 29.0.3, 30.0.3 System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.2 AI-202.7660.26.42.7322048 Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild Languages: Java: 1.8.0_292 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.1 => 0.64.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Library version: 5.1.1

Expected behaviour

  1. can play live streaming within a time gap in 2 ~ 3 sec.

Sample Code

<Video
  source={{
    uri: [https PATH to m3u8 file in IVS Live Channel Play Back URL],
  }}
  resizeMode={'cover'}
  bufferConfig={{
    minBufferMs: 5000,
    maxBufferMs: 10000,
  }}
/>
Wuyialex commented 2 years ago

AWS IVS does not support low latency in third party hls players.

https://docs.aws.amazon.com/ivs/latest/userguide/streaming-config.html

floelm commented 2 years ago

Hey @Wivil ,

were you able to find an alternative/solution for this issue?

Thanks a lot in advance and have a nice day.

Wivil commented 2 years ago

Hello, We are using IVS video player component. That’s fast enough to watch live streaming. Thanks a lot.

Wivil Inc. Takuma, Hosokai

差出人: 'floelm' via †–い合わせ @.> 日付: 月曜日, 2022年1月17日 18:41 宛先: react-native-video/react-native-video @.> CC: Wivil inc. @.>, Mention @.> 件名: Re: [react-native-video/react-native-video] AWS IVS live streaming is too slow (#2489)

Hey @Wivilhttps://github.com/Wivil ,

were you able to find an alternative/solution for this issue?

Thanks a lot in advance and have a nice day.

― Reply to this email directly, view it on GitHubhttps://github.com/react-native-video/react-native-video/issues/2489#issuecomment-1014323816, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AT5AVW4YOM6Q4SLCE4PQOSDUWPP5FANCNFSM5EGLYWEA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you are having a similar problem, please open a new issue and reference this one instead of commenting on a stale or closed issue.