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: 1/29/2013 Plugin: Random Music Player 1.0   

Postby KAD » Fri Feb 22, 2013 8:43 am

I guess for now you'll have to use 1.02.21 if you want to use this plugin

normally Area 51 is available to donors or beta testers
but donations are currently on hold due to a paypal issue
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: 1/29/2013 Plugin: Random Music Player 1.0   

Postby sonic_blue » Fri Feb 22, 2013 11:32 am

KAD wrote:I guess for now you'll have to use 1.02.21 if you want to use this plugin


Yeah I tried, and it won't load (stuck on 0% progress bar) and if I try non-flash it freezes at splash screen. One time it did work non-flash but then some icons were missing and as i scrolled through the menu it crashed. Then I could never get it to work. 1.02 is useless anyway as anything pre 1.05 doesn't play some mp4 podcasts.

KAD wrote:normally Area 51 is available to donors or beta testers
but donations are currently on hold due to a paypal issue


Where do I go to grovel for this "dev" version of 1.05? I really need shuffle playback. Pretty please?? :oops:
sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Re: 1/29/2013 Plugin: Random Music Player 1.0   

Postby KAD » Fri Feb 22, 2013 1:15 pm

recliq mentioned he would talk with b-rad in general about donations

we'll have to wait and see if something comes of it

although it should be noted, in due time, usually anything first posted in Area 51
will eventually make it's way to public portion of forum

after all it's in Area 51 because it's a work in progress, i.e. unfinished work
example this particular root.bin
immediately has 2 issues that must be patched for it to work correctly

if you have not seen it yet, you might want to check this out http://forum.wdlxtv.com/viewtopic.php?f=40&t=6942
FileLoop.app.bin does not require any special firmware version
only downside is that you can only control it from the webend

this plugin post above, is actually just a modification of FileLoop.app.bin to provide start/stop options using the remote on screen
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: 1/29/2013 Plugin: Random Music Player 1.0   

Postby sonic_blue » Sat Mar 02, 2013 8:47 pm

-deleted-
Last edited by sonic_blue on Mon Mar 11, 2013 11:18 pm, edited 1 time in total.
sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Re: 1/29/2013 Plugin: Random Music Player 1.0   

Postby sonic_blue » Mon Mar 11, 2013 11:17 pm

Hi

I got the 1.05-dev[boot] firmware and loaded wdtvext on it, however I still can't get your plugin to work. I have the weather plugin loaded which proves that wdtvext is in fact working. I also got the "plugin reloader" plugin working, and when I select to reload Random Music Player it says successful reload. However, when i press FFWD or RWD on a folder from Local Drives, I get the red circle icon in the top right of the screen and nothing happens.

Also when I go into WEC I can't access addons manager or config, they produce the following error messages respectively:

Code: Select all
WDLXTV Addons Manager   Retrieving available apps...

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/addons/addonsmanager/index.php:454 Stack trace: #0 /var/www/addons/addonsmanager/index.php(454): SimpleXMLElement->__construct('<?xml version="...') #1 /var/www/addons/addonsmanager/index.php(977): wam_GetLocalAppList() #2 {main} thrown in /var/www/addons/addonsmanager/index.php on line 454


Code: Select all
WDLXTV Configuration   

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 4: parser error : Opening and ending tag mismatch: desc line 4 and dec in /var/www/addons/config/wdlxtv_options.php on line 1386

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: <desc>WDTVExt 1.05.04</dec> in /var/www/addons/config/wdlxtv_options.php on line 1386

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /var/www/addons/config/wdlxtv_options.php on line 1386

Warning: corrupted app.bin manifest detected.


Also in tmp/RandomMusicPlayerLoop.log :

Code: Select all
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found
sh: RandomMusicPlayerLoop: not found

^ I think each one of those entires corresponds to a time that I have pressed FFWD or RWD.

wdtvext.log:

Code: Select all
Start loading plugins... /tmp/wdtvext-plugins/
   from /tmp/wdtvext-plugins/
detected 3 plugins
End collecting plugins... took 1002ms
Start loading weather plugin
_trace_send: add message 0xb30528 (95,  0xb30538)TRACE: Couldn't connect
End loading weather plugin
RandomMusicPlayer: Start loading RandomMusicPlayer plugin
_trace_send: add message 0xb575d8 (95,  0xb2d480)TRACE: Couldn't connect
Lib: [executeCmd]
Lib: [executeCmd]  cmd: ln -s /tmp/wdtvext-plugins/RandomMusicPlayer/var/www/addons/config/plugins/RandomMusicPlayer_wec.php /tmp/config-plugins/RandomMusicPlayer_wec.php
Lib: [executeCmd]  completed.
Lib: [executeCmd]
Lib: [executeCmd]  cmd: ln -s /tmp/wdtvext-plugins/RandomMusicPlayer/bin/RandomMusicPlayerLoop /bin/RandomMusicPlayerLoop
Lib: [executeCmd]  completed.
RandomMusicPlayer: End loading RandomMusicPlayer plugin
ReloaderPlugin: Start loading Reloader plugin
_trace_send: add message 0xb58138 (95,  0xb58148)Plugin.Example:   base path is /tmp/wdtvext-plugins/Reloader/
ReloaderPlugin: End loading Reloader plugin
End loading plugins... took 1407ms
TRACE: Couldn't connect
executed script environment from /apps/WDTVExt/js/main.js
initialize_scripting end
scripting_setup end
remoteclient_setup start
remoteclient_setup end


