Giter VIP home page Giter VIP logo

Comments (4)

Spharian avatar Spharian commented on July 20, 2024

Same issue here. Even when going to the control center on iOS, the video stops playing and onPlaybackStatusUpdate's status isPlaying becomes false.

from playlist-example.

4lun avatar 4lun commented on July 20, 2024

Potentially you're missing this from your app.json (or app.config.js)

{
  "expo": {
    ...
    "ios": {
      ...
      "infoPlist": {
        ...
        "UIBackgroundModes": [
          "audio"
        ]
      }
    }
  }
}

Source: https://docs.expo.dev/versions/latest/sdk/audio/#playing-or-recording-audio-in-background-ios

from playlist-example.

Spharian avatar Spharian commented on July 20, 2024

Potentially you're missing this from your app.json (or app.config.js)

{
  "expo": {
    ...
    "ios": {
      ...
      "infoPlist": {
        ...
        "UIBackgroundModes": [
          "audio"
        ]
      }
    }
  }
}

Source: https://docs.expo.dev/versions/latest/sdk/audio/#playing-or-recording-audio-in-background-ios

Well in my case the video pauses also (even when going into the Control Center on iOS), do you think it's linked to this?

from playlist-example.

4lun avatar 4lun commented on July 20, 2024

Ah I missed that you mentioned video, I'm not sure if background video play is possible with expo-av. Only recently looked at getting audio files to work in the background and this was one of the things we had missing in our project

As an aside, we're already looking at an alternative package for audio due to a potential limitation: expo-av doesn't seem to expose/connect-to any native OS controls (e.g. control centre, lock screen) to show and control the currently playing media, which is a deal breaker for us

from playlist-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.