suppose I have a youtube video url I want to play it in my rails app with a player how can I do that do any one know any gem to play a video from youtube any dailymotion?
Related
I'm developing my youtube app on iOS and using AVPlayer to play video. But I don't know why my player can't play the Vevo video. Any idea for my problem? Thanks a lot.
You should use the iOS Youtube Helper library for playing youtube videos.
https://developers.google.com/youtube/v3/guides/ios_youtube_helper
I don't know if you can use the AVPlayer. I've seen some examples using MPMoviePlayerController on CocoaControls, like this one: https://www.cocoacontrols.com/controls/hcyoutubeparser or this one: https://www.cocoacontrols.com/controls/xcdyoutubevideoplayerviewcontroller
But I don't think using youtube's url directly in your player fits the ToS of the platform. So I will recommend you tu use the Youtube Helper Library if you are planning to publish your app.
Is there a way to get the youtube video without the youtube player? The youtube player sdk - https://developers.google.com/youtube/android/player/
uses the existing youtube player, I need the url that it uses to play the video, so that I can use my custom video player. More of using youtube as a hosting service, where I can pull the videos from the server from which youtube player pulls it. Don't know if it is possible or legal.
I have read this document on how to play youtube video in iOS app. But for some video I am getting error "Restricted Video.
This app is playing restricted video also.'Musify Video Tube For YouTube - Free Music Player and Streamer'
Which player or SDK or api to play restricted video?
Finally got solution with this https://github.com/0xced/XCDYouTubeKit.
*Yes its against terms and condition of youtube.
Can I use youtube player to play my own videos?
Say I have a localhost running and I have some video files stored and I have a html code that has Youtube player's code and I can specify something like
<src="localhost/videos/cat.avi">
And it plays cat.avi on my browser just like youtube player.
No - you can't play local videos using youtube player.
If you want to play them you'll need to upload them to youtube.com.
Check out Play a local video with YouTube Player
I was wondering if there was any way to load a YouTube URL like http://www.youtube.com/watch?v=EbJtYqBYCV8 and then only playing only the audio from this video in Xcode.
Thanks!
-Petahwil