Any ideas what's going on? It seems I'm very close to getting it to work but something seems misconfigured still.
sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Re: 1/29/2013 Plugin: Random Music Player 1.0   

Postby mad_ady » Tue Mar 12, 2013 2:51 am

Something looks off - can you check if you have a symlink to /bin/RandomMusicPlayerLoop?
Code: Select all
ls -l /bin/RandomMusicPlayerLoop
User avatar
mad_ady
Developer
 
Posts: 4561
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: 1/29/2013 Plugin: Random Music Player 1.0   

Postby KAD » Tue Mar 12, 2013 9:56 am

how did you end up with a file /tmp/RandomMusicPlayerLoop.log
what I posted does not output to any log file
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: 1/29/2013 Plugin: Random Music Player 1.0   

Postby KAD » Tue Mar 12, 2013 2:23 pm

also did you apply the patches so that 1.05-dev works correctly

FIXES/PATCHES:
Here I will post some bugfixes you may need to apply to get every plugin working as before...

FIX 1:
You may need to add the script oneDelaySelectionFix from 1.02 SVN for some plugins to work properly.
  • Download an install devtools.app.bin
  • Add oneDelaySelectionFix from 1.02 firmware:
    Code: Select all
    cd /usr/bin
    svn export https://svn.wdlxtv.com/svn/wdlxtv-live/trunk/usr/bin/oneDelaySelectionFix

FIX 2:
Fix WDTVExt tabs in WEC.
  • Download and extract the fixed files from here: fix_WDTVExt_WEC.tgz and extract the contents in /.
    Code: Select all
    cd /
    wget http://files.wdlxtv.de/fix_WDTVExt_WEC.tgz
    tar xvzf fix_WDTVExt_WEC.tgz


without the oneDelaySelectionFix
this plugin will definetely not work correctly
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: 1/29/2013 Plugin: Random Music Player 1.0   

Postby sonic_blue » Tue Mar 12, 2013 5:55 pm

mad_ady wrote:Something looks off - can you check if you have a symlink to /bin/RandomMusicPlayerLoop?
Code: Select all
ls -l /bin/RandomMusicPlayerLoop


Code: Select all
# ls -l /bin/RandomMusicPlayerLoop
lrwxrwxrwx 1 root root 64 Dec 31 16:01 /bin/RandomMusicPlayerLoop -> /tmp/wdtvext-plugins/RandomMusicPlayer/bin/RandomMusicPlayerLoop


KAD wrote:how did you end up with a file /tmp/RandomMusicPlayerLoop.log
what I posted does not output to any log file


On line 151 of RandomMusicPlayerPlugin.js:

Code: Select all
var Command = ("RandomMusicPlayerLoop \"" + MediaPath + "\" \"" + Types + "\" >> /tmp/RandomMusicPlayerLoop.log 2>&1 &");


KAD wrote:also did you apply the patches so that 1.05-dev works correctly

FIXES/PATCHES:
Here I will post some bugfixes you may need to apply to get every plugin working as before...

FIX 1:
You may need to add the script oneDelaySelectionFix from 1.02 SVN for some plugins to work properly.
  • Download an install devtools.app.bin
  • Add oneDelaySelectionFix from 1.02 firmware:
    Code: Select all
    cd /usr/bin
    svn export https://svn.wdlxtv.com/svn/wdlxtv-live/trunk/usr/bin/oneDelaySelectionFix

FIX 2:
Fix WDTVExt tabs in WEC.
  • Download and extract the fixed files from here: fix_WDTVExt_WEC.tgz and extract the contents in /.
    Code: Select all
    cd /
    wget http://files.wdlxtv.de/fix_WDTVExt_WEC.tgz
    tar xvzf fix_WDTVExt_WEC.tgz


without the oneDelaySelectionFix
this plugin will definetely not work correctly


Thanks, I just did all of that, however it still does not work (just shows a red circle icon when I press FFWD or REW and nothing happens).

Please keep in mind that I do not have access to the beta forum, so if there is anything else I need to do please let me know.

I still cannot access Addons Manager in the WEC due to the same error as before, but now under WDLXTV Config I have tabs for Random Music Player:

Image

Also it says under "apps" tab that WDTVExt is version 0.0, is this correct?
sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Re: 1/29/2013 Plugin: Random Music Player 1.0   

Postby KAD » Tue Mar 12, 2013 7:48 pm

On line 151 of RandomMusicPlayerPlugin.js:


had completely forgotten about that, lol

Please keep in mind that I do not have access to the beta forum, so if there is anything else I need to do please let me know.

that's why I posted those 2 fixes above, those are the only 2 patches currently listed in beta forum

I'm not sure what version wdlxtv should be, haven't had my device even plugged in since I put this out

a few other basics you could do

Code: Select all
tail -f /path/to/wdtvext.log

this log file was usually on the thumbdrive which has your .wdtvext-plugins folder
this will allow you to watch what wdtvext is doing as well as any enabled plugins

and you can also make sure the script RandomMusicPlayerLoop works by running it from cmd line
you can probably guess at the syntax
Code: Select all
RandomMusicPlayerLoop /Path/to/dir/ ".*\.(mp3|wma|mpa|m4a|mp4a|ogg|wav|aac|flac|aif|aiff|mka)"
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

PreviousNext

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 2 guests

cron