User(s) browsing this thread: 1 Guest(s)
|
Using tvid="Play"
|
|
06-18-2012, 10:34 AM
|
|||
|
|||
|
Hi,
Can someone explain how tvid="Play" is used in myiHome and the normal NMT file browser to start a playlist from the selected item? Looking at the page source of a file list from myiHome I only see a single hidden link that's assigned to the Play button that generates a playlist, but doesn't seem to contain anything to suggest it knows which file to start the playlist from. Each file item has it's own link assigned to a number button to play the individual item, as expected when you press Enter. So, if I have a menu of eight files and press Play on the third file how does the underlying app know that play was pressed on the third file to generate the appropriate playlist? SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
06-18-2012, 05:16 PM
|
|||
|
|||
|
RE: Using tvid="Play"
I could probably answer this for you but I'd need to see the html your taking about. I've never run myihome nor do I have it setup to look.
|
|||
|
06-19-2012, 05:58 PM
|
|||
|
|||
|
RE: Using tvid="Play"
myiHome serves pages that contain:
Code: <!-- invisible link eg. tvid=refresh -->The visible link for track 4 could be: Code: <a href="http://localhost:8000/perform?id=5422&counter=2&application=music&action=playsong" tvid="4" style="width:280" name="item4x" onkeyrightset="item4x" pod="2,1,http://localhost:8000/perform?list=music%2fLossless%2fMoody%2520Blues%2520MFSL%2520Collection%2520Plus%2fThe%2520Moody%2520Blues%2520-%2520A%2520Question%2520Of%2520Balance%2520%2528MFSL%2529%2520%25281969%2529%2528flac%2529&application=music&action=goslide" onkeyleftset="home" onkeydownset="item5x" onkeyupset="item3x"><font class="text"><marquee behavior="focus" width="280">03 - And The Tide Rushes In</marquee></font></a>How does the PCH know I had track 4 highlighted when I press Play? Do I have have to set the name to 'item4x' or something else? SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
06-30-2012, 07:51 PM
|
|||
|
|||
|
RE: Using tvid="Play"
Sorry, forgot we started to talk about this.. From what you posted, I agree and don't see anything that should be linking them (unless there is something hidden in gaya they are using and we just don't know it)..
I suspect there is probably additional javascript you may not have posted which may not be obvious it's moving the onclick. |
|||
|
07-01-2012, 10:15 PM
|
|||
|
|||
|
RE: Using tvid="Play"
There must be something in gaya that is not documented anywhere but the desired effect must be deducable.
An entire page is as follows, no j Code: <!-- invisible link eg. tvid=refresh -->I don't think the hidden links are required for what I want though since the hidden Play link effectively plays the whole folder. SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
07-01-2012, 10:30 PM
(This post was last modified: 07-01-2012 10:30 PM by accident.)
|
|||
|
|||
|
RE: Using tvid="Play"
It sounds like it must trigger playing all links with vod in it.
|
|||
|
07-02-2012, 01:00 AM
|
|||
|
|||
RE: Using tvid="Play"
(07-01-2012 10:30 PM)accident Wrote: It sounds like it must trigger playing all links with vod in it.Possibly, but then why would it also have a hidden playlist link assigned to the Play button? Looks like I'll have to do some experimentation. SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
07-02-2012, 04:27 AM
|
|||
|
|||
|
RE: Using tvid="Play"
It has been a long time since I last read gaya code. IIRC, when you press a link with tvid, eg tvid="play", gaya will append the currently focused item link to the end of tvid link. So let's say your cursor is at item 3 when you press the PLAY key, the link that passed to the server will be
http://localhost:8000/perform?list=video%2fCartoons%2fPixar%2520Shorts&application=video&action=playlist&page=&http://localhost:8000/perform?id=8830&counter=1&application=video&action=playvideo Can you use a network packet capture program to check the link that is sent to the server? Or if you are able to check the page generated when browsing local storage files, I think you can see it more clearly. |
|||
2 users say Thank You to rolandhii for this post |
|
07-02-2012, 10:20 AM
|
|||
|
|||
RE: Using tvid="Play"
(07-02-2012 04:27 AM)rolandhii Wrote: It has been a long time since I last read gaya code. IIRC, when you press a link with tvid, eg tvid="play", gaya will append the currently focused item link to the end of tvid link. So let's say your cursor is at item 3 when you press the PLAY key, the link that passed to the server will beThis makes sense, and explains why there is a &page= at the end of the play link. Many thanks for the technical input. SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
07-02-2012, 11:33 AM
|
|||
|
|||
|
RE: Using tvid="Play"
Please test out and see if you need more info. I can dig out the source code if necessary.
|
|||
|
07-02-2012, 01:01 PM
|
|||
|
|||
|
RE: Using tvid="Play"
If I look at mono output on the A1x0 when it plays from myiHome it uses that second syntax and you can see the syntax written to stdout
mono -playlist http://ip:8000/perform?id=257&counter=0&application=video&action=playvideo -dram 1 Note the second ip is probably on localhost if the myiHome server is on the NMT. Martin |
|||
|
07-03-2012, 12:56 AM
|
|||
|
|||
RE: Using tvid="Play"
(07-02-2012 11:33 AM)rolandhii Wrote: Please test out and see if you need more info. I can dig out the source code if necessary.I've done some testing and it doesn't seem to append the currently focused item link. I monitored network activity between a PC running myiHome 5.2 and the A-200. With a folder containing 3 videos I monitored the same communictaion when pressing Play on each video, ie. it simply generated a playlist of the whole folder and started playing from the first item. Code: GET /perform?list=video%2fComedy&application=video&action=playlist&page= HTTP/1.0Even if we succeed in appending the currently focused item link is it even possible to send a playlist to the player and tell it to start on item 3? SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
07-03-2012, 02:26 AM
|
|||
|
|||
RE: Using tvid="Play"
(07-03-2012 12:56 AM)Pernod Wrote:(07-02-2012 11:33 AM)rolandhii Wrote: Please test out and see if you need more info. I can dig out the source code if necessary.I've done some testing and it doesn't seem to append the currently focused item link. I monitored network activity between a PC running myiHome 5.2 and the A-200. With a folder containing 3 videos I monitored the same communictaion when pressing Play on each video, ie. it simply generated a playlist of the whole folder and started playing from the first item. Are your files listed in the following order? Celebrity.Juice.Too.Juicy.For.TV.2011.DVDRip.XviD-ViP3R Jeff Dunham - Achmed the Dead Terrorist Peter.Kay.Live.The.Tour.That.Didnt.Tour.DVDRip.XviD-HAGGiS |
|||
|
07-03-2012, 02:44 AM
|
|||
|
|||
RE: Using tvid="Play"
Quote:is it even possible to send a playlist to the player and tell it to start on item 3 I believe teh answer is no. yamj makes it's playlist files by starting at #3 and adding 1,2 to the end of the list. I know it's popular for tv show viewing and concert videos where you might want to start at a specific but still see them all. |
|||
|
07-03-2012, 10:08 AM
(This post was last modified: 07-03-2012 10:09 AM by Pernod.)
|
|||
|
|||
RE: Using tvid="Play"
(07-03-2012 02:26 AM)rolandhii Wrote: Are your files listed in the following order?Yes, listed alphabetically. (07-03-2012 02:44 AM)accident Wrote:The gaya browser is definitely capable as you can easily do this in file list mode, but I suspect not possible from a HTTP server.Quote:is it even possible to send a playlist to the player and tell it to start on item 3 SwissCenter Developer ![]() Players: Popcorn A-300 | Popcorn A-200 | Popcorn A-100 | Netgear EVA700 AV: Pioneer VSX-915 | Samsung LE40C650 |
|||
|
« Next Oldest | Next Newest »
|

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




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




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


