I am currently working on flutter app that main core feature is video calling.
I am using Agora.Io SDK for video calling. and I also implement FCM for Video call acceptance Screen and that is working fine but my question is how to handle that video call when the user receives an actual call and resume that call when the call is finished (like resume and pause )
how should I put that video call on hold and continue?
any help would be appreciated
You can use pauseAudio() and resumeAudio() function for your use case. You can find detailed description about these functions over here: https://github.com/Meherdeep/agora-flutter-documentation
Related
I am using Jitsi Meet Flutter Library in my app and I want to remove video option while in the calling screen(To make it look like its just a voice call). So is there any feasible way or tactic to implement this?
Thanks in advance.
No theres no such way to do what you want if you are using default server but if you are using your own server then you can customize it. Or else if you want to do it with default server then you have to recompile the react native SDK again your self according to your needs.
Suggestion: better use agora SDK for voice calling and jitsi for video calling. As agora provides support and customizations for separately voice and video call.
We are using Video Calling SDK for Unity, We want to wake up the app on an incoming call.
Problem:
We send a push notification when the video call starts, we want to ring the phone.
How do we achieve that?
First, the Agora Video SDK is actually more a "chatting" or streaming SDK. It doesn't include any phone calling capability. You may want to consider building a client-server architecture in handling notifications on the underlying OS. You will need to research on native APIs on how to ring the phone and then build a native bridge to invoke functions from the Unity application layer for further business logic.
Hi i am using Twilio Video sdk to implement a video calling feature inside my app. I implemented the video call successfully and the video is successful. But the voice is not transmitting between the two users.
I added MicroPhone Usage Key too in the info.plist file but that did not solve the problem. I tried with and without the microphones and headset but no voice.
I see that the addedVideoTrack functions is being called and the statements are printed inside that function. But the function addedAudioTrack is not being called at all.
Can some body provide a solution for this problem or point me in the right direction.
I am using the code from Quicstart example provided by Twilio.
Here is the link to the tutorial i am referring to.
I commented out a line and it was my mistake. I actually commented a line that prepared audio to work. I just found out and it worked. But now the video and audio are fully functional.
Is there a way to close a video after it is complete from an iPhone? I have a quiz that requires them to watch a video, and a timer that starts after it completes, but on the mobile device it doesnt close automatically. I am currently using the YouTube JavaScript API.
Does the webkitExitFullScreen function help if bound to the ended property for the video: (assuming jQuery, but you can bind the event using addEventListener if you're not using jQuery)
$('#video').bind('ended', function(){
document.getElementById('video').webkitExitFullScreen();
});
You will probably want to wrap it in a test for iOS specifically, as I think it's a proprietary extension so you'll want to avoid errors on other browsers...
https://developer.apple.com/library/safari/documentation/AudioVideo/Reference/HTMLVideoElementClassReference/HTMLVideoElement/HTMLVideoElement.html#//apple_ref/javascript/instm/HTMLVideoElement/webkitExitFullscreen
I have created an app with PhoneGap that plays music from an online stream. It continues playing in background while the iPhone is locked but, and it stops when an incoming phone call arrives.
The problem is that when the phone call ends, music does not sound anymore. I use an HTML5 audio element to play the stream, and my app traces show me that play and playing HTML5 audio element events are triggered after phone call ends.
However, it simply does not produce any music or sound at all.
Hook up to the pause and resume events of Cordova in your app, if you're in paused state, then your app is suspended and would not play anything. You should invoke your play function on the resume event. Fore more info see Events: http://cordova.apache.org/docs/en/2.6.0/cordova_events_events.md.html#Events
it happens when play command is executed before audio device enabled
for your app.
yeah it is because of the app shutdown when your call arrives, to get back to app & to play audio it requires some seconds, in short it requires some seconds to start audio device after your call ends.if your play instruction executed before audio device is initiated for your application
you can solve this by cordova's resume event
As an android programmer, there are similar issues. When dealing with CordovaWeb views doing HTML5, if the activity is interrupted for something else, such as a phone call, it needs to be handled in code. In Android, when there is an interrupt, onPause or similar is called. Inside of that, you would need to save state, and the URL of the page for the webview.
When you navigate back, you need to restore the state.
I know i am speaking in Android while this is iOS, but there is some overlap when doing stuff like that.
See: Save & restoring WebView in an embedded PhoneGap app