Comments (10)
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.
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.
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.
from openwebrtc-examples.
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.
from openwebrtc-examples.
So audio is running when in the background now?
from openwebrtc-examples.
Yes, it is.
from openwebrtc-examples.
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.
Perhaps I should ask if display of video resumes when you resume the app.
from openwebrtc-examples.
Sorry for all the questions and few answers, but did audio start working in the background when you went audio-only?
from openwebrtc-examples.
Yes, it did.
Audio worked in the background when the app went audio-only.
from openwebrtc-examples.
Related Issues (20)
- android native demo failed to call web demo
- web/client/main.js SDP is not defined HOT 3
- main example broken, no errors reported
- simpledemo dont work in iphone5s,ios7.1.2,the warning is cannot inject custom Javascript
- Android NativeCall crashes on Join HOT 3
- Linux demo or exemple ? HOT 1
- Why Android project video is not clear,Please help me.
- Android NativeCall crashes on Join HOT 1
- NativeDemo crashed on iOS device HOT 2
- Can't connect the room in iOS NativeDemo app HOT 4
- OpenwebRTC web example doesn't work HOT 1
- i have downloaded android native call ,and setup with android studio.after running the app, i have given a session id and clicked on join button my app crashes and shows null pointer exception in onDisconnect method.here my code calling the onDisconnect() method directly .can you please help me .. HOT 2
- demo.openwebrtc.org uses an invalid SSL certificate HOT 3
- Can your NativeCall example run under x86 or x86_64 Android studio emulator HOT 1
- nativedemo is not work
- None of the Android demos seem to work for video, no error message.
- Android Native Call demo can not connect with local web demo
- Does someone has a working sample code of a openwebrtc sender or receiver?
- wowza webrtc
- Not Working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwebrtc-examples.