question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Video not playing in background (staysActiveInBackground)

See original GitHub issue

Summary

Hi, I’m not able to use expo-av to play videos in background using the staysActiveInBackground feature.

It’s working properly with the <Audio /> component, but it doesn’t work for the <Video /> component.

I was able to create a snack, but because of the nature of Expo Go, it’s not possible to reproduce with that. I’ve tested using the iOS simulator.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

iOS

SDK Version (managed workflow only)

No response

Environment

Expo CLI 4.4.4 environment info: System: OS: macOS 11.2.3 Shell: 3.2.57 - /bin/bash Binaries: Node: 14.13.0 - ~/.nvm/versions/node/v14.13.0/bin/node Yarn: 1.22.10 - ~/.nvm/versions/node/v14.13.0/bin/yarn npm: 6.14.8 - ~/.nvm/versions/node/v14.13.0/bin/npm SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 IDEs: Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: expo: ^39.0.0 => 39.0.5 react: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz => 0.63.2 npmGlobalPackages: expo-cli: 4.4.4 Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

https://snack.expo.io/@leocaseiro/video-play-in-background

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:33 (17 by maintainers)

github_iconTop GitHub Comments

4reactions
matt-oakescommented, Feb 4, 2022

Not stale

3reactions
elliotdickisoncommented, Jul 18, 2022

Not stale

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo Audio staysActiveInBackground is not working
I am trying to listen to music (streaming) in background but the streaming stop when I open another app.
Read more >
Background play isn't working - Android - YouTube Help
Some videos, such as members-only content, isn't available for background play or to download offline. Review the steps below for help resolving your...
Read more >
Audio - Expo Documentation
A boolean selecting if the audio session (playback or recording) should stay active even when the app goes into background. This is not...
Read more >
npm - Snyk
Use Snyk Code to scan source code in minutes - no build needed - and fix issues ... playThroughEarpieceAndroid: false, staysActiveInBackground: false, ...
Read more >
Expo Audio staysActiveInBackground is not working-React ...
More Query from same tag · Can I get current location every 10 seconds after app is killed or background in react native...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found