🍙 on redirect pause the video directly only

This commit is contained in:
Shiba 2022-08-10 07:56:24 +00:00
parent a41b51e454
commit 28ef256c40

View file

@ -340,11 +340,7 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa
const lbryURL = getLbryUrlByTarget(target) const lbryURL = getLbryUrlByTarget(target)
if (source.type === 'video') { if (source.type === 'video') {
// As soon as video play is ready and start playing, pause it. findVideoElementAwait(source).then((videoElement) => videoElement.pause())
findVideoElementAwait(source).then((videoElement) => {
videoElement.addEventListener('play', () => videoElement.pause(), { once: true })
videoElement.pause()
})
} }
if (target.platform === targetPlatformSettings.app) { if (target.platform === targetPlatformSettings.app) {