xibo icon indicating copy to clipboard operation
xibo copied to clipboard

Youtube integration

Open laercionit opened this issue 9 years ago • 19 comments

Youtube integration

Currently some of my users, perform download youtube videos and put into their libraries to enter later in the timeline.

We could in the timeline and library have the option of adding youtube video. The system would receive the URL, start the download process / convertible and available in the library.

What do you think?

Imagine adding a youtube channel and always display the last video? Pretty cool in my opinion.

laercionit avatar Jan 27 '15 02:01 laercionit

It would be great and could be developed in a similar way to the media rss (download, cache and serve later). The difficult bit would be the conversion to a supportable codec.

dasgarner avatar Jan 27 '15 08:01 dasgarner

Do agree. Something like what this does, but server side. http://keepvid.com/ That site converts to MP4, using flash or Java.

mymactek avatar Jan 27 '15 14:01 mymactek

mymactek, I understand your opinion, there are alternative ways. See that in my description informed that use these alternative forms. But always think of usability and end user. I think there is no way disagree that having this kind of service considering usability in the CMS would be interesting.

Why you would leave the system to make an action that targets the system.

laercionit avatar Jan 27 '15 17:01 laercionit

@mymactek KeepVid is an excellent tool! We already try to suggest using it where possible. If we could engineer something similar, then that would be great.

@laercionit Not really sure why you disagree? I think you are both suggesting the same thing :)

dasgarner avatar Jan 28 '15 09:01 dasgarner

If we could figure a way to tie in the Java from keepvid to run server side or even on their server and auto download and import, that would be awesome. I know there are some Java code out there that can do it server side but does take a good amount of resources sometimes.On Wed, Jan 28, 2015 at 3:20 AM, xibosignage/xibo [email protected] wrote: @mymactek KeepVid is an excellent tool! We already try to suggest using it where possible. If we could engineer something similar, then that would be great.

@laercionit Not really sure why you disagree? I think you are both suggesting the same thing :)

—Reply to this email directly or view it on GitHub.

mymactek avatar Jan 28 '15 14:01 mymactek

We are not disagreeing. We are just stating opinions. I think the functionality exists through external tools. My opinion is that having internally to CMS is considering a differential usability.

Imagine click to add content in the library, have the option Add Image, Add Font, Add Video, Add YouTube.

Clicking on YouTube asking the video URL. The system performs the download to the server and performed a service by converting. Then available in the library. While the file is being processed, the present status to the user.

This functionality is important to me, I have a personal interest in sponsoring and financing the encoding. Dan, if possible let me know by email what it will cost.

laercionit avatar Jan 29 '15 03:01 laercionit

I mean - you are both suggesting the same thing - you both have the same opinion :) Something like KeepVid, but within the CMS.

Interestingly I think it is against YouTubes terms of service to download a video that doesn't present a specific "download" button.

dasgarner avatar Jan 29 '15 15:01 dasgarner

It is ....

"

  1. you agree not to access Content or any reason other than your personal, non-commercial use solely as intended through and permitted by the normal functionality of the Service, and solely for Streaming. "Streaming" means a contemporaneous digital transmission of the material by YouTube via the Internet to a user operated Internet enabled device in such a manner that the data is intended for real-time viewing and not intended to be downloaded (either permanently or temporarily), copied, stored, or redistributed by the user. "

https://www.youtube.com/static?gl=GB&template=terms

On Thu, Jan 29, 2015 at 9:07 AM, Dan Garner [email protected] wrote:

I mean - you are both suggesting the same thing - you both have the same opinion :) Something like KeepVid, but within the CMS.

Interestingly I think it is against YouTubes terms of service to download a video that doesn't present a specific "download" button.

— Reply to this email directly or view it on GitHub https://github.com/xibosignage/xibo/issues/63#issuecomment-72039692.

mymactek avatar Jan 29 '15 15:01 mymactek

So there we go - no :game_die: on that idea.

I would suggest that the best thing to investigate would be a Xibo module that provides the correct streaming URL for YouTube based on the type of player connected (windows/android/the new one). No offline playback support, only streaming.

dasgarner avatar Jan 29 '15 17:01 dasgarner

What "new" player are you referring to ?Thanks On Thu, Jan 29, 2015 at 11:51 AM, xibosignage/xibo [email protected] wrote: So there we go - no on that idea.

I would suggest that the best thing to investigate would be a Xibo module that provides the correct streaming URL for YouTube based on the type of player connected (windows/android/the new one). No offline playback support, only streaming.

—Reply to this email directly or view it on GitHub.

mymactek avatar Jan 29 '15 18:01 mymactek

There isn't one yet - but we need to keep all requirements in mind when thinking about it: #29

dasgarner avatar Jan 30 '15 12:01 dasgarner

Great Ideas mymactek. You lose the operation offline but does not violate the youtube license.

laercionit avatar Mar 12 '15 01:03 laercionit

Another option for Android Player would be to use the YouTube Android API to stream the video...

Is that possible?? CMS the user just specifies the YouTube ID.. In Preview it can open it in iframe, android can use the Youtube Android API.. [http://www.androidhive.info/2014/12/how-to-play-youtube-video-in-android-app/]

suggest

supportreq avatar Jun 06 '15 11:06 supportreq

That is the most likely method actually, but does present some challanges around API keys, rate limits, etc.

dasgarner avatar Jun 08 '15 10:06 dasgarner

What about using Youtube-dl? There's even a web interface for it. Check out: https://github.com/dbr/webtools https://github.com/manbearwiz/youtube-dl-server https://github.com/d0u9/youtube-dl-webui (I recommend this one)

I guess you can use ffmpeg or something like that. Youtube-dl doesn't use API keys, I guess.

gabriellluz avatar Jan 30 '18 16:01 gabriellluz

I was under the impression downloading videos from Youtube was against the ToS (and also likely a copyright infringement). Can you point to any clear guidance or policy from Youtube that says otherwise?

alexharrington avatar Jan 30 '18 16:01 alexharrington

I thought Xibo downloaded content. That's why I said that. Otherwise it will have to actually stream on the fly.

gabriellluz avatar Feb 05 '18 16:02 gabriellluz

If you upload videos to the CMS then yes it does download those to each Player. The issue with Youtube is that we can't enable people to do something that is against Youtube's terms of service. If you decide to download a video from Youtube and upload it in to a Xibo CMS then that's your choice to do so. We've not enabled you to do that.

As it stands, the only way to get a Youtube video in to Xibo that we document is via their HTML embedding API which you are allowed to use, and in that case yes, the video will stream to the Player each time it is shown.

alexharrington avatar Feb 05 '18 16:02 alexharrington

Hmm. Yes. That's what I do, Streaming causes problems to me because our connection is not stable enough. Anyway, you're right.

gabriellluz avatar Feb 05 '18 18:02 gabriellluz