Mede8er Forum

Mede8er Community => Mede8er Community Tools => Under development => Topic started by: jer1956 on October 28, 2013, 06:00:05 pm

Title: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: jer1956 on October 28, 2013, 06:00:05 pm
(posted by Jer1956 on behalf of Neo_2011)


I've completed a beta version of my Mede8er JukeBox Desktop Player.
Basically, its a Desktop client that can be used as Music player (like Foobar 2000, JRiver, etc), to enable to use the Mede8er as a music player without the need to have the TV on.

Although its still incomplete, and has to be polished, its already totally functional.
So far its has been used with success by 3 people.

In this version, although 100% functional, the major drawbacks are the inability to provide an adequate feedback.
As i'm developing the application on my free time, the improvements will be consistent, but slow.
My purpose is correct all the major bugs, and as time permits, to add feedback capabilities.

The application has two layers :
- A service developed with spring framework + Guice
- A JavaFx 2.2 client.

While the service will be proprietary, if there is any interest, i can share the JavaFx client source code, maybe some expert in JavaFx would like to improve it.
My JavaFx skills are pretty basic, so someone more skilled would easily be able to do a better job than i did.

The application just needs a proper MusicJukebox to be created, and in the first run, the user just needs to insert the Mede8er IP.
The application proceeds getting the information from mede8er, and creates a local database for normal use.
I have approximately 100 albuns, and it takes aprox. 1m to get all the information, and the local database created has 2MB .
I dont know how long it will take with a larger Music database ...

You can see a video from an earlier version here : http://www.youtube.com/watch?v=xCcArdNZVLc
Please skip the scan process time, the 00:02 to 1:15m.

I would like to share the application to the community, but it still has to be properly tested. Although it worked very well for me and two more users, i know it still has several bugs, i don't know how it will perform with large databases, etc-.

As i've said, the application is still very basic, and the major handicap is the lack of feedback.
I'm also a little "afraid" of how will the application respond with very large databases, several jukeboxes, etc.

Nevertheless, if the testers understand that this is still in a very beta phase, and they will probably found many bugs, i'm more than happy to proceed with the creation of a Beta test group.
There are a few requirements in order to use the application with full success:

1 - There has to be a functional Jukebox
2 - The images covers, need to be named "folder.jpg", and should have 230x230px.
3 - The computer resolution should be greater than 1024x768.

Application download

64 Bits : https://meocloud.pt/link/96e49503-51c0-4982-a935-2ad90e2cbe34/Mede8erMusicPlayer.zip
32 Bits : https://meocloud.pt/link/e840d7ec-09b7-4da2-9c90-7c3ed6956817/Mede8erMusicPlayer-32-Bits.zip

Temporary 800x600 version - 64 bits
- https://meocloud.pt/link/a8c24808-82b7-4453-872c-3b0162c341d3/Mede8erMusicPlayer_800_600.zip

If someone encounters this error : The program cant start because MSVCR100.dll is missing from your computer. the resolution is to install the specific Microsoft C++ dll's, available in:

Microsoft Visual C++ Redistributable - x86 or x64 edition
32 bit: http://www.microsoft.com/download/en/details.aspx?id=5555
64 bit: http://www.microsoft.com/download/en/details.aspx?id=14632

From now, the installation is manual, just unzip the file, and execute the Mede8erMusicPlayer.exe
(In future versions, it will have a normal installation wizard).
After the application launches, it only requires the introduction of Mede8er IP, and it will start the scan process.
I really don't know how would it take to scan a large database. In my tests with 100 folders, it took aprox 1.15m ...


The application has the logs printing all the debug info, to log/mede8er.log
If someone encounters any bug, please send me the log file to ar160212@gmail.com

As i've said, if the testers understand that this is still in a very beta phase, and that they will probably found many bugs, i'm more than happy to correct them as soon as i can, in order to provide a stable version for anyone to use.
Finally, yes, the application could be named 'JukeBox Desktop Player' Smiley



Best regards,
Neo_2011


Can  those interested in testing please post their findings as replies to  this post.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on October 29, 2013, 04:24:39 pm
yesterday i tried the app din't get it to work. (wrong ip input)
today wanted it to try again with the correct ip, but app won't start up !?

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mede8er1 on October 29, 2013, 04:42:59 pm
App starts my side and I entered X3D IP but I did not see any progress even after some time. I tested on Win7 PC and the Music JukeBox has about 5k tracks.
 
Mede8er1
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 29, 2013, 04:57:36 pm
yesterday i tried the app din't get it to work. (wrong ip input)
today wanted it to try again with the correct ip, but app won't start up !?
mike42

Hello Mike.

In the config folder, there is a Configuration.xml file that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
 <config>
   <hostname>IP_VALUE</hostname>
   <port>1187</port>

Please change the IP_VALUE to the correct IP.

If the config folder contains a Mede8erDB.xml file, please remove it and start the Application.

Can you please send me the log/mede8er.log file, to analyze the error?

Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 29, 2013, 04:58:12 pm
App starts my side and I entered X3D IP but I did not see any progress even after some time. I tested on Win7 PC and the Music JukeBox has about 5k tracks.
 
Mede8er1

Can you please send me the log file to analyse?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mede8er1 on October 29, 2013, 05:28:15 pm
Its basically empty and only logs the power button when I tried to close the App after no activity

2013-10-29 19:26:07,261 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [rc power].
2013-10-29 19:26:08,352 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [rc power].
2013-10-29 19:26:14,172 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [rc power].


Mede8er1
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 29, 2013, 05:31:48 pm
It's very strange, the application should log everything ...
Can you post your Configuration.xml file ?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mede8er1 on October 29, 2013, 05:36:23 pm
<config>
 <hostname/>
 <port>1187</port>
 <reload>false</reload>
 <config-folder-path/>
 </config>


Mede8er1
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 29, 2013, 05:39:57 pm
Was the IP correctly saved, or you removed it?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on October 29, 2013, 05:55:33 pm
my config file containes:

<?xml version="1.0" encoding="UTF-8"?>
<config><hostname>192.168.178.15</hostname><port>1187</port><reload>false</reload><config-folder-path>C:\mede8er\Mede8erMusicPlayer-32-Bits\app\config\</config-folder-path></config>

This is the correct IP

the log file:
I would like to send the log file however it's kinda big (24 + MB) . i see it the app started with scanning
the music on my mede8er. when i came back from diner the mede8er was off.. i don't know my son switched it off
or it crashed due to the scanning of my pretty large music collection (35000+)
I'll keep on testing......

when i start the task manager i can see that the app is doing something, probaply scanning of the music collection
yep is scanning log file stil growing now over 26MB

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mede8er1 on October 29, 2013, 06:04:41 pm
That is all that is in the xml file

