mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
made some otimizations in nowPlayingBar.js
minor fixes in youtubePlayer plugin
This commit is contained in:
parent
383c0d2cc4
commit
8a41247491
2 changed files with 29 additions and 38 deletions
|
@ -114,9 +114,7 @@ function onPlaying(instance, playOptions, resolve) {
|
|||
instance.videoDialog.classList.remove('onTop');
|
||||
}
|
||||
|
||||
import('../../components/loading/loading').then(({default: loading}) => {
|
||||
loading.hide();
|
||||
});
|
||||
loading.hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -130,7 +128,7 @@ function setCurrentSrc(instance, elem, options) {
|
|||
instance.currentYoutubePlayer = new YT.Player('player', {
|
||||
height: instance.videoDialog.offsetHeight,
|
||||
width: instance.videoDialog.offsetWidth,
|
||||
videoId: params.v,
|
||||
videoId: params.get('v'),
|
||||
events: {
|
||||
'onReady': onPlayerReady,
|
||||
'onStateChange': function (event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue