mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Apply suggestions from code review
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
88043825a1
commit
28a489a148
1 changed files with 3 additions and 3 deletions
|
@ -456,7 +456,7 @@ function supportsTextTracks() {
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
setSrcWithHlsJs(instance, elem, options, url) {
|
setSrcWithHlsJs(elem, options, url) {
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
||||||
|
@ -683,7 +683,7 @@ function supportsTextTracks() {
|
||||||
|
|
||||||
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(this, elem, options, val);
|
return this.setSrcWithHlsJs(elem, options, val);
|
||||||
} else if (options.playMethod !== 'Transcode' && options.mediaSource.Container === 'flv') {
|
} else if (options.playMethod !== 'Transcode' && options.mediaSource.Container === 'flv') {
|
||||||
return this.setSrcWithFlvJs(elem, options, val);
|
return this.setSrcWithFlvJs(elem, options, val);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1571,7 +1571,7 @@ function supportsTextTracks() {
|
||||||
|
|
||||||
// don't animate on smart tv's, too slow
|
// don't animate on smart tv's, too slow
|
||||||
if (options.fullscreen && browser.supportsCssAnimation() && !browser.slow) {
|
if (options.fullscreen && browser.supportsCssAnimation() && !browser.slow) {
|
||||||
zoomIn(dlg).then(function () {
|
return zoomIn(dlg).then(function () {
|
||||||
return videoElement;
|
return videoElement;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue