Hi wonderful people,
I've been trying to work out a better way to use OpenLP to show YouTube clips, that doesn't violate their terms of service (as with downloading clips) but also avoids waiting for buffering and ads (as with iframe in a custom slide), all the while keeping in OpenLP (as with loading and pre-buffering a clip in a web browser).
I have knocked together a sample idea in HTML/JS, but I'm a hobby programmer and not very familiar with python yet and was wondering if anyone could give me a helpful starting place for building plugins? The wiki page is out of date, and while I'll continue to read through the source code for ideas, a rundown of the structure would be super helpful.
Happy to show the source files for the HTML mock-up if anyone is interested (skipping ads not guaranteed, but for now it is)
Thanks,
Michael
Comments
It would be interesting to see what you've come up with. YouTube, has been a bit of a hot request, but one with so many different issues, as you've hinted at!
If you're keen on pursuing this, first you should check out https://wiki.openlp.org/Development:Getting_Started and then come and have a chat with us guys on IRC. Also the mailing list is available for deeper discussions.
As for developing a YouTube plugin, the custom plugin probably follows close to what you want to do, so I suggests using that as a starting point.
Thanks for your reply. The code is now on GitHub at https://github.com/Lawzy93/olp-yt
Let me know if you have any questions. I'll keep you updated on how things are progressing.
Michael
"Autoplay and scripted playbacks
This section covers automatic playbacks. It applies to YouTube embedded players that either use the autoplay player parameter or programmatically initiate automatic playback using the YouTube IFrame Player API service, the YouTube Android Player API service, or another YouTube API service.
My other option would be to somehow integrate youtube-dl.
In lieu of a YouTube plugin, I've created a more universal tool that handles anything that VLC handles. Fundamentally the problem is that VLC doesn't have an easy to access remote control or full screen. It has to be done from the command line.
I have coded up a simple tool that allows you to just enter a URL and a start time, and it'll run VLC full screen. The remote control is placed in another window (just like OpenLP).
Here is the web page and download link: https://sites.google.com/site/anvilsoup/multimedia/vlc-secondary-window
Thank you very much for creating and sharing this tool with the community! :-)