mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix audio playback
This commit is contained in:
parent
4055e10a4e
commit
aa333d4a60
4 changed files with 7 additions and 6 deletions
|
@ -132,8 +132,6 @@
|
||||||
childText += Globalize.translate('ValueMinutes', 0);
|
childText += Globalize.translate('ValueMinutes', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//childText += item.ChildCount == 1 ? "1 item" : item.ChildCount + " items";
|
|
||||||
|
|
||||||
counts.push(childText);
|
counts.push(childText);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -866,7 +864,10 @@
|
||||||
atts.push('data-context="' + (options.context || '') + '"');
|
atts.push('data-context="' + (options.context || '') + '"');
|
||||||
atts.push('data-itemtype="' + item.Type + '"');
|
atts.push('data-itemtype="' + item.Type + '"');
|
||||||
atts.push('data-mediatype="' + (item.MediaType || '') + '"');
|
atts.push('data-mediatype="' + (item.MediaType || '') + '"');
|
||||||
atts.push('data-positionticks="' + (item.UserData.PlaybackPositionTicks || 0) + '"');
|
|
||||||
|
if (item.UserData.PlaybackPositionTicks) {
|
||||||
|
atts.push('data-positionticks="' + (item.UserData.PlaybackPositionTicks || 0) + '"');
|
||||||
|
}
|
||||||
|
|
||||||
atts.push('data-playaccess="' + (item.PlayAccess || '') + '"');
|
atts.push('data-playaccess="' + (item.PlayAccess || '') + '"');
|
||||||
atts.push('data-locationtype="' + (item.LocationType || '') + '"');
|
atts.push('data-locationtype="' + (item.LocationType || '') + '"');
|
||||||
|
|
|
@ -394,7 +394,7 @@
|
||||||
|
|
||||||
$('.videoChaptersPopup').on('click', '.mediaPopupOption', function () {
|
$('.videoChaptersPopup').on('click', '.mediaPopupOption', function () {
|
||||||
|
|
||||||
var ticks = parseInt(this.getAttribute('data-positionticks'));
|
var ticks = parseInt(this.getAttribute('data-positionticks') || '0');
|
||||||
|
|
||||||
self.changeStream(ticks);
|
self.changeStream(ticks);
|
||||||
|
|
||||||
|
|
|
@ -598,7 +598,7 @@
|
||||||
|
|
||||||
} else if (item.MediaType === "Audio") {
|
} else if (item.MediaType === "Audio") {
|
||||||
|
|
||||||
mediaSource = getOptimalMediaSource(item.MediaType, result.MediaSources);;
|
mediaSource = getOptimalMediaSource(item.MediaType, item.MediaSources);
|
||||||
|
|
||||||
if (mediaSource) {
|
if (mediaSource) {
|
||||||
self.currentItem = item;
|
self.currentItem = item;
|
||||||
|
|
|
@ -246,7 +246,7 @@
|
||||||
$('.chapterMenu', page).on('click', '.chapterPosterItem', function () {
|
$('.chapterMenu', page).on('click', '.chapterPosterItem', function () {
|
||||||
|
|
||||||
if (currentPlayer) {
|
if (currentPlayer) {
|
||||||
var ticks = this.getAttribute('data-positionticks');
|
var ticks = this.getAttribute('data-positionticks') || '0';
|
||||||
|
|
||||||
currentPlayer.seek(parseInt(ticks));
|
currentPlayer.seek(parseInt(ticks));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue