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

Unable to play next audio while turn off screen (ios) #2760

Open
qwerty7415963 opened this issue Jul 11, 2022 · 0 comments
Open

Unable to play next audio while turn off screen (ios) #2760

qwerty7415963 opened this issue Jul 11, 2022 · 0 comments
Labels
Platform: iOS triage needed Help needed to confirm the issue

Comments

@qwerty7415963
Copy link

qwerty7415963 commented Jul 11, 2022

Bug

I'm using react-native-video for playing multiple audios. The first one has loaded and played perfectly. When I turn the screen off
and wait till the first audio has finished, the following audio has loaded successfully but will not play until I turn on the screen again

Platform

  • iOS

Which player are you experiencing the problem on:

  • iOS - real device < iPhone 11

Environment info

System:
OS: macOS 12.4
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Memory: 24.00 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.15.0 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 8.5.5 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: EAP AI-203.7148.57.2031.7242491 AI-203.7148.57.2031.7242491
Xcode: 13.4/13F17a - /usr/bin/xcodebuild
Languages:
Java: 13.0.2 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
info React Native v0.69.1 is now available (your project is running on v0.63.3).

Library version: "react-native-video": "^5.2.0"

Steps To Reproduce

  1. Play the first audio
  2. Turn off the phone screen and wait till the first end
  3. Change the following audio source when onEnd triggered
  4. Second audio has loaded but it does not play until turn the screen on

Expected behaviour

  1. Second audio has loaded and play without turn the screen on
@hueniverse hueniverse added the triage needed Help needed to confirm the issue label Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS triage needed Help needed to confirm the issue
Projects
None yet
Development

No branches or pull requests

3 participants