fix audio playback
This commit is contained in:
@@ -132,8 +132,6 @@
|
||||
childText += Globalize.translate('ValueMinutes', 0);
|
||||
}
|
||||
|
||||
//childText += item.ChildCount == 1 ? "1 item" : item.ChildCount + " items";
|
||||
|
||||
counts.push(childText);
|
||||
|
||||
}
|
||||
@@ -866,7 +864,10 @@
|
||||
atts.push('data-context="' + (options.context || '') + '"');
|
||||
atts.push('data-itemtype="' + item.Type + '"');
|
||||
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-locationtype="' + (item.LocationType || '') + '"');
|
||||
|
||||
@@ -394,7 +394,7 @@
|
||||
|
||||
$('.videoChaptersPopup').on('click', '.mediaPopupOption', function () {
|
||||
|
||||
var ticks = parseInt(this.getAttribute('data-positionticks'));
|
||||
var ticks = parseInt(this.getAttribute('data-positionticks') || '0');
|
||||
|
||||
self.changeStream(ticks);
|
||||
|
||||
|
||||
@@ -598,7 +598,7 @@
|
||||
|
||||
} else if (item.MediaType === "Audio") {
|
||||
|
||||
mediaSource = getOptimalMediaSource(item.MediaType, result.MediaSources);;
|
||||
mediaSource = getOptimalMediaSource(item.MediaType, item.MediaSources);
|
||||
|
||||
if (mediaSource) {
|
||||
self.currentItem = item;
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
$('.chapterMenu', page).on('click', '.chapterPosterItem', function () {
|
||||
|
||||
if (currentPlayer) {
|
||||
var ticks = this.getAttribute('data-positionticks');
|
||||
var ticks = this.getAttribute('data-positionticks') || '0';
|
||||
|
||||
currentPlayer.seek(parseInt(ticks));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user