Show airplay/route button on default video player in iOS - ios

Why is it so difficult to show the airplay button in the default video player? Why isn't there a simple on/off switch? My app has a webview in place and videos that open through the webview open the default video player with no airplay button.
I tried using MPVolumeView and got the button to display in a view, but I cannot figure out how to show it in the place it normally should show, see image: http://i.stack.imgur.com/0xdoo.jpg

Related

MPVolumeView Airplay Button Disappears

I have created a custom video player in Swift using AVPlayer and am using the MPVolumeView for the volume control as well as AirPlay. The views initialize perfectly, but I am running into a case where the AirPlay button disappears inside the MPVolumeView.
When the view loads, the MPVolumeView is initialized without issues
When the user selects to use AirPlay, the MPVolumeView removes the volume slider and only shows the AirPlay, which is what is expected.
The problem comes when the user closes the UIViewController then opens it again to play another video. The Airplay remains enabled, which is the expected behavior. When the user selects to turn off AirPlay, the video returns to playing on the physical device, but the AirPlay button gets hidden.
I have even attempted setting showsRouteButton to true for my MPVolumeView, but that has no effect on this. What could be causing the AirPlay button to be hidden in this case? It only occurs if AirPlay is enabled when the user starts playing a video, then turns off AirPlay.

Can we avoid the native player in Full screen with Html 5 Player

I am trying to implement a html 5 player inside a Webview in my app. I added the webkit-playsinline tab in video and its now playing inline in iPhone and iPad.
The issue arises is when user hits the fullscreen button, in both the iphone and iPad, it opens up the native player, which I don't want.
Can this be achieved?
I have followed this and thats why I am able to play the video inline however, when the user click on the "Full Screen" the control transfer to the native player which I don't want.
yes, I am using a UIWebView inside my app not safari specific!!

Can't Play iFrame embedded YouTube video on iPad

I'm developing an iOS iPad app with an embedded YouTube video.
I'm having issues when the user tries to play the video touching the red square play image from YouTube, it seems that pressing that image won't trigger the play action. However, touching anywhere outside the red square play button works.
I've tested it with the iPad user agent with same results.
When embedding with controls:0 it seems that the action triggers perfectly, but I need the default controls.
Is there anyway to keep controls:1 and detect that touch to successfully play the video?
Try playing the video itself when it is loaded. If hitting the big red button is not a compulsion add "event.target.playVideo();" to the onReady function in the embeded HTML body. I have done so and the player in my application shows the big red button and starts the video itself immediately. I have used the following YouTube iFrame library youtube-ios-player-helper

Done button in full screen video player in iOS does not close video

In my application, when a button is clicked the full screen video player in iOS open playing a video file. However, when I click Done the player does not close.

Jwplayer 6: html5 fullscreen when video clicked to play

I want to be able to use jwplayer so that when the user clicks on the video the video will start to play in fullscreen mode.
I want this functionality to work on mobile devices that support html5.
If the video is played on a mobile device it will take up the whole screen.
Youtube and Vimeo currently do this on mobile devices.
The Link Below uses Html5 video tag, which plays in fullscreen on mobile device when the video is clicked on.
The only way I that I know that jwplayer allows fullscreen is that I manually click on the fullscreen button, but it would be nice to only click on the video to trigger the video to play in full screen.

Resources