From 28a489a14808a5ea54e79fc5165bbed0db1abfa0 Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Mon, 27 Jul 2020 18:43:59 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- src/plugins/htmlVideoPlayer/plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 4771fdb129..fdc8e8fc80 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -456,7 +456,7 @@ function supportsTextTracks() { /** * @private */ - setSrcWithHlsJs(instance, elem, options, url) { + setSrcWithHlsJs(elem, options, url) { return new Promise((resolve, reject) => { @@ -683,7 +683,7 @@ function supportsTextTracks() { return this.setCurrentSrcChromecast(this, elem, options, val); } 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') { return this.setSrcWithFlvJs(elem, options, val); } else { @@ -1571,7 +1571,7 @@ function supportsTextTracks() { // don't animate on smart tv's, too slow if (options.fullscreen && browser.supportsCssAnimation() && !browser.slow) { - zoomIn(dlg).then(function () { + return zoomIn(dlg).then(function () { return videoElement; }); } else {