Sign up here and you can log into the forum!

WebControl to browse/play music/movies for WDLXTV-Live?

Feature requests / enhancements discussion regarding the web interface

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby jpro1001 » Wed Feb 29, 2012 2:31 pm

Have you used fastforward or rewind + next track? Those are different commands than seek right? Do you know their proper syntax off hand? That would work too. My goal is to jump ~10 mins ahead/behind etc...
jpro1001
WDTVer
 
Posts: 49
Joined: Mon May 23, 2011 1:54 pm

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby jpro1001 » Wed Feb 29, 2012 3:03 pm

KAD wrote:just a guess, while meta data is discussed in thread above

I'm not sure that it's been implemented yet

and without metadata the seek cmd possibly would not work

again just a guess, I've never had to use the upnp-cmd Seek

KAD



Passed meta data and it worked! I passed it for the play, but never tried passing it before the seek too.. I don't understand how the metadata comes into play at all, but its working! Thank You!
jpro1001
WDTVer
 
Posts: 49
Joined: Mon May 23, 2011 1:54 pm

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby KAD » Wed Feb 29, 2012 3:16 pm

I'll I've really done is attempt playback

which has been successful with both using upnp-cmd Play or by calling the Play script

I can't remember which buttons I've particularly tried

but I did notice that when no meta data is used very few keys work, in fact pushing almost any key without metadata will stop playback

when proper meta data is used there's a number of keys that begin to work again, but still not all

at any rate I'm glad you got it working with seek, also might be a good idea to post the cmd's you used so that other can reference what you did

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby jpro1001 » Wed Feb 29, 2012 3:25 pm

Scenario:
When running play.php which just passes the metadata and the play command. I wasn't able to use the physical remote to do the 10 minute skips anymore.
So now (since i'm using phones/tablets) when a user runs play.php they can then pass a seek time to skip 10 mins or 100 etc..
the pseudo syntax is similar to the play.php:

metaresult = upnp-meta 'filename.avi'
upnp-cmd SetAVTransportURI 'file://filename.avi' 'metaresult'
upnp-cmd Seek 'REL_TIME' 00:10:00
jpro1001
WDTVer
 
Posts: 49
Joined: Mon May 23, 2011 1:54 pm

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby KAD » Wed Feb 29, 2012 3:33 pm

didn't know there was a Play.php

I was referring to /usr/bin/play (Bash script included with firmware)

but again, glad it works

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby jpro1001 » Wed Feb 29, 2012 3:39 pm

oh, one of the guys in this thread made it. it's part of the music navigator web app. strange i don't have a /usr/bin/play script... i'm running wdlxtv: 0.4.7.3 and base: 1.03.49. maybe that's why? is that play different than upnp-cmd Play? would you mine pasting a snippet?
jpro1001
WDTVer
 
Posts: 49
Joined: Mon May 23, 2011 1:54 pm

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby KAD » Wed Feb 29, 2012 4:11 pm

you don't have that script because you're on an older firmware

here's the svn page
https://svn.wdlxtv.com/filedetails.php?repname=1.05.04-wdlxtv&path=%2Flive%2Ftrunk%2Fusr%2Fbin%2Fplay

very simple script, all it does is sent the 3 upnp-cmd's needed to generate meta and then start playback

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby KAD » Wed Feb 29, 2012 9:51 pm

tried something tonight

if proper meta data is used when setting transport URI

then FF and REW buttons on remote work

KAD
If you like my work please consider a Donation. Donate
Please read the appropriate documentation before posting questions! READ ME FAQ WIKI
PM's are for private matters. Post support questions to the appropriate forum, or they will be ignored.
User avatar
KAD
Global Moderator
 
Posts: 5103
Joined: Mon Apr 12, 2010 4:59 pm
Location: Seattle, WA USA

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby mad_ady » Wed Feb 29, 2012 11:28 pm

@KAD: Does the play script add the correct metadata (or some fake but complete metadata)? If not, this should be considered a bug and /usr/bin/play should be enhanced to generate fake metadata to allow further navigation...
User avatar
mad_ady
Developer
 
Posts: 4522
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: WebControl to browse/play music/movies for WDLXTV-Live?   

Postby recliq » Thu Mar 01, 2012 12:26 am

The play script should generate valid meta info based on the given file. In fact it just calls upnp-meta, then sets TransportURI and then starts playback.
upnp-meta: https://svn.wdlxtv.com/filedetails.php?repname=1.05.04-wdlxtv&path=%2Flive%2Ftrunk%2Fusr%2Fbin%2Fupnp-meta
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

PreviousNext

Return to Webend Web Interface

Who is online

Users browsing this forum: No registered users and 2 guests

cron