Merge pull request #258 from mvn23/proper-content-length
Improve song length handling when transcoding
This commit is contained in:
commit
1689e0d23e
1 changed files with 3 additions and 3 deletions
|
@ -114,11 +114,11 @@ angular.module('jamstash.player.directive', ['jamstash.player.service', 'jamstas
|
||||||
}
|
}
|
||||||
var media = {};
|
var media = {};
|
||||||
if (newSong.suffix === 'oga') {
|
if (newSong.suffix === 'oga') {
|
||||||
media= { oga: newSong.url };
|
media= { oga: newSong.url, duration: newSong.duration };
|
||||||
} else if (newSong.suffix === 'm4a') {
|
} else if (newSong.suffix === 'm4a') {
|
||||||
media= { m4a: newSong.url };
|
media= { m4a: newSong.url, duration: newSong.duration };
|
||||||
} else if (newSong.suffix === 'mp3') {
|
} else if (newSong.suffix === 'mp3') {
|
||||||
media= { mp3: newSong.url };
|
media= { mp3: newSong.url, duration: newSong.duration };
|
||||||
}
|
}
|
||||||
$player.jPlayer('setMedia', media);
|
$player.jPlayer('setMedia', media);
|
||||||
if (globals.settings.Jukebox) {
|
if (globals.settings.Jukebox) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue