Page 1 of 9

3/15/2013 Plugin: Random Music Player 1.1

PostPosted: Tue Jan 29, 2013 9:34 am
by KAD
So We've known for some time that WD's Random Playback function is anything but Random

So here's my own solution :mrgreen:

General Info
This Plugin Randomly Plays Music or Video Files from Selected Folder

Default Operation
Plugin is only Function in Music -> Local Drives
If Video Playback is desired, you must set the option in WEC

RWD - Begins Random Playback
------ If Folder is Selected = Randomly Plays files from that folder and sub-folders
------ If File is selected = Randomly Plays files from that folder and sub-folders

FFWD - Begins Random Playback
------ If Folder is Selected = Randomly Plays files beginning 1 Directory up and including all sub-folders
------ If File is selected = Randomly Plays files from that folder and sub-folders

Stop - Stops Random Playback

ChangeLog
3/25/2013 version 1.1
- change log file to this.rootPath
- add killalll RandomMusicPlayerLoop to audio_ex_playing.xml
- add debug config to wec

1/29/2013 version 1.0
- Initial Release

Download
use WDTVext menu on screen to download

Supported Devices
WDTV Live

Requirements
firmware version - 1.02.21_WDLXTV.COM_WDLXTV_LIVE-0.5.1.1 or 1.05.04-dev
WDTVext must be Enabled

Installation
unzip archive
place contents inside .wdtvext-plugins
reboot
enable via Plugins Reloader on screen

Optional
enable Random Video (WEC WDTVEXT Plugins tab)
enable Change Playback buttons (WEC WDTVEXT Plugins tab)


enjoy
feedback welcome

KAD

ps. Video Playback function is untested, put it in just for kicks
this was made with Music Playback in mind

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

PostPosted: Wed Feb 20, 2013 10:43 pm
by sonic_blue
Hi

Thanks for making this plugin as it is a much needed feature, however I need it to work with 1.05.04 because previous versions of the firmware cannot play some of my mp4 podcast files.

But I notice you say that it will work with 1.05.04-dev. What is the "dev" version of it and how can I install it?

I have tried loading the latest wdtvext.bin.app on 1.05.04 but of course it doesn't work (hangs on boot and both front lights flash).

Any help appreciated.

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

PostPosted: Thu Feb 21, 2013 12:26 am
by mad_ady
A root.bin for it can be found somewhere in this thread:
http://forum.wdlxtv.com/viewtopic.php?f=46&t=6800&start=0
It's safe to try, but it only exists as a root.bin for now.

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

PostPosted: Thu Feb 21, 2013 1:31 am
by sonic_blue
Ok, I managed to get 1.05.04_EXT3_[non-flash] running with recliq's patched version of wdtvext.app.bin. I created folder "wdext-plugins" in the root and put RandomMusicPlayer in there.

So the instructions say to "enable via Plugins Reloader on screen". Except I can't see it anywhere on screen, and when I log into WEC Addons Manager I get this error:

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

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

PostPosted: Thu Feb 21, 2013 1:44 am
by sonic_blue
I swapped recliq's patched wdtvext.app.bin for pibo's one, and now wdtvext is showing up under WEC-addons manager-apps, and the "enabled" checkbox is ticked.

I have put RandomMusicPlayer into two folders in the root of the USB drive: "plugins", and "wdtvext-plugins".

I still have no idea what to do next. How do I "enable via Plugins Reloader on screen"?

Thanks

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

PostPosted: Thu Feb 21, 2013 1:55 am
by mad_ady
Is your wdtv connected to the internet? That exception might be due to it trying to connect to the plugin repository server.

You should be able to activate (and probably use) the plugin from OSD -> WDTVExt Plugins

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

PostPosted: Thu Feb 21, 2013 3:16 am
by sonic_blue
Bah, I can't get any of it to work. Tried flashing 1.02.21, gets stuck at 0% installing. Tried non-flashing 1.02.21, freezes on splash screen.

Is it possible in theory to make an app.bin that will run on 1.05.04 that just creates a thread that keeps randomly changing whatever variable wdtv is using to generate the shuffle playlist from?

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

PostPosted: Thu Feb 21, 2013 3:25 am
by recliq
I have put RandomMusicPlayer into two folders in the root of the USB drive: "plugins", and "wdtvext-plugins".

Both dirs are wrong! It must be named
Code: Select all
.wdtvext-plugins

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

PostPosted: Thu Feb 21, 2013 9:12 am
by KAD
if you want 1.05.04-dev you must get it here http://forum.wdlxtv.com/viewtopic.php?f=51&t=6848
don't use the one from pibos ext thread

and recliq is also correct regarding the name of the folder, if it's not correct, it will not work

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

PostPosted: Thu Feb 21, 2013 9:30 pm
by sonic_blue
recliq wrote:
I have put RandomMusicPlayer into two folders in the root of the USB drive: "plugins", and "wdtvext-plugins".

Both dirs are wrong! It must be named
Code: Select all
.wdtvext-plugins


Yeah I figured that one shortly after (windows doesn't let you name a folder with a .) Still doesn't work :/ I could get the weather plugin to work though, but still at the WEC there is no "wdtvext plugins" tab, so there is something wrong with it. Plus the UI freezes and hangs for up to 10 seconds at a time.

KAD wrote:if you want 1.05.04-dev you must get it here http://forum.wdlxtv.com/viewtopic.php?f=51&t=6848
don't use the one from pibos ext thread


Code: Select all
Information

You are not authorised to read this forum.


How do I access it?

Thanks