Can I use Youtube IFrame Player API as audio player? - youtube-api

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?

Related

Controlling the YouTube player

Is it possible to control somehow remotely the YouTube player using the API? I mean, for example, sending a message to forward the video by 10 seconds, or switch to the next video.
https://developers.google.com/youtube/iframe_api_reference
You can switch to the next video with loadVideoById/Url, cueVideoById/Url (for YouTube Embedded Player).
But IFrame Player API does not have the messaging mechanism. You should implement original code in JavaScript (Note the following).
https://developers.google.com/youtube/terms/required-minimum-functionality#overlays-and-frames
You must not display overlays, frames, or other visual elements in front of any part of a YouTube embedded player, including player controls.

How do I change the YouTube player on my web site

How do I change the YouTube player on my web site. Like http://vidsshare.com/
Use the IFrame API for the embed video. The IFrame player API lets you embed a YouTube video player on your website and control the player using JavaScript.
Using the API's JavaScript functions, you can queue videos for playback; play, pause, or stop those videos; adjust the player volume; or retrieve information about the video being played. You can also add event listeners that will execute in response to certain player events, such as a player state change or a video playback quality change
Just check the link above to know more about it.
For more information, check this YouTube Player Demo. This demo demonstrates the YouTube Player API's functions. Embedded players must have a viewport that is at least 200px by 200px. If the player displays controls, it must be large enough to fully display the controls without shrinking the viewport below the minimum size.

Play Youtube Url In Webview without userControl in iOS

I want to play youtube url in UIWebview or MPMoviewviewcontroller.but the restriction is user should not control the playing video.could any one help ?
If you want finer control over youtube videos, theres a library (not written by me) called XCDYoutubeKit. Search for that and look at incorporating it into your app - theres a class in there that is based on MPMoviePlayerController, that allows the playing of youtube videos from their youtube id (I use it, its good). This also means you get a normal player, so you can pause, scrub through, etc.

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

Thumb return by YouTube API Player getClickToPlayButton() function is not playing video onclick

DisplayObject return by getClickToPlayButton() function of YouTube API is not playing video now.
I am using Chrome-less YouTube API player with custom chrome. My YouTube Playlist app is different SWF which load the custom chrome player swf and use YT object to create thumbs getClickToPlayButton().
I have also tried it on single SWF only using YouTube chromeless player and simple provided thumb by getClickToPlayButton() function but it does not play the video on thumb click.

Resources