GithubHelp home page GithubHelp logo

Comments (10)

superdump avatar superdump commented on August 11, 2024

I think @stefanalund and @Rugvip can probably figure this out. It's platform specific and we need to document how on Android and iOS.

from openwebrtc-examples.

stefanalund avatar stefanalund commented on August 11, 2024

iOS stops the camera when an app is put in to the background, but audio should be possible to keep alive. There's a specific background mode that needs to be enabled in the App Settings.

from openwebrtc-examples.

oney avatar oney commented on August 11, 2024

Yes, I expect that the app keeps audio talking in the background.
I add key Required background modes that has App plays audio and App provides Voice over IP services item to Info.plist. Unfortunately, it's not working.
image

from openwebrtc-examples.

oney avatar oney commented on August 11, 2024

It's interesting.
I modify the code like this to use audio only, and when entering background mode, the app will keep audio connection. I can listen and send voice with each other.

[nativeHandler startGetCaptureSourcesForAudio:YES video:NO];

However, when entering background, iPhone won't show using audio view on the top. When I test Talky.io app, it will show like this.
image

from openwebrtc-examples.

stefanalund avatar stefanalund commented on August 11, 2024

So audio is running when in the background now?

from openwebrtc-examples.

oney avatar oney commented on August 11, 2024

Yes, it is.

from openwebrtc-examples.

superdump avatar superdump commented on August 11, 2024

We use OpenGL for video rendering in hybrid and native applications in case that gives any clues.

It could possibly be as simple as deregistering the nsview against the tag. And then reregistering again when coming back into focus. I think @Rugvip has done something like that on Android but I'm not sure.

from openwebrtc-examples.

superdump avatar superdump commented on August 11, 2024

Perhaps I should ask if display of video resumes when you resume the app.

from openwebrtc-examples.

stefanalund avatar stefanalund commented on August 11, 2024

Sorry for all the questions and few answers, but did audio start working in the background when you went audio-only?

from openwebrtc-examples.

oney avatar oney commented on August 11, 2024

Yes, it did.
Audio worked in the background when the app went audio-only.

from openwebrtc-examples.

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.