diff --git a/src/components/htmlMediaHelper.js b/src/components/htmlMediaHelper.js
index 21cb84e41e..c7fe3145f7 100644
--- a/src/components/htmlMediaHelper.js
+++ b/src/components/htmlMediaHelper.js
@@ -33,9 +33,9 @@ export function enableHlsJsPlayerForCodecs(mediaSource, mediaType) {
// Force using HLS.js because desktop Safari's native HLS player does not play VP9 over HLS
// browser.osx will return true on iPad, cannot use
if (!browser.iOS && browser.safari && mediaSource.MediaStreams.some(x => x.Codec === 'vp9')) {
- return true
+ return true;
}
- return enableHlsJsPlayer(mediaSource.RunTimeTicks, mediaType)
+ return enableHlsJsPlayer(mediaSource.RunTimeTicks, mediaType);
}
export function enableHlsJsPlayer(runTimeTicks, mediaType) {
diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js
index a0738ee11d..224f43a76a 100644
--- a/src/plugins/htmlVideoPlayer/plugin.js
+++ b/src/plugins/htmlVideoPlayer/plugin.js
@@ -12,7 +12,6 @@ import {
destroyFlvPlayer,
destroyCastPlayer,
getCrossOriginValue,
- enableHlsJsPlayer,
enableHlsJsPlayerForCodecs,
applySrc,
resetSrc,
diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js
index 3d9d08a777..1270004854 100644
--- a/src/scripts/browserDeviceProfile.js
+++ b/src/scripts/browserDeviceProfile.js
@@ -584,12 +584,10 @@ export default function (options) {
hlsInFmp4VideoAudioCodecs.push('opus');
}
- if (browser.safari) {
- if (safariSupportsOpus) {
- videoAudioCodecs.push('opus');
- webmAudioCodecs.push('opus');
- hlsInFmp4VideoAudioCodecs.push('opus');
- }
+ if (safariSupportsOpus) {
+ videoAudioCodecs.push('opus');
+ webmAudioCodecs.push('opus');
+ hlsInFmp4VideoAudioCodecs.push('opus');
}
// FLAC audio in video plays with a delay on Tizen