Mede8er1
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 29, 2013, 06:14:00 pm
the log file: ...
 i don't know my son switched it off or it crashed due to the scanning of my pretty large music collection (35000+)
I'll keep on testing...... when i start the task manager i can see that the app is doing something, probaply scanning of the music collection yep is scanning log file stil growing now over 26MB

Mike,
thank you very much for your feedback.

As i've said, the application was only tested with small music databases (80 albums,  aprox 300 songs).
I don't know how it will perform when scanning large databases.

Please let the scan process finish (or until the application crashes).
If its indeed a crash motivated by the large amount of memory necessary to store a local cache of the Mede8er information, i will have to figure a way to perform the scan by range, or something like that :(

If the application crashes, please send me the last lines of the log file.
The log file is printing everything, that's the reason its so big :)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 29, 2013, 06:17:30 pm
<config> <hostname/>  <port>1187</port>  <reload>false</reload>  <config-folder-path/>  </config>

That explains the empty log file.

Could you please change it to :
<config><hostname>X3D IP</hostname><port>1187</port><reload>false</reload><config-folder-path></config-folder-path></config>

and insert your X3D IP manually and start the application?

It should start the scan process, although its possible you should experience the same problems as Mike42, due to you large database.

thank you very much for your feedback.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on October 29, 2013, 06:33:14 pm
for the final version, think of adding an progress bar. now you can't see: If the app is started or what it's doing (for later worry's)

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 29, 2013, 06:42:46 pm
for the final version, think of adding an progress bar. now you can't see: If the app is started or what it's doing (for later worry's)
mike42

Yes, i intend to add a progress bar in the Scan process, a slider/scroll bar to show the music progression time, and work on the design, as its has a very square look  :)

But my main purpose for the moment is to correct the problems with the scan process, and guarantee it works with large databases. I will probably need to create a very large database with dummy files to simulate the process on my side ...
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on October 29, 2013, 07:41:09 pm
Send the last lines of the logfile through the e-mail. Stil app not working gives an error
that it can't get information from the mede8er. (detials in the mail)

mede8er not crashed scanning log seems ok scanned until zz-top


Mike42 8)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mede8er1 on October 29, 2013, 08:16:49 pm
I tried to edit the xml but now when launching the App  get a JavaFX Launcher Error

Log attached

Mede8er1
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 29, 2013, 08:25:10 pm
Send the last lines of the logfile through the e-mail. Stil app not working gives an error
that it can't get information from the mede8er.

Hello Mike.

Looking to the logs, it seems that the application managed to scan Jukeboxes 1 to 4, and when it tried to scan Jukebox 5, it received an error from mede8er and crashed:

------------------------------------------------------------------------------------
2013-10-29 20:00:33,578 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [jukebox close 4].
2013-10-29 20:00:34,750 DEBUG p.t.m.s.i.JukeboxService Mede8er Command Response => [ok].
2013-10-29 20:00:34,781 DEBUG p.t.m.s.i.Mede8erService Before opening [5].
2013-10-29 20:00:34,788 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [jukebox open 5 ].
pt.tss.mede8er.service.api.exceptions.TcpConnectionException: java.lang.Exception: Error getting information from Mede8er.
 at pt.tss.mede8er.service.impl.tcp.TCPClient.send(Unknown Source) ~[mede8er-remote-service-impl-1.0.jar:na]
------------------------------------------------------------------------------------


I will have to protect the application from this situations, as in a case like this, the application should show the information regarding the Jukeboxes 1 to 4 ( I don't know why it couldn't open Jukebox 5).

As soon as i correct this error, i will update the links with the new application.

Thank you very much for the logs.

Best regards :)

Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 29, 2013, 08:31:33 pm
I tried to edit the xml but now when launching the App  get a JavaFX Launcher Error
Log attached
Mede8er1

Mede8er1,

looking to your logs, it seems that the application was installed on :
C:\Downloads\Mede8erMusicPlayer\Mede8erMusicPlayer\app\config\Configuration.xml

---------------------------------------------------------------------------------------------------------------------------------
2013-10-29 22:10:42,421 ERROR p.t.m.s.i.u.XmlUtils Error on marshalMusicJukebox.
java.io.FileNotFoundException: C:\Downloads\Mede8erMusicPlayer\Mede8erMusicPlayer\app\config\Configuration.xml (The system cannot find the file specified)
---------------------------------------------------------------------------------------------------------------------------------

I think it could be a permission issue ?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on October 30, 2013, 06:56:23 am
Hello Mike.

Looking to the logs, it seems that the application managed to scan Jukeboxes 1 to 4, and when it tried to scan Jukebox 5, it received an error from mede8er and crashed:

------------------------------------------------------------------------------------
2013-10-29 20:00:33,578 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [jukebox close 4].
2013-10-29 20:00:34,750 DEBUG p.t.m.s.i.JukeboxService Mede8er Command Response => [ok].
2013-10-29 20:00:34,781 DEBUG p.t.m.s.i.Mede8erService Before opening [5].
2013-10-29 20:00:34,788 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [jukebox open 5 ].
pt.tss.mede8er.service.api.exceptions.TcpConnectionException: java.lang.Exception: Error getting information from Mede8er.
 at pt.tss.mede8er.service.impl.tcp.TCPClient.send(Unknown Source) ~[mede8er-remote-service-impl-1.0.jar:na]
------------------------------------------------------------------------------------


I will have to protect the application from this situations, as in a case like this, the application should show the information regarding the Jukeboxes 1 to 4 ( I don't know why it couldn't open Jukebox 5).

As soon as i correct this error, i will update the links with the new application.

Thank you very much for the logs.

Best regards :)



It coyld be an error from my side. I'm lately reoganizng the folder structure of my music
Collection. I'm not sure if all folders are up to date regarding mede8er jukebox spec's.
Will check layer this day and report


Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 30, 2013, 09:58:11 am
It coyld be an error from my side. I'm lately reoganizng the folder structure of my music ...

Even so, the application should be protected against this situation.

I'm in the process of re-structuring the interface, adding new functionalities, etc, but i will only have the time to properly test it in the weekend. Because of this, i cant launch a new version with the bug you detected corrected.

Would you mind to try a temporary solution?

- Could you please download the service implementation file, unzip it, and replace it in the directory : app/lib

I've added an extra protection, so even if it receives an error scanning Jukebox 5, it should show the information of the correctly scanned jukeboxes 1 to 4.

Thanks :)

Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 30, 2013, 10:46:11 pm
As i've feared, the scan process might have problems with very large jukeboxes.
With my Jukebox (maybe 300-500 files), the application works very well.

As i will only have time to properly test the scan process in the weekend, i've been working in the GUI, and added the folowing functionalities:
- Slider with current time progress;
- Ability to play folder and identify the individual songs;
- Cosmetic changes.

You can see the improved version here :  http://youtu.be/gxguqxqdK5o
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on October 31, 2013, 03:06:04 pm
You can see the improved version here :  http://youtu.be/gxguqxqdK5o

Looks already very nice.  ;D As said will give it a go with an smaller DB

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: jer1956 on October 31, 2013, 03:11:33 pm
I can see Maasbommel asking for a touch screen  version to run on his win8 Hp Envy.   
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 31, 2013, 04:15:04 pm
I can see Maasbommel asking for a touch screen  version to run on his win8 Hp Envy.   
Its a very good idea. The problem is that i'm really a newbie in JavaFX, but even so, i don't think it would be to difficult to adapt the application to be able to recognize Touch events.
The oracle documentation shows how to do it here: http://docs.oracle.com/javafx/2/events/touch_events.htm

There could be a faster way to improve the GUI: as soon as the major bugs are corrected and the application is stable, i can share the GUI source code.
If there is someone with experience in JavaFx, he/she could improve the GUI to a new level that my experience so far doesnt allow :)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 31, 2013, 06:56:02 pm
Mede8er1 has inform me about the files in the FTP site, so I've accessed it, and downloaded the folders :
- Mede8er_Music_JukeBox_5k_Track_Test_10sec
- Music 20k Tracks Demo

Very cool, now i will have a validated base to test the application, it will save me countless hours ....
 
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on November 01, 2013, 11:14:43 pm
I think i'm getting there :)
I've managed to successfully scan the whole 20k music jukebox, although it took aprox. 40m ...

As its impossible to have 1592 albums at once in memory, i'm implementing a "paging" system, that loads 50 albums per "page".

A preview :)

(http://imageshack.us/scaled/medium/30/t870.jpg) (http://imageshack.us/photo/my-images/30/t870.jpg/)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on November 03, 2013, 04:01:15 pm
The scanning process is completed, the paging system is completed, but now i'm facing a new problem:
- As the command process is synchronous, there is a 9s hang between the Play command and showing the status on the Slider, as can be seen on the log:

-------------------------------------------------------------------------------------
2013-11-03 13:43:35,579 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [jukebox query entry].
2013-11-03 13:43:37,648 DEBUG p.t.m.s.i.JukeboxService Mede8er Command Response => [jukebox/entry.json].
2013-11-03 13:43:37,651 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [jukebox open 0 ].
2013-11-03 13:43:40,202 DEBUG p.t.m.s.i.JukeboxService Mede8er Command Response => [jukebox/0.json].
2013-11-03 13:43:40,203 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [play <file>/var/www/jukebox/0//Adele_21/10_Lovesong.flac</file>].
2013-11-03 13:43:42,249 DEBUG p.t.m.s.i.JukeboxService Mede8er Command Response => [ok].
2013-11-03 13:43:42,250 DEBUG p.t.m.s.i.JukeboxService Sending Mede8er Command  [status musictime].
22013-11-03 13:43:44,292 DEBUG p.t.m.s.i.JukeboxService Mede8er Command Response => [1/316].
2013-11-03 13:43:46,474 DEBUG p.t.m.s.i.t.ExecuteCommandThread Executed Command [jukebox close 0], response = [ok].
------------------------------------------------------------------------------------------------------------------------

To correct this, i will have to re-define the command process, probably making it asynchronous.
Unfortunately, due to the lack of time, it will probably take me at least a week to complete this re-design :(
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on November 05, 2013, 12:23:36 pm
I've decided to do a complete re-design of the application in order to make it  completely asynchronous (and allow the service to be used in a possible future Android application :))

Unfortunately, to be able to do a good work, it will take at least 1-3 weeks, depending on the amount of spare time extra-work.

So, if i don't post new versions in the next days, is just because i'm re-designing the application. And this time, i will only make it available after properly testing it (which this time will be easier due to the 20k and 5k jukeboxes :))

Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on November 05, 2013, 06:43:11 pm
I've decided to do a complete re-design of the application in order to make it  completely asynchronous (and allow the service to be used in a possible future Android application :))

Unfortunately, to be able to do a good work, it will take at least 1-3 weeks, depending on the amount of spare time extra-work.

So, if i don't post new versions in the next days, is just because i'm re-designing the application. And this time, i will only make it available after properly testing it (which this time will be easier due to the 20k and 5k jukeboxes :))



oke, can't wait tot test it  ;D
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on November 05, 2013, 07:27:47 pm
oke, can't wait tot test it  ;D

Cool!
I can guarantee it will be worth :)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on November 10, 2013, 04:54:57 pm
I've re-designed the application, and it's now completely asynchronous.
I'll need one more week to fully test it, but i think next week it will be completed.

I've also perform some cosmetic changes, hope you like it :)

Preview

(http://imageshack.us/scaled/medium/801/0oz8.jpg) (http://imageshack.us/photo/my-images/801/0oz8.jpg/)
Title: Re: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Maasbommel on November 10, 2013, 06:56:01 pm
Nice!
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on November 10, 2013, 08:05:28 pm
I've re-designed the application, and it's now completely asynchronous.
I'll need one more week to fully test it, but i think next week it will be completed.

I've also perform some cosmetic changes, hope you like it :)

Preview

(http://imageshack.us/scaled/medium/801/0oz8.jpg) (http://imageshack.us/photo/my-images/801/0oz8.jpg/)

Great news, and so quick...

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on November 17, 2013, 06:37:57 pm
The application is almost completed, and everything is working very well.
Nevertheless, i will need one more weekend to perform more tests, i dont want to launch a version with several bugs as last time :(

I also want to implement a State-Machine to guarantee that all the transitions are valid (like you can only press STOP if you are in a playing state, etc ...)

But to summarize,  next week i will probably be able to provide a full working version !!!

After this project is completed and stable, i may proceed to an Android version :)
Title: Re: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Maasbommel on November 17, 2013, 07:11:52 pm
Great! Will try it on my HP envy X2 when you are ready.

Sent from my GT-I9505 using Tapatalk
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on November 24, 2013, 10:14:29 pm
Due to personal constraints, i couldn't complete the application this weekend, it will have to be postponed to the next one:(
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on November 30, 2013, 08:26:07 pm
The Mede8er Jukebox Desktop Player (64bits) is available for download here : https://meocloud.pt/link/b14bb528-428b-48a8-a2c2-717039ff5ecc/Mede8erMusicPlayer.zip

I've removed the Play Folder/Music concepts, now the user just select one music and the player starts that the album playing from that music.

I've tested in both Music Database samples 20K/5K samples and everything went OK.
For the 20K sample, the scan process took 40m.

Please let me know if you discover any problems with the application.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Maasbommel on November 30, 2013, 09:28:00 pm
Hi Neo,

Will you also release a 32bit version of this latest one?

Best regards,
Maasbommel
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on November 30, 2013, 10:35:04 pm
32 Bits : https://meocloud.pt/link/09006567-7cec-4f52-8ccb-02d32c5e55b4/Mede8erMusicPlayer%20-%2032Bits.zip
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 01, 2013, 09:47:51 am
32 Bits : https://meocloud.pt/link/09006567-7cec-4f52-8ccb-02d32c5e55b4/Mede8erMusicPlayer%20-%2032Bits.zip

at first got an connection to mede8er error. after restart of the app (wit same IP). the scanning started

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Maasbommel on December 01, 2013, 10:45:01 am
Somehow it keeps stuck on scanning on my side.
Will try to use another smaller music dbase later to see if that gives a difference.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 01, 2013, 11:23:58 am
Quote from: Maasbommel link=topic=12646.msg85214#msg8Mike4ee date=1385894701
Somehow it keeps stuck on scanning on my side.
Will try to use another smaller music dbase later to see if that gives a difference.

You could chexk the log file. If it,s still adding the file size will increase. My side
Scanning busy for about 2hrs now. But log is growing

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 11:34:01 am
You could chexk the log file. If it,s still adding the file size will increase. My side
Scanning busy for about 2hrs now. But log is growing

Mike, did the scan process finished with success?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 01, 2013, 12:23:04 pm
Mike, did the scan process finished with success?

yep scan finished with succes... However app. is only showing my DTS collection folder ! (all WAV files)
checked the log file.... seems all music including MP3's are scanned but can't get them to show

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 12:26:32 pm
Can you please send me the log file?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 01, 2013, 12:36:02 pm
Can you please send me the log file?

don't have your e-mail and can't post it here because the file is 10+ Mb

Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 12:41:53 pm
Can you please zip it and send to : ar160212@gmail.com  ?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 12:58:37 pm
Mike, thanks for the log file.

I can see that the jukeboxes were correctly scanned.
The errors getting the images are due to the special characters on the name file, i still haven't figure how to overcome that error.

I suspect that the reason you are only seeing the WAV files is due to the fact that it was the last scanned jukebox.
I think i've only tested one jukebox at a time. I forgot to test several jukeboxes :(

This afternoon i will create several jukeboxes and perform the scan process.

Regarding the wav jukebox, did you try to play files, perform searches, etc?
Everything went ok ? Any errors ?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 01, 2013, 01:24:00 pm
did some more testing such as playback etc....

Power off --> ok
play --> ok
skip Fw --> ok
skip bw --> ok
stop  --> ok
volume up/dwn --> ok

However encountered some issues:

- ive got an large delay (lag) when skipping fw or bw about +25 sec
- volume up/dwn responding (almost) instantly  1-2 sec lag
- play button lag about 20-25 sec
- pause button 1-2 sec lag
- stop button same reaction as power up/dwn 1-2 sec lag
- switching between album/folders not possible, only song selection possible in "active"cd/folder"
- after several song skip no more song information in top of the screen
- When selecting new cd/folder focus is not reset to top of list but stay's on last choosen focus position
- not able to search
- missing first few seconds of the song, I think it's an mede8er. issue noticed it before

Wishes to think about (later):
*creating playlist(s) on the fly
* start play on double click

i don't know if the lag  is related to my large collection or file type (DTS coded  .WAV files)

PS.. i'm testing from my laptop connected by wifi.

mike42  8)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 01:38:16 pm
Mike, thank you very much for you feedback.

25 sec  is too much, i get a 3/4s lag :( , and i'm also using wifi.

To play a file, i have to do the following command sequence :

1 - jukebox query entry
2 - jukebox open 0
3 - play <file>/var/www/jukebox/0//Adele_21/10_Lovesong.flac</file>
4 - status musictime
5 - jukebox close 0

I repeat this sequence every time i play a new music.

Can anyone confirm i'm using the correct procedure for playing a file?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 01:51:11 pm

However encountered some issues:

- ive got an large delay (lag) when skipping fw or bw about +25 sec
When FF or RW, i issue a new PLAY command (see PLAY comment)

- volume up/dwn responding (almost) instantly  1-2 sec lag
Its a single command

- play button lag about 20-25 sec
Probably due to the full play sequence i'm using, and the speed of your wifi connection, as i only get a 4s lag
- pause button 1-2 sec lag
- stop button same reaction as power up/dwn 1-2 sec lag

- switching between album/folders not possible, only song selection possible in "active"cd/folder"
When playing a file, i disable the tables selection, to prevent sincronization issues between the folders images and the table folders.

- after several song skip no more song information in top of the screen
I've also encountered this problem, but still havent figure why it happens

- When selecting new cd/folder focus is not reset to top of list but stay's on last choosen focus position
- not able to search
When playing a file, i disable the search, and the Next/Previous Page selection

- missing first few seconds of the song, I think it's an mede8er. issue noticed it before

Wishes to think about (later):
*creating playlist(s) on the fly
Regarding playlists, it will have to wait, i have to correct all the bugs first :)

* start play on double click
This is simple to implement :)
i don't know if the lag  is related to my large collection or file type (DTS coded  .WAV files)

PS.. i'm testing from my laptop connected by wifi.

mike42  8)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 01:58:07 pm
yep scan finished with succes... However app. is only showing my DTS collection folder ! (all WAV files)
checked the log file.... seems all music including MP3's are scanned but can't get them to show

I've divided the 5k Jukebox in 4 Jukeboxes, and i confirmed that only the LAST jukebox is presented.
Fortunately, it should be a simple bug to correct, and i will address it this afternoon.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 01, 2013, 02:26:17 pm
Below the log of one song. this sequence takes about 7 sec. in the log file

2013-12-01 14:13:19,140 DEBUG p.t.m.s.i.t.TCPClient Executing [jukebox open 9]
2013-12-01 14:13:19,144 DEBUG p.t.m.s.i.t.TCPClient Connected to [192.168.178.15:1187].
2013-12-01 14:13:22,044 DEBUG p.t.m.s.i.s.StateMachineService Success [STOPPED] -> [PRESS_PLAY].
2013-12-01 14:13:22,045 DEBUG p.t.m.s.i.t.TCPClient Executing [play <file>/var/www/jukebox/9//Rammstein - Liebe Ist Für Alle Da/01.  - 01. Rammlied.wav</file>]
2013-12-01 14:13:22,048 DEBUG p.t.m.s.i.t.TCPClient Connected to [192.168.178.15:1187].
2013-12-01 14:13:24,166 DEBUG p.t.m.s.i.c.p.M8PlayCommand Play [/var/www/jukebox/9//Rammstein - Liebe Ist Für Alle Da/01.  - 01. Rammlied.wav] Response [ok] = [true].
2013-12-01 14:13:24,167 DEBUG p.t.m.s.i.s.StateMachineService Success [PRESS_PLAY] -> [PLAYING].
2013-12-01 14:13:24,168 DEBUG p.t.m.s.i.t.TCPClient Executing [status musictime]
2013-12-01 14:13:24,174 DEBUG p.t.m.s.i.t.TCPClient Connected to [192.168.178.15:1187].
2013-12-01 14:13:26,194 DEBUG p.t.m.s.i.u.Utils Parsing Status [1/318].
2013-12-01 14:13:26,195 DEBUG p.t.m.s.i.t.TCPClient Executing [jukebox close 9]

i'm not sure and don't haven java experience, but some other programming experience.Couldn't it be
that  the delay is so large because the app has to check every jukebox available and then check  weither the correct song is in  there due to my multi jukebox structure. (this is jukebox N 9 and the last one)

couldn't you (pre) open the correct jukebox when it's selected in the GUI.

i'm currently making one (1) large jukebox and rescan (How can i reset the DB)

mike42  8)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 03:15:26 pm
Hi Mike.

I think there are two causes for the 25 delay :
1 - Your internet wifi speed
2 - The time spent communicating with the mede8er, with the whole process : query->open->play (at this time the music starts playing), musicstatus -> close.

It is actually consistent with my times:
- The 20k music jukebox took 40m to scan
- I get a 4s gap for the play command.

It seems my connection is 4 times faster than yours.

I'm playing defensively, as i'm closing the jukebox every time i need to play a file.
But as you get 25s gap's, i will have to think of using another strategy, maybe maintain the jukeboxes open when the application is on, and close them all when the application finishes.

If anyone from the NET API could provide he's views on the subject i will appreciate it ...

PS: i will now correct the bug of the scan process, that only shows last jukebox.

Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 03:26:10 pm
i'm currently making one (1) large jukebox and rescan (How can i reset the DB)

Just delete the config/Mede8erDB.xml file :)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 06:01:34 pm
I've divided the 5k Jukebox in 4 Jukeboxes, and i confirmed that only the LAST jukebox is presented.
Fortunately, it should be a simple bug to correct, and i will address it this afternoon.

Bug corrected, new versions online :
- 64 bits :  https://meocloud.pt/link/c1cbc3ac-3325-406c-889d-94a1e2029576/Mede8erMusicPlayer.zip
- 32 bits :  https://meocloud.pt/link/644f6a65-29ae-4f15-ba65-5199b91adecd/Mede8erMusicPlayer%20-%2032Bits.zip
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 01, 2013, 06:22:37 pm
Bug corrected, new versions online :
- 64 bits :  https://meocloud.pt/link/c1cbc3ac-3325-406c-889d-94a1e2029576/Mede8erMusicPlayer.zip
- 32 bits :  https://meocloud.pt/link/644f6a65-29ae-4f15-ba65-5199b91adecd/Mede8erMusicPlayer%20-%2032Bits.zip

Ok will try asap. Thanks in advance for your comitment and effort.

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 01, 2013, 06:31:31 pm
Ok will try asap. Thanks in advance for your comitment and effort.
Mike42

Thanks Mike, for such commitment in testing, i really appreciate it :)
Regards!
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 01, 2013, 09:44:41 pm
Thanks Mike, for such commitment in testing, i really appreciate it :)
Regards!

No thank you..... for making this app.  :D

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 02, 2013, 09:39:12 am

To play a file, i have to do the following command sequence :

1 - jukebox query entry
2 - jukebox open 0
3 - play <file>/var/www/jukebox/0//Adele_21/10_Lovesong.flac</file>
4 - status musictime
5 - jukebox close 0

I repeat this sequence every time i play a new music.

Can anyone from the NET API developers confirm i'm using the correct procedure for playing a file?

Instead of this defensive approach, i can apply a different technique :

1- On application start, during the scan process, open all the jukeboxes.
2 - Maintain the jukeboxes open during the time the application is on
3 - When closing the application, close all the jukeboxes.

Even so, there could be situations where the application is interrupted (process termination, computer shutdown, etc), which would lead to open resources on the mede8er.

For the NET API Team, what do you think? Is this approach valid? Can you suggest better alternatives?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: micron on December 02, 2013, 10:47:57 pm
I can not download the files via the links they don't work, and i don't speak the language of the site.
So please sheck the link so i can download. I dit a registration.

Great Micron
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: micron on December 02, 2013, 10:52:03 pm
I found your new link and now i can download, thank's.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 03, 2013, 12:58:41 am
I found your new link and now i can download, thank's.

Please report back your impressions :)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 03, 2013, 03:05:31 pm
@ neo_2011

Yesterday started with new (imporved) version at first i couldn't scan ( error opening jukeboxes). Seems that jukebox in jukebox isn't a option. Made several apart jukeboxes as before..... now scan started normally

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 03, 2013, 04:37:24 pm
@ neo_2011

Yesterday started with new (imporved) version at first i couldn't scan ( error opening jukeboxes). Seems that jukebox in jukebox isn't a option. Made several apart jukeboxes as before..... now scan started normally

mike42

First test results:

- after scan complete database of available now
- Lag stil present. You (neo_2011) suggested i could be my wifi connection that is responsible
   for the lag. But why does the stop, pause (single commands) responds quick ?
   I'm also using Upnp to control my music collection. also true wifi with high speed response
- search function working, However how do i go back to the "full" database
- after search action had to stop app. after restart constantly "ERROR SCANNING DATABASE" notice
  looked at log seems jukebox 2 is not closed correct (see e-mail for complete log)
mike42 8)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 03, 2013, 05:28:34 pm
Mike, to revert to "full" database, just clear the search box and press Enter (Or use the text box Context Menu clear option).

Regarding the Lag:
While the Stop, Vol Up, Pause, etc, are atomic Remote controls commands (RC Stop, RC Vol+, etc), the Play Command actually involves several interactions with the mede8er :

  1 - jukebox query entry
  2 - jukebox open ID
  3 - play <file>/var/www/jukebox/0//Adele_21/10_Lovesong.flac</file>
  (Music starts playing as soon as mede8er receives the command)
  4 - status musictime
  (As soon as the aplication receives the mede8er response, it updates the music slider bar)
  5 - jukebox close 0
  
The steps 1 to 3 involves :

   1 - Send TCP Command "jukebox query entry"
     1.1 - Receive  "jukebox/entry.json"
   2 - Send TCP Command "jukebox open 0"
     2.1 - Receive "jukebox/ID.json"
   3 - Send TCP Command "play <file>/var/www/jukebox/0//Adele_21/10_Lovesong.flac</file>"
     
