Re: Re: Help With Custom onlinemedia.xml – Youtube
Home › Forums › Help and Support › Help With Custom onlinemedia.xml – Youtube › Re: Re: Help With Custom onlinemedia.xml – Youtube
@jhb50 wrote:
… my “Autoplay Next YouTube” option played thru this ordered list without interuption. Kinda cool.
Now if I could add the captions!
Unfortunately I haven’t had time to compile a version of WiiMC with your additions 🙁
@jbh50 wrote:
Edit: Perhaps I misunderstood your snippet..is that what wiimc.org gets back from a yt search and then it translates it and sends the correct attribute,value pairs to the WIIMC program?
The snippet:
[playlist]
File1=http://www.youtube.com/watch?v=l9gPGYqpAuA
Title1=HD Starcraft 2 BoxeR v Set
Length1=-1
Is the format accepted by WiiMC’s online media…
What I mean by this is:
One makes a ‘playlist’ in the onlinemedia.xml file, i.e.:
When one then clicks on this entry in Online Media, I assume WiiMC makes a GET request to the addr and expects a certain format to be returned. In the case of Youtube, I discovered that the format it requires is what I posted above.
I have no idea what WiiMC does with it then, I’m not delving into C++. I guess it reads the list and extracts whatever parts it finds useful, then creates a list of objects that are then displayed as the clickable “playlist” that we see on our TV’s.
@jbh50 wrote:
WIIMC is looking for attribute= ….=value pairs, where the valid attributes are “type”,”name”,”url”,”thumb”, and “processor” , The values for “type” are “video”,”audio”,”playlist”,”search” and folder, the value for url is the http address, the value for name is the displayname, and the value for thumb is the address of the thumbnail image as currently used by Navi, and WIIMC uses these values to build its internal playlist.
I know nothing of what goes on inside WiiMC.
Do you think you could create a handler for a custom type? Or modify the [playlist] type to accept an url to a video’s captions? I can provide a PHP file / class to request and spit out any Youtube information you desire, in whatever format.
