Author Topic: Mede8er JukeBox Desktop Player (Net Api Windows client)  (Read 74318 times)

Offline neo_2011

  • B8a Tester - X3D NET API
  • Experienced Member
  • ****
  • Posts: 119
  • Helpful Contribution Status: +0/-0
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #60 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?

Offline micron

  • B8a Tester - X2
  • Experienced Member
  • ****
  • Posts: 109
  • Helpful Contribution Status: +5/-1
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #61 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

Offline micron

  • B8a Tester - X2
  • Experienced Member
  • ****
  • Posts: 109
  • Helpful Contribution Status: +5/-1
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #62 on: December 02, 2013, 10:52:03 PM »
I found your new link and now i can download, thank's.

Offline neo_2011

  • B8a Tester - X3D NET API
  • Experienced Member
  • ****
  • Posts: 119
  • Helpful Contribution Status: +0/-0
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #63 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 :)

Offline Mike42

  • B8a Tester - 1000X3D
  • Senior Member
  • ****
  • Posts: 470
  • Helpful Contribution Status: +2/-1
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #64 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
Mede8er : MED1000X3D
Network: Wired CAT5
NAS: WDMyCloud 4TB, streaming true NFS
Tv: Samsung LE32B650T2WXXN, LCD, HD TV
AV receiver: Onkyo TX-NR414
additional equipment:
- Switch sitecom N118 (MED, Onkyo receiver,PS3)
- Samsung galaxy Tab-3 10.1", android 4.2, max resultion 1280x800

Offline Mike42

  • B8a Tester - 1000X3D
  • Senior Member
  • ****
  • Posts: 470
  • Helpful Contribution Status: +2/-1
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #65 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)
« Last Edit: December 03, 2013, 05:38:30 PM by Mike42 »
Mede8er : MED1000X3D
Network: Wired CAT5
NAS: WDMyCloud 4TB, streaming true NFS
Tv: Samsung LE32B650T2WXXN, LCD, HD TV
AV receiver: Onkyo TX-NR414
additional equipment:
- Switch sitecom N118 (MED, Onkyo receiver,PS3)
- Samsung galaxy Tab-3 10.1", android 4.2, max resultion 1280x800

Offline neo_2011

  • B8a Tester - X3D NET API
  • Experienced Member
  • ****
  • Posts: 119
  • Helpful Contribution Status: +0/-0
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #66 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 ...

Offline neo_2011

  • B8a Tester - X3D NET API
  • Experienced Member
  • ****
  • Posts: 119
  • Helpful Contribution Status: +0/-0
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #67 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 ....

Offline neo_2011

  • B8a Tester - X3D NET API
  • Experienced Member
  • ****
  • Posts: 119
  • Helpful Contribution Status: +0/-0
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #68 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.

 

Offline Mike42

  • B8a Tester - 1000X3D
  • Senior Member
  • ****
  • Posts: 470
  • Helpful Contribution Status: +2/-1
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #69 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
Mede8er : MED1000X3D
Network: Wired CAT5
NAS: WDMyCloud 4TB, streaming true NFS
Tv: Samsung LE32B650T2WXXN, LCD, HD TV
AV receiver: Onkyo TX-NR414
additional equipment:
- Switch sitecom N118 (MED, Onkyo receiver,PS3)
- Samsung galaxy Tab-3 10.1", android 4.2, max resultion 1280x800

Offline neo_2011

  • B8a Tester - X3D NET API
  • Experienced Member
  • ****
  • Posts: 119
  • Helpful Contribution Status: +0/-0
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #70 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 ...

Offline neo_2011

  • B8a Tester - X3D NET API
  • Experienced Member
  • ****
  • Posts: 119
  • Helpful Contribution Status: +0/-0
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #71 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

Offline Mike42

  • B8a Tester - 1000X3D
  • Senior Member
  • ****
  • Posts: 470
  • Helpful Contribution Status: +2/-1
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #72 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
Mede8er : MED1000X3D
Network: Wired CAT5
NAS: WDMyCloud 4TB, streaming true NFS
Tv: Samsung LE32B650T2WXXN, LCD, HD TV
AV receiver: Onkyo TX-NR414
additional equipment:
- Switch sitecom N118 (MED, Onkyo receiver,PS3)
- Samsung galaxy Tab-3 10.1", android 4.2, max resultion 1280x800

Offline Mike42

  • B8a Tester - 1000X3D
  • Senior Member
  • ****
  • Posts: 470
  • Helpful Contribution Status: +2/-1
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #73 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
Mede8er : MED1000X3D
Network: Wired CAT5
NAS: WDMyCloud 4TB, streaming true NFS
Tv: Samsung LE32B650T2WXXN, LCD, HD TV
AV receiver: Onkyo TX-NR414
additional equipment:
- Switch sitecom N118 (MED, Onkyo receiver,PS3)
- Samsung galaxy Tab-3 10.1", android 4.2, max resultion 1280x800

Offline jer1956

  • Global Moder8or
  • M8er Addict
  • *****
  • Posts: 17 392
  • Helpful Contribution Status: +201/-55
Re: Mede8er JukeBox Desktop Player (Net Api Windows client)
« Reply #74 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.