uiwebview going fullscreen automatically when loading page with strict multimedia - iphone

I created a uitableview with a uiwebview that loads a webpage that goes directly to the link of a multimedia file, but I don't want it to automatically go fullscreen. Simply load it and then allow the user to play it and then go fullscreen if he wants.

You cant do that using UIWebView, what you can do, is to change the link to an image that contains an play button overlay image (like youtube does) and then when the user clicks on that image, start playing the video.

Related

Youtube in iPhone blocks all click events after initiated

I am embedding a youtube iframe into a mobile slideshow which works fine up until someone clicks on the video, and it opens into it's native fullscreen support. After the video closes from fullscreen support, it leaves a some video elements inside the iframe which allows to resume the video, but blocks all other click events within the space of that iframe, meaning any elements that are z-indexed above that iframe are unclickable, and at the same time, none of my click events bubble up. Lastly, there's no way to access the DOM within that iframe since it's from a different origin.
Does anyone know of a way to access/disable this black void of a trap, whether it's some callback that is being called when it returns from fullscreen, or something else.
Image 2 is where the problem occurs

iPhone html5 video avoid native fullscreen when using airplay on Safari

I know that allowsInlineMediaPlayback only works on iPad, but my goal is to play the video on AppleTV, while I am displaying some dynamic html content on Safari. I basically want to get rid of the airplay indicator screen or hide it somehow, or open a new tab while the video keeps playing or kind of minimize it display just a small pause button on the bottom of my html page while the video is playing on AppleTV.
If this is not possible to be done on iPhone, can it be done on iPad ? I want to have as much space as possible on the safari page and just a pause button for the video.

Overlay on vimeo movie on iPad/iPhone not clickable

We have a embedded background movie on giardinohotelgroup.ch (if you click on a small movie, the whole movie starts)
On desktop everything works as expected (the topbar is overlapping the movie and the links are still clickable)
The problem is, the same functionality doesn't work on iPad/iPhone.
The links are clickable as long the movie didn't started. As soon the user pushs the playbutton the links are not clickable anymore.
Do someone know why? Should not be a z-index issue because the links are not behind the movie.
iOS does not allow interaction with any elements above a video when the native controls are used, which we do in the current version of our player. On the iPhone, when they hit play it will automatically go into full screen and there is no way to prevent that.

Adding a YouTube video to my application

I am trying to embed a YouTube video in my application, and I am going through this tutorial as a start. I get the red screen when I run it on the stimulator, so I presume everything went well.
Now when the user taps on the screen while the video is playing I need a toolbar to appear, with a slider showing the length of the video (and the user could slide to his/her desired time on the video).
I need to know if this feature comes by default when you embed the YoutTube video, or do i have to code it? If i have to code it how should i do it? Any sample codes or tutorial?
The only way to show a YouTube video in an iOS app is by having it inside a UIWebView (that is what the tutorial walks you through). Once the user taps the "play" button, the video should go full screen and automatically present the standard video controls that you see when you play videos on iOS.
Youtube provides the HTML code for embedding videos in web pages. This HTML code will also produce a video when embedded in a UIWebView. While the video is playing, all of the standard Youtube video controls (Play, Pause, Time Slider) should also show up in the UIWebView.

Accessing iPhone native video player that opens instead of HTML5 video

Annoyingly, when you have an HTML5 video on an HTML page, loaded inside an UIWebView, it opens the native player to play that video when you finally press the play button.
Is there a way to access that native player so I can either override the aspect ratio or hide the controls?
I tried checking all of the views that were added to my UIWebView, but that didn't get me anywhere.
Cheers
Maybe you could intercept the click on video inside your UIWebView and starts the native player pointing it to the video url.
In this way you have full control on the video player.