Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
Using tvid="Play"
07-03-2012, 01:18 PM (This post was last modified: 07-03-2012 01:37 PM by rolandhii.)
Post: #16
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.
Find all posts by this user
Add Thank You Quote this message in a reply
07-03-2012, 05:59 PM (This post was last modified: 07-03-2012 06:02 PM by Pernod.)
Post: #17
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
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
07-04-2012, 02:50 AM
Post: #18
RE: Using tvid="Play"
I'm not in the office today. Will post the complete HTML once I'm in.
Find all posts by this user
Add Thank You Quote this message in a reply
07-05-2012, 09:25 AM
Post: #19
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.

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.

I attached the complete HTML generated by local browser for both A110 and C200 here.


.zip  0.zip (Size: 3.03 KB / Downloads: 4)
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to rolandhii for this post
07-05-2012, 09:44 AM
Post: #20
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
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
07-05-2012, 10:24 AM
Post: #21
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>
<table>
<tr><td><a name=01 onkeyupset=00  onkeydownset=02  tvid=01 href="file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/share1/Media/HD.Club-Alisan.Trailer-80Mbps.mpg" vod alt="HD.Club-Alisan.Trailer-...video/mpeg                781 MB" file=c  >
    <marquee width=600 behavior=focus class=list>HD.Club-Alisan.Trailer-80Mbps.mpg</marquee></a></td></tr>
<tr><td><a name=02 onkeyupset=01  onkeydownset=03  tvid=02 href="file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/share1/Media/M2m%20-%20pretty%20boy.avi" vod alt="M2m - pretty boy.avi      video/x-msvideo           11 MB" file=c  >
    <marquee width=600 behavior=focus class=list>M2m - pretty boy.avi</marquee></a></td></tr>
<tr><td><a name=03 onkeyupset=02  onkeydownset=04  tvid=03 href="file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/share1/Media/sample_test.ts" vod alt="sample_test.ts            video/mpeg                1018 MB" file=c  >
    <marquee width=600 behavior=focus class=list>sample_test.ts</marquee></a></td></tr>
<tr><td><a name=04 onkeyupset=03  onkeydownset="last"  tvid=04 href="file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/share1/Media/SUB-14.avi" vod alt="SUB-14.avi                video/x-msvideo           2 MB" file=c  >
    <marquee width=600 behavior=focus class=list>SUB-14.avi</marquee></a></td></tr>
</table>
</body>

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
Find all posts by this user
Add Thank You Quote this message in a reply
07-05-2012, 11:34 AM
Post: #22
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
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
07-07-2012, 03:41 PM
Post: #23
RE: Using tvid="Play"
Any update on this? Is this working now or you still need more info?
Find all posts by this user
Add Thank You Quote this message in a reply
07-07-2012, 03:52 PM
Post: #24
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 Smile

SwissCenter Developer
Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700
AV: Pioneer VSX-915 | Samsung LE40C650
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
07-07-2012, 08:51 PM
Post: #25
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:
&lt;script type="text/javascript">
      
      function enablePlay(playHRef)
      {
        document.getElementById('PLAY_LINK').attributes[0].nodeValue = playHRef;
      }
      function dolphpopup(mybit)
      {
        document.styleSheets[1].cssRules[mybit * 2].style.visibility = "visible"
    document.styleSheets[1].cssRules[mybit * 2 +1].style.visibility = "visible"
      }
      function dolphpopdown(mybit)
      {
        document.styleSheets[1].cssRules[mybit * 2].style.visibility = "hidden"
    document.styleSheets[1].cssRules[mybit * 2 +1].style.visibility = "hidden"
      }
</script>
Code:
<script type="text/javascript">
  
            function playFrom(songIndex)
            {
              if(document.getElementById('PLAY_LINK'))
              {
                document.getElementById('PLAY_LINK').attributes[<xsl:value-of select="$enablePlayPos"/>].nodeValue = '<xsl:if test="$slidemode = 1"><xsl:value-of select="$slidemode"/>,2,</xsl:if><xsl:value-of select="//album/play_from"/><xsl:text disable-output-escaping="yes">&amp;</xsl:text&gt;start=' + songIndex;
              }
            }  
&lt;/script>
Code:
<xsl:if test="$player='PCH'">
                            <xsl:attribute name="onfocus">enablePlay('<xsl:value-of select="playlist"/>');</xsl:attribute>
                        </xsl:if&gt;

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 Tongue

Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  initiating play using an external device e.g. ipad doubledrat 0 896 02-05-2013 10:31 AM
Last Post: doubledrat
  Need help to play web streaming http mp4 dtsexpert 0 1,765 08-27-2011 02:31 AM
Last Post: dtsexpert
  Play To Function & Seek Slycer 0 1,437 04-14-2011 11:24 AM
Last Post: Slycer
  Video won't play using llink backisen 2 1,640 11-18-2010 10:02 PM
Last Post: backisen
  NMT & 'play to' in WMP win7 markflip 3 2,857 06-29-2010 08:42 PM
Last Post: markflip
  Can't play audio with Swisscenter JKG 3 2,349 01-29-2010 03:38 PM
Last Post: JKG
  Will the C-200 play DTS-HD and/or True-HD from a m2ts file via LLink? bijou 0 1,674 10-15-2009 11:25 PM
Last Post: bijou
Question Does Windows 7's Play to feature work with Popcorn hour? John Ericson 26 8,618 09-08-2009 02:51 PM
Last Post: Cadish
  Cant play ISO or VIDEO_TS from Kroozbox mag09 0 1,182 08-22-2009 09:08 PM
Last Post: mag09
  UPnP "Play to" (WMP12) alternative Cadish 2 5,246 07-26-2009 03:02 PM
Last Post: dc11ab

Forum Jump: