User(s) browsing this thread: 1 Guest(s)
|
Using tvid="Play"
|
|
07-03-2012, 01:18 PM
(This post was last modified: 07-03-2012 01:37 PM by rolandhii.)
|
|||
|
|||
|
RE: Using tvid="Play"
I tested with myihome this morning, it doesn't support playing from current selected item. But I don't think that it is not possible from HTTP server.
While checking the HTML file generated during browsing local drive, I see the following BODY tag, which might do the magic here: Code: <body focushighlight=transparent background=file:///opt/sybhttpd/localhost.images/hd/bg.jpg marginheight=0 marginwidth=0 onloadset=1 file=c vod="?pl=v&start_url=" aod="?pl=a&start_url=" pod="?pl=p&start_url=" selected=vod>Maybe you can try adding the Code: vod="?pl=v&start_url=" aod="?pl=a&start_url=" pod="?pl=p&start_url="to your HTTP server and see if the links are appended. Edit: I just checked the HTML generated when browsing a UPnP media server, the BODY tag doesn't contain the code above, therefore it cannot play from the selected item too. But I found that it has the tvid="play" tag: Code: <a href="file:///upnp/playlis.htm?start_index=1&start_url=" tvid="_PLAY" vod=playlist upnp_av></a>So the magic word here might be the &start_url=, combine with the additional attributes in BODY tag, should give you what you want. I don't have a A110 now so can't show you the cmdline passed to mono when playback from selected item. |
|||
|
07-03-2012, 05:59 PM
(This post was last modified: 07-03-2012 06:02 PM by Pernod.)
|
|||
|
|||
|
RE: Using tvid="Play"
I added the tags to BODY and also the start_url attribute to the play request but no change, still starts the playlist from item 1. Also confirmed that nothing was appended to the request as the start_url attribute.
Could you post the HTML of the whole page in case there's something else I may have different? I think we're heading in the right direction but must be something else missing. SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
07-04-2012, 02:50 AM
|
|||
|
|||
|
RE: Using tvid="Play"
I'm not in the office today. Will post the complete HTML once I'm in.
|
|||
|
07-05-2012, 09:25 AM
|
|||
|
|||
RE: Using tvid="Play"
(07-03-2012 05:59 PM)Pernod Wrote: I added the tags to BODY and also the start_url attribute to the play request but no change, still starts the playlist from item 1. Also confirmed that nothing was appended to the request as the start_url attribute. I attached the complete HTML generated by local browser for both A110 and C200 here. 0.zip (Size: 3.03 KB / Downloads: 3)
|
|||
1 user says Thank You to rolandhii for this post |
|
07-05-2012, 09:44 AM
|
|||
|
|||
RE: Using tvid="Play"
(07-05-2012 09:25 AM)rolandhii Wrote: I attached the complete HTML generated by local browser for both A110 and C200 here.Many thanks. I'll modify these static pages to include my own local media to prove the concept, then remove anything that shouldn't be required until I have the bare minimum to function. In your previous post you quoted tvid="_PLAY" instead of tvid="play", I assumed this to be a typo so could also be a factor. SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
07-05-2012, 10:24 AM
|
|||
|
|||
|
RE: Using tvid="Play"
Somehow the tvid="_PLAY" is used in A110 only and I don't see it anymore on 200-series players. So if you are testing on your A200, you can just ignore that.
I have cut down the page to minimum as below: Code: <body vod="?pl=v&start_url=" aod="?pl=a&start_url=" pod="?pl=p&start_url=" selected=vod>I put the file on my HTTP server. If the BODY tag doesn't contain any extra attributes, it will just play the file I selected. If I put back the vod="?pl=v&start_url="..., I get the following request to my HTTP server, which I assume is correct. Code: GET /R/2/F/1/1/?pl=v&start_url=file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/share1/Media/M2m%20-%20pretty%20boy.avi |
|||
|
07-05-2012, 11:34 AM
|
|||
|
|||
|
RE: Using tvid="Play"
So it seems the 1xx and 2xx players have different requirements, annoying as I need to support both and my A100 is on permanent loan to my parents.
In previous tests I didn't have 'selected=vod' in the BODY tag, which obviously tells gaya which format to use. SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
07-07-2012, 03:41 PM
|
|||
|
|||
|
RE: Using tvid="Play"
Any update on this? Is this working now or you still need more info?
|
|||
|
07-07-2012, 03:52 PM
|
|||
|
|||
|
RE: Using tvid="Play"
Haven't yet had time to fully implement, but I have at least been able to get the start_url attribute set so I know the theory is good.
Many thanks for your assistance, I'm sure I have everything I need
SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
07-07-2012, 08:51 PM
|
|||
|
|||
|
RE: Using tvid="Play"
I have done this in my MusicBox Skin, If you hit play it starts on the Focused Track and plays the full CD.
Its done with a JavaScript, here is the Code I use in the Xslt files, MJ use to generate the HTML files. Code: <script type="text/javascript">Code: <script type="text/javascript">Code: <xsl:if test="$player='PCH'">I can create a HTML files and poste the Code also if it helps, but Its been a while since I read/write HTML, so if Im wrong or it doesn't help im sorry
Failure is always an option.
|
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]







![[+]](images/collapse_collapsed.gif)

![[Image: episode-fanart.jpg]](http://trakt.tv/user/Pernod/widgets/watched/episode-fanart.jpg)




![[Image: watched-fanart.jpg]](http://trakt.tv/user/meowmoo/widget/watched-fanart.jpg)