mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
🍙 on redirect pause the video directly only
This commit is contained in:
parent
a41b51e454
commit
28ef256c40
1 changed files with 1 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue