How to get done button action in UIWebView default player? - swift

I am working on iOS app. I need to play video in the UIWebView.Every things is working fine but my requirement is to get done button action.
Can we handle webView done button action or not in iOS.
Thanks.

Related

Implement the Flash button animation as in iPhone camera in my app?

Im developing a camera app, I want to implement the same animation that happens in default iPhone camera app when you click on the flash button, i.e once you click on the flash button, we can see the other 2 buttons animating, and once you click any one button it again animates and hides.
how can i do this?
Thanks in advance.
Take a look at DDExpandableButton which is able to do exactly this and even includes example code for creating a flash button. https://github.com/ddebin/DDExpandableButton

Android Enable WebView Touch Sound

I need to play touch sounds on Web view event clicks, I enabled the Touch sounds and tried it on android version less than 4.1 it works fine, from my Web View i click the radio button it make to hear the click sounds but on 4.1 and above it doesn't make click sound when I click radio button or button clicks even . I hope it's disabled from the sdk Web view itself at 4.1 and above. Let me have any possible solution to fix the issue.
Thanks in advance!
I believe this is not possible, since the events inside the WebView are not passed to the Android system, you may have a chance to create such beheaviour by embedding these sounds inside the webpage you are rendering inside the WebView.

Webpage opened inside an iphone app doesn't stop sound after closing

I have a mobile minisite that is reached from some iphone/android apps through banners
the site integrates a html <audio> tag that plays some sound after clicking a button
While in some apps everything works great, in a certain app - while the banner is clicked the minisite is opened in a some kind of browser inside the app (screenshot provided below)
the problem is that when the user closes that browser (by click the X button) while the sound is playing - the sound doesn't stop
is there anyway to know when the browser is closed in order to stop the sound manually?
I guess window.onbeforeunload won't work here because if the site was unloaded - the sound would stop anyway
screenshot of the kind of browser I'm talking about:
thank you very much
One possibility would be to setup an event listener for the blur event and just pause the audio then.

Can Vuforia AR button open another view or app?

I'm making an app using unity and vuforia extension. When app will recognize an image it should show a button above it and, when the user presses it, I want to display a photo gallery. Is there a way to make this button trigger showing another UIView? Or show another app?
Yes, you can definitely do this. There are resources out there that will teach you how to create a plugin where you can launch an external UIView. For example: http://forum.unity3d.com/threads/56755-Unity-plugin-to-handle-loading-native-Cocoa-UI-s-with-ease
Also, you can open another app using Apple's URL scheme, described here:
https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html

YouTube javascript API accessible via UIWebView on iPad?

I can't seem to get this working using stringByEvaluatingJavascriptFromString. Apparently the webview does something peculiar to youtube videos (due to the YouTubePlugIn.webplugin perhaps?) and the javascript API is unusable.
The problem I'm having: How do I pause\stop a video when the user navigates away from a UIWebView with an embedded YouTube video?
Right now the only thing I can think off is reloading the view from a string before navigating away... but that seems heavy and hackish.
Has anyone had any luck with this?
Loading an empty string is the only thing I have found that works right now.
I am trying to play the video in a popover, and clicking off the popover (closing it), causes the sound to still play in the background until a new video is selected. The solution to this is to load an empty string. Unfortunately, if they fullscreen, clicking off the popover to close it (because it sits on top of the fullscreen video) loads the empty string, and then the entire application crashes. :(