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

3/15/2013 Plugin: Random Music Player 1.1   

Postby KAD » Tue Jan 29, 2013 9:34 am

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
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 » Wed Feb 20, 2013 10:43 pm

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.
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 » Thu Feb 21, 2013 12:26 am

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.
User avatar
mad_ady
Developer
 
Posts: 4522
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

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

Postby sonic_blue » Thu Feb 21, 2013 1:31 am

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
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 » Thu Feb 21, 2013 1:44 am

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
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 » Thu Feb 21, 2013 1:55 am

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
User avatar
mad_ady
Developer
 
Posts: 4522
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

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

Postby sonic_blue » Thu Feb 21, 2013 3:16 am

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?
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 recliq » Thu Feb 21, 2013 3:25 am

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
­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

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

Postby KAD » Thu Feb 21, 2013 9:12 am

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
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 » Thu Feb 21, 2013 9:30 pm

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
sonic_blue
DLX'er
 
Posts: 53
Joined: Wed Feb 20, 2013 8:31 am

Next

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 1 guest