We are using CallKit in our iOS 10 VoIP app. We have noticed that when on a call managed by CallKit, tapping the incall Video button sends a StartCallIntent and so starts a new video call. What we require is to add video to the existing call. So we really need a callback method just as the Mute, Hold and Group buttons call various methods. But there is no callback for the incall Video button.
Anyone know how to solve this problem.
Thanks
Related
I have tried many solutions from here but no one is working. WebRTC is working fine and I get connected status when accepting the call while the device is locked and after the unlock the audio opens and video starts. How could I get only audio when the screen remains locked?
I have enabled RTCAudioSession and disabled it when the call stops.
It's working fine when the device is unlocked the first time and when I lock it back I'm getting the audio. But the first time, when I answer the call from CallKit, it is not working. It only starts working after the device is unlocked.
I don't know the cause of your specific problem, but what I learnt from similar issue while integrating CallKit with WebRTC, you must acquire camera and microphone access only inside the DidActivateAudioSession method of your implementation of the CXProviderDelegate class. Otherwise, you will get weird issues.
I have a wkWebView where I display a video. How can I automatically switch to the next screen after the video ends?
It doesn't look like WKWebView has any call back methods to notify when a video has completed. The only suggestions I can provide is if the video lives locally in the app, you can use AVFoundation and take advantage of their call back methods. Other users have also mentioned using Javascript to detect when an online video has finished.
When I use the video_player plugin, I use the Navigator.push function to go to another screen where I push a button to display the video. Once the video is over, I push the back button. If I activate the Navigator.push function again and push the button to display the video, no visual is shown and only the audio is played. Can someone tell me what is going on and how to fix this?
Never mind, I found out that the issue was that I needed to call setState before I could display the video the second time.
When I use CallKit in my project, I don't know how to control the speaker button. Other buttons like mute,hang up and so on can be control. When I test my project, I found that the 'AVAudioSession' instance is changed when I tap the speaker button, but the result is unsatisfactory. When I tap once, the speaker button is not changed selected status , sure, speaker is not opened. Twice the speaker button is changed to selected status. But the speaker effect seems to me very strange. I want to know the system mechanism of CallKit framework so that I can modify my code about 'AVAudioSession'. Thanks.
According to https://forums.developer.apple.com/thread/66308
You will have to listen for audio route changes and perform speaker phone actions when the audio route changes to speaker mode.
I have a music player app which implements background audio. I’m trying to update the screenshot in the iOS7 multi-tasking switcher when the track changes. So, if I background the app during Song A, it finishes and Song B comes on, if I then go into the tray I’d like to see a screenshot showing Song B’s artwork, title, etc.
I’ve done some digging and not managed to find any way to tell iOS to update short of implementing Background Fetch and going all out with that. Is there another means of doing this, something I can call to tell it to refresh it when my tracks change?
Apple does not provide any means of doing this. Even iOS own media player does not have this ability.