[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4326: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3501)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4328: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3501)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4329: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3501)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4330: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3501)
3/15/2013 Plugin: Random Music Player 1.1
Sign up here and you can log into the forum!

3/15/2013 Plugin: Random Music Player 1.1

The WDTVExt plugin depot. Plugins/libraries/code only

Re: 3/15/2013 Plugin: Random Music Player 1.1   

Postby sonic_blue » Sat Mar 16, 2013 12:13 am

ugh..I think I'd rather play music in the video player as the screensaver doesn't come on when the script is active. With the video player you get a blank screen (avoids image retention, and can Enter button to see what's playing if needed). Plus, you can use the back button to cycle to the next random track, eg. if you don't like the current track, and the Pause button works too.

Also I found that putting "sleep 5" before every "play" command in RandomMusicPlayerLoop seems to stop dmaosd from crashing.
sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Re: 3/15/2013 Plugin: Random Music Player 1.1   

Postby KAD » Sat Mar 16, 2013 7:51 am

to use the video player, you probably guessed, just edit upnp-meta and remove all those music codecs

sleep 5 , I'll need to test it, but sounds like a reasonable add
or if that is what is actually crashing dmaosd, it might be better just edit the loop so that it only initiates playback, once status has changed to stop
right now it will accept transition, either way just adds an extra moment of pause before next track is played

upnp-cmd seek
haven't played with these at all
but if they are working, in theory one could map all the keys needed via wdtvext

also on key press, does not accept key names, it accepts key numbers
to get the number look at dmaosd.log
it will show you the key number pressed

Regarding Play/Pause, I only briefly tested with music player, but thought play/pause was working
also Play/Pause is actually the same button on remote, so that might cause an issue
probably if it's not working, you will need to check the device status first
ie. press key, check status if status is play, send pause
if status is pause, send play
If you like my work please consider a Donation.
Please read the appropriate documentation before posting questions!
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: 3/15/2013 Plugin: Random Music Player 1.1   

Postby sonic_blue » Sat Mar 16, 2013 5:58 pm

sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Re: 3/15/2013 Plugin: Random Music Player 1.1   

Postby sonic_blue » Sat Mar 16, 2013 7:17 pm

Just a tip for anyone that might be reading this, if you can't get Random Music Player to work satisfactorily, you can also try firmware 1.03.49 as its shuffle is properly random in that version.

But, the downside is that it's not as compatible with as many file formats, so for example if it shuffles to some obscurely encoded .mp4a or .flac, then it can hang on the audio playback screen until you press a button.

Another con is that you can't just pick a folder and tell it to shuffle everything in that folder and its subfolders, as it only shuffles a list of files within one folder.
sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Re: 3/15/2013 Plugin: Random Music Player 1.1   

Postby KAD » Sat Mar 16, 2013 7:45 pm

If you like my work please consider a Donation.
Please read the appropriate documentation before posting questions!
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: 3/15/2013 Plugin: Random Music Player 1.1   

Postby sonic_blue » Mon Mar 18, 2013 1:05 am

Another problem I'm having is that the boot up time of 1.05dev from a USB drive is excrutiating -- around 2-3 minutes. I've tried disabling as many daemons, apps and processes as possible, but it doesn't seem to help.

Is it possible in theory to build a flash version of 1.05dev that supports wdtvext? Are there any tools I can use to convert the root.bin to a flashable .bin, .fff and .ver file?

Also I believe it would be possible to avoid the screen saver issue by slightly modifying your videoscreensaver app.

edit:
if anyone needs it is a link to the official 1.03.49-Live firmware, as it's a bit difficult to find. It's the last stable version of the official fw which has a truly random shuffle. If you want to shuffle an entire folder you just have to create a playlist (i used Oplisker) of everything in each folder, and play the playlist. I tried WDLXTV 1.03.49 but found that it won't go into true 0 watts standby mode (requires /proc/tangoxfrequency trickery and even still draws 2-3 watts in standby...unacceptable to me).

So, for the time being I'm using official 1.03.49, until such time that a flash build can be made of 1.05dev to avoid the horrendous boot times.
sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Re: 3/15/2013 Plugin: Random Music Player 1.1   

Postby mad_ady » Mon Mar 18, 2013 1:59 am

You're going to have issues converting the 1.05-dev root.bin to a flashable firmware - mostly because it will generate a firmware too big to flash (>91MB). The plus variant of 1.05 has an extra file (.bi2) that has most of the extra stuff (the web server, ftp, etc) and this file is flashed in a different part of the system. The live 1.05 variant firmware was still a hair under the 91MB limit, so it hasn't been converted to bi2 format.

Adding wdlxtv will probably push the firmware over the top and somebody will need to do the conversion to bi2.

It is doable, but it involves doing some system integration, copying some startup code from the plus branch and doing some testing. There is a small chance of bricking (so you'd better have a serial cable ready).

I'm not sure if the wdtvext has any restrictions running from flashed source (it was still under development when pibos went dark again), but apart from the location of the log file, I doubt it would pose any problem...

The general plan (almost a year ago) was to transform the live firmware to bi2 format and add wdtvext support, but b-rad and recliq have been caught in other projects and this project remained dormant.

I can't find right now the structure of the firmware file on the forum, but you can start reading here: http://geraldnaveen.blogspot.ro/2012/11/wdtv-live-firmware-hacking-series-part-1.html
User avatar
mad_ady
Developer
 
Posts: 4575
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: 3/15/2013 Plugin: Random Music Player 1.1   

Postby KAD » Mon Mar 18, 2013 7:38 am

If you like my work please consider a Donation.
Please read the appropriate documentation before posting questions!
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: 3/15/2013 Plugin: Random Music Player 1.1   

Postby sonic_blue » Mon Mar 18, 2013 7:48 pm

sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Re: 3/15/2013 Plugin: Random Music Player 1.1   

Postby KAD » Mon Mar 18, 2013 9:33 pm

videoscreensaver.app.bin also has wdtvext plugin version
and an app.bin is just an cramfs or ext3 image with a specific layout of meta files
and does not use wdtvext

however either version of videoscreensaver, I doubt will work at the same time as RandomMusicPlayer
because they are nearly identical in how they start playback
it's still upnp-cmd ....

and once one is started, starting another will probably crash dmaosd
well that's what I've seen in testing

the only person that has claimed that what your asking regarding screensaver and music can be done
posted this youtube video as example http://www.youtube.com/watch?v=YHMMhGNNjeg

but never shared how it was done, in fact recliq even created a wiki page for him to fill in http://wiki.wdlxtv.com/WDTVExt_Create_Custom_Screensaver
but 6 months later still blank

I supose the other way to do it
would be completely forget the normal screensaver and write your own screensaver using wdtvext
but I think that would be a very messy solution
If you like my work please consider a Donation.
Please read the appropriate documentation before posting questions!
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

PreviousNext

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 1 guest