mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
item details chapters populated, gallery lightbox
This commit is contained in:
parent
f286bd8242
commit
5460bb3507
3 changed files with 137 additions and 21 deletions
|
@ -31,7 +31,7 @@
|
|||
return false;
|
||||
},
|
||||
|
||||
play: function (items) {
|
||||
play: function (items, startPosition) {
|
||||
|
||||
if (MediaPlayer.isPlaying()) {
|
||||
MediaPlayer.stop();
|
||||
|
@ -43,7 +43,7 @@
|
|||
|
||||
if (item.MediaType === "Video") {
|
||||
|
||||
mediaElement = MediaPlayer.playVideo(items);
|
||||
mediaElement = MediaPlayer.playVideo(items, startPosition);
|
||||
}
|
||||
|
||||
else if (item.MediaType === "Audio") {
|
||||
|
@ -109,7 +109,7 @@
|
|||
return $('audio', nowPlayingBar)[0];
|
||||
},
|
||||
|
||||
playVideo: function (items) {
|
||||
playVideo: function (items, startPosition) {
|
||||
|
||||
var item = items[0];
|
||||
|
||||
|
@ -122,11 +122,13 @@
|
|||
audioBitrate: 128000,
|
||||
videoBitrate: 500000,
|
||||
maxWidth: screenWidth,
|
||||
maxHeight: screenHeight
|
||||
maxHeight: screenHeight,
|
||||
StartTimeTicks: 0
|
||||
};
|
||||
|
||||
//TODO if you press "stop" button on the nowPlayingBar and restart the same video without refreshing the page
|
||||
//there is an issue since VideoJS is still loaded.
|
||||
if (typeof(startPosition) != "undefined") {
|
||||
baseParams['StartTimeTicks'] = startPosition;
|
||||
}
|
||||
|
||||
var html = '<video id="videoWindow" class="itemVideo video-js vjs-default-skin"></video>';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue