Play YouTube or Vimeo Video on iOS fullscreen and without WebView - ios

I know there are various libraries and approaches to play Youtube or Vimeo videos on iOS inside WebViews. Is there a way to play such a video without the use of a WebView at all? All I want to do is have my own "show video" button and when it's pressed then the default fullscreen video player on iOS should open and play the video from YouTube or Vimeo. Is that possible?

You can try with
https://github.com/0xced/XCDYouTubeKit
as reported in this thread:
How to embed a Youtube video into my app?

Related

How to block ads in Youtube embed video?

I have a slider on my website below and I'm trying to play a Youtube video in the background.
https://aremajans.com/
When I add a Youtube video, ads automatically start playing on that video. How will I prevent this?

Is there a Youtube player for Xamarin PCL

I want to create a YouTube video player for playing some trailers for my Portable Class. How do I open a trailer from YouTube in the FULL screen of the smartphone after clicking the Play icon like in the picture.
I prefer not to use the WebView component.
Youtube Playclick Icon
Here's a link to a video player tutorial in Xamarin. It is not specifically YouTube, but you can start from here. https://www.youtube.com/watch?v=luDyX0kYzY4&t=330s

How to play YouTube video without leaving app on iOS 7

Is it possible to play YouTube video without leaving app on iOS 7?
I tried LBYouTubeView but it does not work on iOS 7.
To play YouTube video you have to extract the youtube URL from the youtube videoID. there are lots of API available that extract this
XCDYouTubeKit
HCYoutubeParser
Another way to play youtube videos is WebView.
But you should not go for this because using this your application will be rejected.
The best way to play youtube videos is the Webview

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.

How to play youtube video without UIWebView or detect video player when youtube video start playing using webview?

I need to play youtube video in my iOS application and while video is playing I need to add an overlay on video.
1.Now how can i run youtube video in native player?
2.if I play video in UIWebview then how can i detect that video is
playing and how to add overlay on the video?
MPMoviePlayerViewController cannot directly play youtube video urls.You need to extract the url before loading MPMoviePlayerViewController with the url.
you can see a working demo in my github repo:
Try this::
https://github.com/DpzAtMicRO/IOSYoutubePlayer
LBYoutubeExtractor extracts the youtube Url with JSON.
Please do read the README.md before you use this in your application.
Regards
MPMoviePlayerViewController is a good one but last commit is years ago. I found another solution called 'XCDYouTubeKit' which supports iPhone/iPad and iOS7 onwards with full screen YouTube video.
You can access github page at here and fully documented tutorial at here
This is what official developer says in his page:
The only official way of playing a YouTube video inside an app is with a web view and the iframe player API. Unfortunately, this is very slow and quite ugly, so I wrote this player to give users a better viewing experience.

Resources