I suspect that in your case each TCP command takes approx 5s (In my case, it take approx 1s), which could explain the 25s lags.

To avoid this, I'm considering another approach :
 - on startup, open all the Jukeboxes,
 - on close, exit, shutdown, close all Jukeboxes;
 
The only problem with this approach is that there are situations, for example, if someone use TaskManager to kill the application, or if the computer powers down, where i would be unable to close the jukeboxes.
I don't know what potential "risks" could arise if the jukeboxes aren't close.

I've been waiting for someone of the NET API to help in this situation, but so far, haven't got any response ...
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 03, 2013, 05:58:53 pm
- after search action had to stop app. after restart constantly "ERROR SCANNING DATABASE" notice
  looked at log seems jukebox 2 is not closed correct (see e-mail for complete log)

Thank you for the log file.

I cant fully explain it, but it seems that for some reason, the database file became "corrupt" :
- " Error on marshalMusicJukebox.  XML document structures must start and end within the same entity"

I suspect that for some reason, there were two commands manipulating the database file at the same time, maybe one reading at the same time another was writing ....
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 04, 2013, 08:57:54 pm
According to "Mede8er1" :

"The lag as you call it is the time taken for X3D to load the JukeBox  for the first time - this will be variable depending on the JukeBox size. Once opened there should be no lag. You can keep it open and just send play commands and dont need to close it each time. You only would close a JukeBox if you were to open another JukeBox."

I will implement this behavior this weekend. Nevertheless, you would still have the 25s delay when changing from one jukebox to another.

 
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 05, 2013, 08:00:56 pm
Just delete the config/Mede8erDB.xml file :)

if i delete the config an mede8erdb.xml files the app.won't start and i get an jave eception error

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 05, 2013, 10:50:29 pm
if i delete the config an mede8erdb.xml files the app.won't start and i get an jave eception error
mike42

You cant delete Config.xml, its a required file  :)
Please put the original Config.xml in the config folder and start the application, the scan process will be initiated ...
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 15, 2013, 02:36:02 pm
Changelog:

- Implemented the algorithm suggested by Mede8er1, Jukebox is open in the first time, and stays open until a file form another jukebox its selected. On shutdown, the jukebox is closed.

@Mike : You will probably still verify the 25s lag in the first music, or when you select an album for other jukebox.

64 Bits : https://meocloud.pt/link/463cb103-01a2-4ac4-8548-2fc1a7d62814/Mede8erMusicPlayer.zip
32 Bits : https://meocloud.pt/link/2a02184f-1e6d-49c8-8a9e-42d2d20f7816/Mede8erMusicPlayer-32-Bits.zip
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 16, 2013, 08:33:25 pm
Changelog:

- Implemented the algorithm suggested by Mede8er1, Jukebox is open in the first time, and stays open until a file form another jukebox its selected. On shutdown, the jukebox is closed.

@Mike : You will probably still verify the 25s lag in the first music, or when you select an album for other jukebox.

64 Bits : https://meocloud.pt/link/463cb103-01a2-4ac4-8548-2fc1a7d62814/Mede8erMusicPlayer.zip
32 Bits : https://meocloud.pt/link/2a02184f-1e6d-49c8-8a9e-42d2d20f7816/Mede8erMusicPlayer-32-Bits.zip

Wil test asap, just back from school and this w eek  preparing for x-mas holiday.
Report back later....

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 17, 2013, 04:22:34 pm
Installed 64 bit version. getting opening and closing  jukebox errors. and scan stops

same with 32 bits version.

does a jukebox require special format/layout ?

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: jer1956 on December 17, 2013, 04:41:34 pm
Installed 64 bit version. getting opening and closing  jukebox errors. and scan stops

same with 32 bits version.

does a jukebox require special format/layout ?

mike42

Jukebox means a link to a scanned folder with database.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 17, 2013, 10:51:02 pm
Installed 64 bit version. getting opening and closing  jukebox errors. and scan stops

I analysed the log you send me and there wasn't any error on the file (except "Discarding file type" "errors")
From the logs, it seems the application is trying to get the information from the mede8er, but it hangs while waiting for the information:

"2013-12-17 17:20:34,972 DEBUG p.t.m.s.i.t.TCPClient Executing [jukebox query entry]
2013-12-17 17:20:35,022 DEBUG p.t.m.s.i.t.TCPClient Connected to [192.168.178.15:1187].
2013-12-17 17:21:17,345 DEBUG p.t.m.s.i.t.TCPClient Executing [jukebox open 11]"

When you have the time (and the patience :( ),could you try scanning again?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 18, 2013, 06:59:43 am
I analysed the log you send me and there wasn't any error on the file (except "Discarding file type" "errors")
From the logs, it seems the application is trying to get the information from the mede8er, but it hangs while waiting for the information:

"2013-12-17 17:20:34,972 DEBUG p.t.m.s.i.t.TCPClient Executing [jukebox query entry]
2013-12-17 17:20:35,022 DEBUG p.t.m.s.i.t.TCPClient Connected to [192.168.178.15:1187].
2013-12-17 17:21:17,345 DEBUG p.t.m.s.i.t.TCPClient Executing [jukebox open 11]"

When you have the time (and the patience :( ),could you try scanning again?


Did several attemts. With 32/64 bit version al resulting in opening and closing jukebox errors.
Will send last log file. Has more information. Also renamed the directories to see this has influence -> no
Will try to scan from my pc iso laptop (wired)

Off course do ihave the patience, only lack of time at the moment ( x-mas, examens at school and one more week to work)

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 19, 2013, 04:28:00 pm
Did install app on my pc. Scan started and din't get any opening or closing jukebox errors. (yet )

2 options:

1) my wifi is the cause somehow..... will have to investigate further. because i don't have any other trouble what so ever
     with my wifi network. The upnp (bubleupnp and my onkyo app are working fine)
2) my laptop is an win-8.1 laptop !? could someone confirm this

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 20, 2013, 01:09:41 am
1) my wifi is the cause somehow..... will have to investigate further. because i don't have any other trouble what so ever
     with my wifi network. The upnp (bubleupnp and my onkyo app are working fine)

Mike, thank you very much for all your patience and efforts in testing this application.

Although i cant fully explain it, i think that i understand why the problem occurs : i had verified that for some reason, in some situations the application connects by TCP to the mede8er, but the connection "hangs".
I have a timeout of 2s, that occurs if the application cant read the data from the socket, and after the 2s, an error is raised.

I had verified that this situation sometimes occurred when sending a play command.
To prevent this i had already implemented a retry mechanism on the play and status commands, that closes and reopens the TCP connection, and resubmit the command.
When i use the aplication for several hours, i can see in the logs that sometimes the "hanging" occurs, but after retrying, the play or status command command is correctly send.

When i read your last logs, and realized the 2s gaps after establishing the tcp connection, i realized that it could also be occurring in the scan process, so i extended the retry mechanism to all TCP commands.
I'm counting that this should correct those problems, and prevent the situation you have verified.

Unfortunately, i will only be able to test this modification next year, so i will only be able to submit a new version in the first days of January.

I think that this shouldn't happen in a wired connection, so if you scan the database using the wire connection, and then copy the created Mede8erDb.xml database to the computer with the wireless connection, you should be able to use the application, because the play command already has the retry mechanism implemented.
It's an "ugly" workaround, but should work until i have the opportunity to submit a new version.

Thanks again for your help.
Regards !!!!
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on December 20, 2013, 12:53:33 pm
Nice to hear that progres is happening ! I will continue testing and sending reports/logs if something new occurs.
Will try the workaround to see if the lag problem consists.

Merry x-mas and a happy mede8er year !  ;D

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 20, 2013, 01:23:27 pm
Nice to hear that progres is happening ! I will continue testing and sending reports/logs if something new occurs.

Well, after all the work, i don't want to give up, and i my purpose is to make this app fully functional for all the users.
Correcting software problems isn't difficult, the major problem is diagnose them.
So, provided that someone discovers the problems, i'll do my best to correct them as soon as possible.

I also wish you and all the users a Merry x-mas and a happy mede8er year !
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 30, 2013, 10:37:25 am
New Versions

64 Bits : https://meocloud.pt/link/251e9849-f075-4ed7-b56e-594e545696be/Mede8erMusicPlayer.zip
32 Bits : https://meocloud.pt/link/13ea2c03-84e4-44cd-9f1f-9bc268f57a33/Mede8erMusicPlayer%20-%2032%20bits.zip

Changelog:

- Re-factoring of the Open/Play/Close Jukebox mechanism (as per last post)
- Correction of negative status time
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 06, 2014, 11:22:27 pm
No more feedback :( ?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 07, 2014, 04:46:08 pm
No more feedback :( ?

did install new version, but still connecting errors. din't do more test because of school exams
mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 07, 2014, 09:17:52 pm
... but still connecting errors. ...
Wireless or wired ?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 07, 2014, 09:40:15 pm
Wireless or wired ?

Wifi connection. I use the same connection for bubleupnp on my tablet without any trouble.
Tried also true wired connection scanning did finish. But din't try playing, etc.....
After next week i have some more time for testing.

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 08, 2014, 05:58:18 pm
Wifi connection. I use the same connection for bubleupnp on my tablet without any trouble.
Tried also true wired connection scanning did finish. But din't try playing, etc.....
After next week i have some more time for testing.

Mike42

found the issue with the connection error. i'm using an wifi repeater in my living room for the smartphones.
this repeater somehow can not connect to the mede8er (don't know why yet) however when i switch to my main
wifi router connection with the mede8er is fine. Scanning now (wait for results later)

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 08, 2014, 06:35:16 pm
Thank you very much Mike, you've been invaluable.
I will try to make a few enhancements next weekend (at least the double click functionality you requested :)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 09, 2014, 06:55:05 am
Thank you very much Mike, you've been invaluable.
I will try to make a few enhancements next weekend (at least the double click functionality you requested :)

Did some basic tests.

Scanning- din't time it but scanning finished pretty quick for 30000 + mp3s
Search - working
Browsing - lower part of screen refreshed continuosly, cd covers stopped refreshing.
After search function cd covers din't revert back to normal view after restore search.

Din't play, stop, skip,etc yet...

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 09, 2014, 11:51:38 am
Scanning- din't time it but scanning finished pretty quick for 30000 + mp3s
This was using a wireless or wired connection?

Browsing - lower part of screen refreshed continuosly, cd covers stopped refreshing.
Can you please detail what do you mean by browsing?
- Using the top left < > buttons?
- Using the covers slider?

After search function cd covers din't revert back to normal view after restore search.
I've never had this behavior, the "restore" (clear search) must have generated an error.
Can you please send me me the log file by email?

I've already implemented the double click behavior, i will generate a new version this weekend.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 09, 2014, 05:51:17 pm
The actual version has a problem in some transitions, and if it happens, the interface will show a warning (yellow background), indicating something like : "Error in transition [PRESS_PLAY] -> [PRESS_STOP]"
For example, that message would happen if you press the Play button, and for some reason the mede8er would take to long to respond, and you press the Stop button.
The logic is that you should only be allowed to press the Stop if you are actually playing something.
I've refracted the StateMachine service, to be able to intercept this events and to act accordingly.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 09, 2014, 07:59:36 pm
This was using a wireless or wired connection?
Can you please detail what do you mean by browsing?
- Using the top left < > buttons?
- Using the covers slider?
I've never had this behavior, the "restore" (clear search) must have generated an error.
Can you please send me me the log file by email?

I've already implemented the double click behavior, i will generate a new version this weekend.

-I was using wifi
-Browsing true <> buttons as said the text based screen on the bottom refreshed just fine
But the cover slider din't. (Option make it more passive)

Send you the log coming weekend

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 10, 2014, 03:07:16 pm
Today tested playing, skipping, stopping, etc......

First Thank you  for this great improved version it  is realy a large improvement since the previous version:

Inititial start playing: lag > 20 sec (probaply due to opening of the jukebox)
After initial play command --> lag <= 5 sec ( large improvement since prev. version was >=25sec)
stop command --> ok reacts directly
skip Fw/BW --> reacts directly

During playback not able to browse true CD's (via <> on top of the screen)
Also browsing in the tekst based part of the screen not possible only next or previous song buttons working
Graphical Cd cover slider works during playing but album and song list are not in sync (not refreshed to correct Cd cover slider position)

volume working fine !

mike42

Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 10, 2014, 05:31:21 pm
Inititial start playing: lag > 20 sec (probaply due to opening of the jukebox)
Yes, the 20s will always happen on first song, or when you change to other Jukebox
After initial play command --> lag <= 5 sec ( large improvement since prev. version was >=25sec)
Yes, this was due to the change on the Open/Close Jukebox algorithm.

During playback not able to browse true CD's (via <> on top of the screen)
Correct: This is the implemented behaviour *
One detail, the <> are the PAGE navigators (50 CD's per page).
There is a bug on the <> labels when you execute a search, instead of presenting the number of pages, they present the number of CD's that were found by the search expression.

Also browsing in the text based part of the screen not possible only next or previous song buttons working
Correct: This is the implemented behaviour *

Graphical Cd cover slider works during playing but album and song list are not in sync (not refreshed to correct Cd cover slider position)
Correct: This is the implemented behaviour *

* - The behaviour you described is an implementation deliberated decision: The CD's and Music tables are synchronized, and it would be necessary to re-design the interface to allow the navigation of the Jukebox, while showing the information about the album you are playing.
As such, i decided to lock the navigation functionality while playing. I don't think it would be a useful feature, as when i want to listen to an album, i will probably will listen to the majority of songs, and, if i want to listen to another album, i would stop the music, search for the album, and play it.

I know its not perfect solution, but i think that in this case, the implementation "costs" (it would take a lot of time) would negate the benefits, and my main focus is to stabilize the application and guarantee its error free.

Thanks again for your testing efforts, and i want to ask the other members to try it, as i think this version is stable enough to be used on a daily basis.

This weekend i will update the application, with a version that allows to play by double clicking on one song, and has a few correction on the transitions errors.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 10, 2014, 05:46:00 pm
I understand why the decisions off the browsing issues. But if you want to make a. Playlist on the fly. What is common is in other players. This not an obvious solution.

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 10, 2014, 05:53:40 pm
... But if you want to make a. Playlist on the fly. What is common is in other players....
I would like to try implementing the playlist in the future, but it will probably take some time, as it will be necessary a very profound redesign of the whole application :)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 10, 2014, 09:03:37 pm
I would like to try implementing the playlist in the future, but it will probably take some time, as it will be necessary a very profound redesign of the whole application :)

The power of net api, and such is to control your media.....

Mike42

 Ps ( gmail)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 11, 2014, 08:56:10 pm
Thanks for the email, already responded !
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 12, 2014, 09:47:48 pm
New Versions
64 Bits : https://meocloud.pt/link/8959390d-2921-4d4b-aa8c-b57fbe2cb853/Mede8erMusicPlayer.zip
32 Bits : https://meocloud.pt/link/59618b72-ae8f-45a2-9b95-a475d267039f/Mede8erMusicPlayer-32Bits.zip

Changelog:
- (Dev) Double Click on songs to play.
- (Bug) Correction of a small error on the reload images mechanism
- (Bug) Minor bugs corrected

@Mike : To avoid re-scaning, just copy the old config/ folder (Configuration.xml + Mede8erDB.xml) to the new version.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 13, 2014, 10:39:53 pm
Thanks for the email, already responded !

Noticed during playback of a whole cd,. That the player gets an stop command after every finished song
Instead of skip or next command. The song is stopped, next song start playing.

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 14, 2014, 07:34:20 pm
Checked all my cd cover files. Because off the cd covr slider screen issue.
All my cd covers are 230 x230

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 15, 2014, 09:17:28 am
Noticed during playback of a whole cd,. That the player gets an stop command after every finished song
Instead of skip or next command. The song is stopped, next song start playing.
It's strange, because i don't send any STOP command. But i will look at it.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on January 15, 2014, 09:19:27 am
Checked all my cd cover files. Because off the cd covr slider screen issue.
All my cd covers are 230 x230
Thanks ... i'm clueless about this one ... i will try to use the 20k database, to try to replicate it.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on January 15, 2014, 04:46:12 pm
It's strange, because i don't send any STOP command. But i will look at it.

It is not a big issue. App. Keeps playing without problems. i had the tv on and it's constantly jumping between
Normal screen and playscreen. also the play and stop symbools in the left upper corner (tv screen) are showing, so mede8er gets somehow a stop command ( could also save some time between songs)

Mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on August 03, 2014, 07:30:26 pm
Checked all my cd cover files. Because off the cd covr slider screen issue.
All my cd covers are 230 x230

I've found that when the cover file is very large (1200 x1200 for example), the image appears in the bottom, as you can see in this image (note the image on right bottom corner):

(http://i740.photobucket.com/albums/xx47/neo2014/mede8er_dk_image_zps2b8528ec.jpg)

Resizing the image to the correct size corrects the problem.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on September 20, 2014, 03:37:28 pm
I don't know if anyone is still interested, but i'm adding support for Playlists :)

I Added a TabPanel, with two tabs: Album and Playlists, that allows switching between normal album mode and a new Playlist Mode.

A preview of the new Playlist suport:

(http://i740.photobucket.com/albums/xx47/neo2014/mede8erJukebox_zpsc291d438.png) (http://s740.photobucket.com/user/neo2014/media/mede8erJukebox_zpsc291d438.png.html)

I'm still working in some improvements, upgrading to Java 8, correcting some bugs, etc, but in a few weeks i should be able to post a new improved version.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on October 18, 2014, 09:48:35 am
I don't know if anyone is still interested, but i'm adding support for Playlists :)

I Added a TabPanel, with two tabs: Album and Playlists, that allows switching between normal album mode and a new Playlist Mode.

A preview of the new Playlist suport:

(http://i740.photobucket.com/albums/xx47/neo2014/mede8erJukebox_zpsc291d438.png) (http://s740.photobucket.com/user/neo2014/media/mede8erJukebox_zpsc291d438.png.html)

I'm still working in some improvements, upgrading to Java 8, correcting some bugs, etc, but in a few weeks i should be able to post a new improved version.

hey neo. long time no hear ! ofcourse i'm interested. but i'm a bit busy with my study. (bacholar) but i will give it a go. afre the issues i mentioned resolved ?

mike42
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 18, 2014, 03:12:12 pm
...the issues i mentioned resolved ?

Hi mike, can you refresh my memory regarding those issues :) ?
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on October 20, 2014, 02:28:59 pm
Hi mike, can you refresh my memory regarding those issues :) ?

I don't know anymore, some issues with displaying the covers, Lag problems when opening the database!? I realy need to restart i think. by the way where can i find the download link ?

mike42   8)
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on October 21, 2014, 04:23:36 pm
Mike, i think that all the problems with the cover image only appear if the image is greater than a specific size.
If the image has the recommended 230x230 px, everything is ok.

Regarding the other issues i think everything is resolved.

I already completed the code for the playlist, but this time i want to test it properly, i hope in the next weeks (2-3) i have the time to do it and make the app available for download.
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: Mike42 on November 02, 2014, 11:52:37 am
Mike, i think that all the problems with the cover image only appear if the image is greater than a specific size.
If the image has the recommended 230x230 px, everything is ok.

Regarding the other issues i think everything is resolved.

I already completed the code for the playlist, but this time i want to test it properly, i hope in the next weeks (2-3) i have the time to do it and make the app available for download.

ok  :D
Title: Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
Post by: neo_2011 on December 10, 2014, 08:00:25 pm
I haven't be able to work in the application, because i'm having some problems getting the information from mede8er:
since i've upgraded to the 3.0.7 24_Oct version, i cannot get the list of jukeboxes when executing the command:
 
jukebox query entry => empty

I've tried to open a topic on the NET API forum, but so far, haven't had any response :(
 - http://www.mede8erforum.com/index.php/topic,15486.0.html