Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added fix for switching between songs

  • Loading branch information...
commit 047bb18e3f98b5a1a3f04f667e5a96b8c7f246e8 1 parent b5e8295
Eric Matthys authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/js/plex/view/players/MusicPlayerView.js
View
5 app/js/plex/view/players/MusicPlayerView.js
@@ -58,6 +58,10 @@ define(
this.$('.now-playing-title').html(this.model.get('title'));
+ if (typeof(this.sound) !== 'undefined') {
+ this.sound.destruct();
+ }
+
this.sound = soundManager.createSound({
id: 'track_' + this.model.id,
url: file,
@@ -132,6 +136,7 @@ define(
onFinish: function () {
this.sound.destruct();
+ this.sound = undefined;
if (typeof(this.nextTrack) !== 'undefined') {
this.model = this.nextTrack;
Please sign in to comment.
Something went wrong with that request. Please try again.