devsnd / cherrymusic

Stream your own music collection to all your devices! The easy to use free and open-source music streaming server.
http://www.fomori.org/cherrymusic
GNU General Public License v3.0
1.03k stars 187 forks source link

playback not working #239

Closed 6arms1leg closed 11 years ago

6arms1leg commented 11 years ago

since the last gitpull a few min. ago, audio playback is not working anymore. playlists are loaded and files are added to the queue normally, but clicking on a track does nothing. same with pressing the play button. no error messages are shown.

devsnd commented 11 years ago

Can you please open the javascript console and tell me the output? Make sure your browser cache has been wiped, since I made changes to the javascript, that could break if an older version was used.

PX7057 commented 11 years ago

Same here. Even after cache has been wiped. The only way to make it play is by clicking "next song" or "previous song"

6arms1leg commented 11 years ago

clearing the cache doesnt help. sometimes it works on firefox, but only after wildly clicking the buttons for a few times.

here the output from midori's console:

Array[0]
 playlistmanager.js:655
refreshTabs playlistmanager.js:395
refreshPlaylists playlistmanager.js:438
Array[1]
 playlistmanager.js:444
pl-0 playlistmanager.js:446
removing invalid playlist from ui playlistmanager.js:449
pl-1359927003165 playlistmanager.js:446
3refreshTabs playlistmanager.js:395
refreshPlaylists playlistmanager.js:438
Array[1]
 playlistmanager.js:444
pl-1359927003165 playlistmanager.js:446
refreshTabs playlistmanager.js:395
remembering playlists periodically playlistmanager.js:671
refreshTabs playlistmanager.js:395
refreshPlaylists playlistmanager.js:438
["pl-1359927003165", "pl-1359927058072"] playlistmanager.js:444
pl-1359927003165 playlistmanager.js:446
pl-1359927058072 playlistmanager.js:446
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
added native format mp3 playlistmanager.js:551
refreshTabs playlistmanager.js:395
refreshTabs playlistmanager.js:395
refreshTabs playlistmanager.js:395
devsnd commented 11 years ago

Hm, that looks okay to me. Could you click on the "jPlayer Inspector" Button in the admin panel? After that you have to enable the jPlayer inspector by clicking on "show inspector" on the bottom of the screen. Please give me all the output from there as well.

6arms1leg commented 11 years ago

here you go:

Update jPlayer Inspector

This jPlayer instance is running in your browser where:
 jPlayer's html solution is being used and will support: oga mp3 m4v
 jPlayer's flash solution is not required

The HTML5 is active.
status.formatType = 'mp3'
Browser canPlay('audio/mpeg; codecs="mp3"')

status.src = '/serve/path/to/track.mp3'

status.media = {
 title: track.mp3
 wasPlayed: 1
 mp3: /serve/path/to/track.mp3
};

Raw browser test for HTML5 support. Should equal a function if HTML5 is available.
htmlElement.audio.canPlayType = function
htmlElement.video.canPlayType = function

This instance is using the constructor options:
$('#jquery_jplayer_1').jPlayer({
 swfPath: 'res/js',
 solution: 'html, flash',
 supplied: 'oga,mp3,m4v',
 preload: 'metadata',
 volume: 0.8,
 muted: false,
 backgroundColor: '#000000',
 cssSelectorAncestor: '#jp_ancestor',
 cssSelector: {
  videoPlay: '.jp-video-play',
  play: '.jp-play',
  pause: '.jp-pause',
  stop: '.jp-stop',
  seekBar: '.jp-seek-bar',
  playBar: '.jp-play-bar',
  mute: '.jp-mute',
  unmute: '.jp-unmute',
  volumeBar: '.jp-volume-bar',
  volumeBarValue: '.jp-volume-bar-value',
  volumeMax: '.jp-volume-max',
  currentTime: '.jp-current-time',
  duration: '.jp-duration',
  fullScreen: '.jp-full-screen',
  restoreScreen: '.jp-restore-screen',
  repeat: '.jp-repeat',
  repeatOff: '.jp-repeat-off',
  gui: '.jp-gui',
  noSolution: '.jp-no-solution'
 },
 errorAlerts: false,
 warningAlerts: false
});
devsnd commented 11 years ago

Please retry now, I think the last bugfix introduced a brand nes one :)

6arms1leg commented 11 years ago

no, still not working.

devsnd commented 11 years ago

Ah, it seems as if midori falsely reports mp3 playback support. Please try if you can play back the mp3 samples on this test site: Using midori, i can only play the ogg samples, even though mp3 support is reported. http://jplayer.org/HTML5.Audio.Support/

because of this unreal support, the flash-fallback solution for mp3 playback is not being used. You will need to report this upstream.

6arms1leg commented 11 years ago

Please try if you can play back the mp3 samples on this test site: Using midori, i can only play the ogg samples, even though mp3 support is reported.

same here, this is not working well with midori.

because of this unreal support, the flash-fallback solution for mp3 playback is not being used. You will need to report this upstream.

but it worked perfectly before.(?)

besides, firefox also has trouble: i have to click repeatedly on tracks to get them to play.

devsnd commented 11 years ago

I added a workaround for midori, but this will require you to transcode any ogg, since midori now relies on the flash-fallback.

devsnd commented 11 years ago

The issue with firefox is unrelated to that problem, but I will look into it.

6arms1leg commented 11 years ago

playing mp3s works fine with midori and firefox now.

I added a workaround for midori, but this will require you to transcode any ogg, since midori now relies on the flash-fallback.

does cherrymusic take care of that (transcoding oggs i mean)? because currently, oggs cant be played with midori.

EDIT:

The issue with firefox is unrelated to that problem, but I will look into it.

this part of the issue is gone (i think).

devsnd commented 11 years ago

Well, I just checked the jPlayer page, and midori doesn't work there either. You might want to file an issue for jPlayer or midori; I can't do anything about it.

I already wrote the workaround for mp3s to work, since there are probably more people having mp3s, but this workaround just enables flash as default which in turn automatically deactivates HTML5 support.

Since everything works in firefox, opera and chromium, that means support for the major browsers out there, this is all i can to for now.