Is there a Youtube player for Xamarin PCL - youtube

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

Related

Can I use Youtube IFrame Player API as audio player?

I am using Youtube IFrame Player API on my own web project.
I am trying to use it as an audio player, so I hide iframe, and add a button which call playVideo() function.
I am wondering if it is legally okay to hide everything (iframe, logo, controller, everything) and use it as audio player.
Is there any legal problem for commercial use?

Play YouTube or Vimeo Video on iOS fullscreen and without WebView

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?

Playing Vimeo Videos with Custom Video Player in iOS

I have to play Vimeo videos in my iOS application using a video player. I need to log events like play, pause, seek etc. Its not possible to play using MPMoviePlayerController or AVPlayer as Vimeo videos have flash content. I am able to play using UIWebView. But, it is showing default Vimeo player controls. I need to have my own controls to play, pause etc as I need to log those events.
I have tried for lot of solutions. Nothing worked. If anyone knows how to play Vimeo videos using custom player. Please Let me know.
I am able to find out solution for this problem. I have used YTVimeoExtractor present here.
Its README.md file says following :
YTVimeoExtractor helps you get mp4 urls which can be use in iOS's native player. You can even choose between mobile, standard and high definition quality.
YTVimeoExtractor doesn't use UIWebView which makes it fast and clean.
I have used MKMoivePlayerViewController and its notifications - MPMoviePlayerPlaybackStateDidChangeNotification and ˚ notifications to get stop, pause events.
The only official way to use a player besides the Vimeo player to play Vimeo videos is to use third-party player urls provided to PRO members: https://vimeo.com/s/adg

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.

Play a list of media (video/audio) items on iOS

I'm developing an iPhone App and I need to implement a player to play a list of media (video/audio) items.
Following is a screenshot of player I have captured from an another iPhone app, I found many apps playing video/audio using a player has similar UI like this.
Can this player (including UI) can be implement by official API? Or just implement manually?
How can I implement a same player like this?
To Play audio follow this blog
And to play video, either you can use CustomMovieplayer or go with UIWebView with embedded html.
Movie Player sample code from here
To play video as embedded html in UIWebView, check this..
https://stackoverflow.com/a/7551375/790794
As per the file type, you can modify the source type.

Resources