mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Make lint happy
This commit is contained in:
parent
7ab3e27a4e
commit
e7f8036865
1 changed files with 0 additions and 16 deletions
|
@ -288,7 +288,6 @@ function tryRemoveElement(elem) {
|
||||||
} else {
|
} else {
|
||||||
this.name = 'Html Video Player';
|
this.name = 'Html Video Player';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
currentSrc() {
|
currentSrc() {
|
||||||
|
@ -332,7 +331,6 @@ function tryRemoveElement(elem) {
|
||||||
// This will start the transcoding process before actually feeding the video url into the player
|
// This will start the transcoding process before actually feeding the video url into the player
|
||||||
// Edit: Also seeing stalls from hls.js
|
// Edit: Also seeing stalls from hls.js
|
||||||
if (mediaSource && item && !mediaSource.RunTimeTicks && isHls && streamInfo.playMethod === 'Transcode' && (browser.iOS || browser.osx)) {
|
if (mediaSource && item && !mediaSource.RunTimeTicks && isHls && streamInfo.playMethod === 'Transcode' && (browser.iOS || browser.osx)) {
|
||||||
|
|
||||||
const hlsPlaylistUrl = streamInfo.url.replace('master.m3u8', 'live.m3u8');
|
const hlsPlaylistUrl = streamInfo.url.replace('master.m3u8', 'live.m3u8');
|
||||||
|
|
||||||
loading.show();
|
loading.show();
|
||||||
|
@ -404,9 +402,7 @@ function tryRemoveElement(elem) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
setSrcWithHlsJs(elem, options, url) {
|
setSrcWithHlsJs(elem, options, url) {
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
||||||
requireHlsPlayer(() => {
|
requireHlsPlayer(() => {
|
||||||
const hls = new Hls({
|
const hls = new Hls({
|
||||||
manifestLoadingTimeOut: 20000,
|
manifestLoadingTimeOut: 20000,
|
||||||
|
@ -476,7 +472,6 @@ function tryRemoveElement(elem) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
setCurrentSrcChromecast(instance, elem, options, url) {
|
setCurrentSrcChromecast(instance, elem, options, url) {
|
||||||
|
|
||||||
elem.autoplay = true;
|
elem.autoplay = true;
|
||||||
|
|
||||||
const lrd = new cast.receiver.MediaManager.LoadRequestData();
|
const lrd = new cast.receiver.MediaManager.LoadRequestData();
|
||||||
|
@ -498,7 +493,6 @@ function tryRemoveElement(elem) {
|
||||||
|
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
||||||
console.debug(`media manager error: ${err}`);
|
console.debug(`media manager error: ${err}`);
|
||||||
return Promise.reject();
|
return Promise.reject();
|
||||||
}
|
}
|
||||||
|
@ -622,7 +616,6 @@ function tryRemoveElement(elem) {
|
||||||
|
|
||||||
} else*/
|
} else*/
|
||||||
if (browser.chromecast && val.includes('.m3u8') && options.mediaSource.RunTimeTicks) {
|
if (browser.chromecast && val.includes('.m3u8') && options.mediaSource.RunTimeTicks) {
|
||||||
|
|
||||||
return this.setCurrentSrcChromecast(this, elem, options, val);
|
return this.setCurrentSrcChromecast(this, elem, options, val);
|
||||||
} else if (enableHlsJsPlayer(options.mediaSource.RunTimeTicks, 'Video') && val.includes('.m3u8')) {
|
} else if (enableHlsJsPlayer(options.mediaSource.RunTimeTicks, 'Video') && val.includes('.m3u8')) {
|
||||||
return this.setSrcWithHlsJs(elem, options, val);
|
return this.setSrcWithHlsJs(elem, options, val);
|
||||||
|
@ -751,7 +744,6 @@ function tryRemoveElement(elem) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
isAudioStreamSupported(stream, deviceProfile) {
|
isAudioStreamSupported(stream, deviceProfile) {
|
||||||
|
|
||||||
const codec = (stream.Codec || '').toLowerCase();
|
const codec = (stream.Codec || '').toLowerCase();
|
||||||
|
|
||||||
if (!codec) {
|
if (!codec) {
|
||||||
|
@ -790,7 +782,6 @@ function tryRemoveElement(elem) {
|
||||||
}
|
}
|
||||||
|
|
||||||
setAudioStreamIndex(index) {
|
setAudioStreamIndex(index) {
|
||||||
|
|
||||||
const streams = this.getSupportedAudioStreams();
|
const streams = this.getSupportedAudioStreams();
|
||||||
|
|
||||||
if (streams.length < 2) {
|
if (streams.length < 2) {
|
||||||
|
@ -801,7 +792,6 @@ function tryRemoveElement(elem) {
|
||||||
let audioIndex = -1;
|
let audioIndex = -1;
|
||||||
|
|
||||||
for (const stream of streams) {
|
for (const stream of streams) {
|
||||||
|
|
||||||
audioIndex++;
|
audioIndex++;
|
||||||
|
|
||||||
if (stream.Index === index) {
|
if (stream.Index === index) {
|
||||||
|
@ -995,9 +985,7 @@ function tryRemoveElement(elem) {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this._currentPlayOptions.fullscreen) {
|
if (this._currentPlayOptions.fullscreen) {
|
||||||
|
|
||||||
appRouter.showVideoOsd().then(this.onNavigatedToOsd);
|
appRouter.showVideoOsd().then(this.onNavigatedToOsd);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
appRouter.setTransparency('backdrop');
|
appRouter.setTransparency('backdrop');
|
||||||
this.#videoDialog.classList.remove('videoPlayerContainer-onTop');
|
this.#videoDialog.classList.remove('videoPlayerContainer-onTop');
|
||||||
|
@ -1366,7 +1354,6 @@ function tryRemoveElement(elem) {
|
||||||
|
|
||||||
// download the track json
|
// download the track json
|
||||||
this.fetchSubtitles(track, item).then(function (data) {
|
this.fetchSubtitles(track, item).then(function (data) {
|
||||||
|
|
||||||
// show in ui
|
// show in ui
|
||||||
console.debug(`downloaded ${data.TrackEvents.length} track events`);
|
console.debug(`downloaded ${data.TrackEvents.length} track events`);
|
||||||
// add some cues to show the text
|
// add some cues to show the text
|
||||||
|
@ -1421,7 +1408,6 @@ function tryRemoveElement(elem) {
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
setCurrentTrackElement(streamIndex) {
|
setCurrentTrackElement(streamIndex) {
|
||||||
|
|
||||||
console.debug(`setting new text track index to: ${streamIndex}`);
|
console.debug(`setting new text track index to: ${streamIndex}`);
|
||||||
|
|
||||||
const mediaStreamTextTracks = getMediaStreamTextTracks(this._currentPlayOptions.mediaSource);
|
const mediaStreamTextTracks = getMediaStreamTextTracks(this._currentPlayOptions.mediaSource);
|
||||||
|
@ -1731,10 +1717,8 @@ function tryRemoveElement(elem) {
|
||||||
seekable() {
|
seekable() {
|
||||||
const mediaElement = this.#mediaElement;
|
const mediaElement = this.#mediaElement;
|
||||||
if (mediaElement) {
|
if (mediaElement) {
|
||||||
|
|
||||||
const seekable = mediaElement.seekable;
|
const seekable = mediaElement.seekable;
|
||||||
if (seekable && seekable.length) {
|
if (seekable && seekable.length) {
|
||||||
|
|
||||||
let start = seekable.start(0);
|
let start = seekable.start(0);
|
||||||
let end = seekable.end(0);
|
let end = seekable.end(0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue