Push to next vc. wkWebView - ios

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.

Related

How do I keep my video player working in flutter?

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.

Add video to existing call with CallKit from incall screen menu

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

Adding Sound With UIPageViewController iOS Swift

I am new to iOS, and am using PageViewController to set up an app with books. I am having a hard time finding any information on setting up sound with each page. How do you add mp3 files into an array using AVFoundation?
You can play a audio file in background usinf AVAudioPlayer u can even play different audio for different page.... Change audio file inside page view controller delegate method, visit this link for more detail info

Record video inside of iOS app, immediately play and loop

I'm looking for a way for my users to take a video (defaulting to front facing camera, but with the ability to switch) lasting 2 seconds, display that video immediately and have it loop indefinitely (no controls displayed). Essentially mimicking a 2 second gif. I would like to do this in app so they can see the video before posting, and potentially retake. Any ideas? I've found some functionality here: https://developer.apple.com/library/ios/documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/index.html#//apple_ref/c/tdef/MPMovieControlStyle but it doesn't seem to address the entire problem set.
Checkout this guide from Apple:
Using Video

iOS native app GA tracking (v2) - video and audio

I'm trying to track video and audio plays as screen views using the GA iOS SDK v2. Is this possible?
Normally one would replace the uiviewcontroller reference with GItrackedviewcontroller. This doesn't seem to be an option.
Yes, this is possible. You can manually invoke
[tracker sendView:#"My view name"];
everytime you open a video or audio stream.
The GAITrackedViewController does nothing other than placing exactly this sendView call in the viewDidAppear (or viewWillAppear, not sure about that).

Resources