NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 52 53 54 55 56 … 93 Next »
YouTube plugin

 
  • 0 Vote(s) - 0 Average
YouTube plugin
boohiss
Offline

Junior Member

Posts: 30
Threads: 11
Joined: Apr 2006
#1
2006-07-29, 05:02 AM
I'm trying to see if I can't tackle a YouTube plugin for GB-PVR.

Forget for the moment the logistics of finding and selecting the YouTube clip you want. I'm interested in simply displaying a YouTube video within GB-PVR as close to full screen as I can.

I've gone through the basic GB-PVR plugin tutorial, and I have some experience with .NET programming, so I'm not a total newbie here. Here's what I've discovered:

It's possible to display a webpage (given a URL) within a form (I'm not sure how exactly). It's also possible to get a "full screen" YouTube URL from a given video (see: this and this for example).

So, I'm thinking the easiest method is to combine these two, and whal-la: YouTube in GBPVR. Here's the problem: I'm not sure what class (if any exists) that lets me embed a 'web browser' object in the form, and I'm not sure how to then stick that object on the canvas in the render() function (or if I should be sticking it somewhere else somehow).

Any ideas? Any bit of information will help.

Thanks,

Matt
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#2
2006-07-29, 05:13 AM
you may need to do what i had to do for the vidphone plugin and create a seperate form, this wont work on mvp etc but will work on the pc.
boohiss
Offline

Junior Member

Posts: 30
Threads: 11
Joined: Apr 2006
#3
2006-07-29, 02:59 PM
Okay, sounds like a plan so far. What's the best way to do that within the context of inheriting an IMenuTask?

Do you have the source for your vidphone plugin available?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#4
2006-07-30, 12:13 AM
the way i did it was,

do all the interface for selecting a call, view contacts etc in the render method of the imenutask

and only show the other form when the call is in progress. if its fullscreen there wont be any issues with the skin etc in that form.
just be careful and remember to create that form on the same monitor as gbpvr (i forgot about this).
boohiss
Offline

Junior Member

Posts: 30
Threads: 11
Joined: Apr 2006
#5
2006-07-31, 03:16 AM
So far, so good. I'm using a WebBrowser object to display the YouTube movie on a seperate form, and I've got a public variable that can be set to the URL of the movie. Works great!

Now on to the trickier issue of interface.

Thanks for your help!
HTPCGB
Offline

Member

Posts: 215
Threads: 15
Joined: Jun 2006
#6
2006-07-31, 12:51 PM
This is somewhat similar to what I want to do with my CNN video plugin. Mind if I use your seperate form idea?
djdafreund
Offline

Member

Posts: 104
Threads: 15
Joined: Apr 2005
#7
2006-08-02, 05:46 AM
You could check out the YouTube python Script from the xbmc script site. It is a script that shows the full list (all kinds of selectable options for choices and search,etc. though.) and see since python scripting is universal somewhat. It mightbetter show how it is handled, since it show video's just fine on the tv, using xbmc. It could possibly help find an answer.
If that doesn' help. Sorry, i tried.
boohiss
Offline

Junior Member

Posts: 30
Threads: 11
Joined: Apr 2006
#8
2006-08-02, 12:39 PM
djdafreund Wrote:You could check out the YouTube python Script from the xbmc script site. It is a script that shows the full list (all kinds of selectable options for choices and search,etc. though.) and see since python scripting is universal somewhat. It mightbetter show how it is handled, since it show video's just fine on the tv, using xbmc. It could possibly help find an answer.
If that doesn' help. Sorry, i tried.

Actually, I figured out the YouTube displaying part in no time at all. I simply dropped in a WebBrowser object, set the form to full screen, set the WebBrowser object to the same size as the form, and set the URI to the fullscreen YouTube URL (which I scraped from the HTML source).

So, that was entirely too easy. The interface is what I'm working on now, and that's tricky.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,734 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,296 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,421 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,861 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,737 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,028 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,932 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 4,931 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,212 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,406 2012-01-15, 08:33 PM
Last Post: imilne

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode