mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update stream closing
This commit is contained in:
parent
aab737aea3
commit
8830ee7c30
2 changed files with 12 additions and 10 deletions
|
@ -1007,7 +1007,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
self.playVideo = function (item, mediaSource, startPosition) {
|
||||
self.playVideo = function (playbackInfo, item, mediaSource, startPosition) {
|
||||
|
||||
var mediaStreams = mediaSource.MediaStreams || [];
|
||||
|
||||
|
@ -1027,7 +1027,8 @@
|
|||
deviceId: ApiClient.deviceId(),
|
||||
Static: false,
|
||||
mediaSourceId: mediaSource.Id,
|
||||
api_key: ApiClient.accessToken()
|
||||
api_key: ApiClient.accessToken(),
|
||||
StreamId: playbackInfo.StreamId
|
||||
};
|
||||
|
||||
if (selectedSubtitleStream && (!self.supportsSubtitleStreamExternally(selectedSubtitleStream) || !self.supportsTextTracks())) {
|
||||
|
@ -1334,7 +1335,7 @@
|
|||
length = self.playlist.length,
|
||||
requiresNativeControls = !self.canAutoPlayVideo(),
|
||||
controls = $(requiresNativeControls ? '.videoAdvancedControls' : '.videoControls');
|
||||
|
||||
|
||||
if (length < 2) {
|
||||
$('.videoTrackControl').hide();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue