Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube video auto paused when start playing in webpage player #219

Closed
javiavid opened this issue Feb 16, 2024 · 24 comments
Closed

YouTube video auto paused when start playing in webpage player #219

javiavid opened this issue Feb 16, 2024 · 24 comments
Labels
bug Something isn't working

Comments

@javiavid
Copy link

I have tried creating a new vault, downloading BRAT and media extended, another link, I have reinstalled obsidian..
The problem is that every time you press play it only plays 1 frame and pauses again.
I get an error, Webview failed to load plugin in time.

In the video is the debug info of my vault.

Grabacion.2024-02-16.160208.mp4
@aidenlx
Copy link
Member

aidenlx commented Feb 17, 2024

could you try beta 11 to see if it still happens? you can also try "show native controls" from more options menu to see if the problem presist

@aidenlx aidenlx added the question Further information is requested label Feb 17, 2024
@javiavid
Copy link
Author

javiavid commented Feb 17, 2024

The error still happens in the new version. The message "Webview failed to load plugin in time" no longer appears.

Grabacion.2024-02-17.072627.mp4

@javiavid
Copy link
Author

I have also tried beta 12 and it is still the same.

@aidenlx
Copy link
Member

aidenlx commented Feb 17, 2024

media-extended.zip
could you try this version?

@javiavid
Copy link
Author

Beta 13 works! Thank you

@javiavid
Copy link
Author

javiavid commented Feb 20, 2024

3.0.2-beta.0
The error has returned, although the message does not appear.
This only happens with youtube videos, local videos work fine.

@javiavid javiavid reopened this Feb 20, 2024
@javiavid
Copy link
Author

I upload a video in case it helps you to find the problem.
The videos look fine in the canvas and also in the login website, but not in the normal player.

2024-02-21.13-05-20.mp4

@javiavid
Copy link
Author

3.0.3 beta0 - ok
Thanks

@SchluppiBobbz
Copy link

Same for me, video from youtube plays only 1 frame (also true with 3.0.3 beta0)

@aidenlx
Copy link
Member

aidenlx commented Feb 26, 2024

The issue is not addressed in recent beta since I haven’t yet stably reproduce this issue. but I do have an assumption of the source of this issue. will keep you informed if there are new attempts to fix this.

@javiavid
Copy link
Author

It works fine for me right now, but it's true that it seems a bit intermittent.

I'm trying all the versions and there are times it works and other times it doesn't, even with the same versions.
I was trying to create a new vault, installing obsidian, firewall, antivirus... but I couldn't figure out what the problem was.

@FeralFlora
Copy link

The issue is not addressed in recent beta since I haven’t yet stably reproduce this issue. but I do have an assumption of the source of this issue. will keep you informed if there are new attempts to fix this.

I'm still having the issue with beta0. When I press play, the playback stops after a millisecond, just enough to hear a sound, but then it stops.

@aidenlx aidenlx changed the title Beta10 - Video does not play - Webview failed to load YouTube video auto paused when start playing Feb 28, 2024
@aidenlx aidenlx pinned this issue Feb 28, 2024
@aidenlx aidenlx added bug Something isn't working and removed question Further information is requested labels Feb 28, 2024
@aidenlx aidenlx changed the title YouTube video auto paused when start playing YouTube video auto paused when start playing in webpage player Feb 28, 2024
@aidenlx
Copy link
Member

aidenlx commented Feb 29, 2024

could you check enabling the following flag in console solve this issue? (in 3.0.3-beta.1)

localStorage.setItem('MX_DEV_DISABLE_WEBVIEW_TEMP_FRAG','1')
CleanShot.2024-02-29.at.15.42.48.-.01.mp4

@FeralFlora
Copy link

could you check enabling the following flag in console solve this issue? (in 3.0.3-beta.1)

localStorage.setItem('MX_DEV_DISABLE_WEBVIEW_TEMP_FRAG','1')

CleanShot.2024-02-29.at.15.42.48.-.01.mp4

I was going to test that flag, but there was no need to, because it was already working without it in version 3.0.3-beta.1.
I do get ads now, though.

@aidenlx
Copy link
Member

aidenlx commented Feb 29, 2024

From previous reports, it may become normal for some time. You can keep this flag on to see if this issue occur again. (note: this disable time range limits like #t=5,10 that limit playback between 5s and 10s

@SchluppiBobbz
Copy link

Still doesn't work for me unfortunately.

@sebastien-k
Copy link

I also have this issue, even with the latest version (3.04).

@javiavid
Copy link
Author

javiavid commented Mar 3, 2024

Hello, the problem continues in 3.04. I have tested the code in the console.
In 2.11.1 it works fine.

image

@aidenlx
Copy link
Member

aidenlx commented Mar 5, 2024

could you check enabling the following flag in console and reload obsidian solve this issue? (in 3.0.5-beta.0)

localStorage.setItem('MX_DEV_DISABLE_YTB_SKIP_AD','1')

when enabled, the following message will ouput to console whenever plugin is loaded:

DEV: skip ad in youtube webpage player disabled

this will disable auto ad skip, you'll have to use "Show native controls" in context menu to get access to "Skip Ad" button

@javiavid
Copy link
Author

javiavid commented Mar 5, 2024

When I type the command the console shows:
undefined

When I use the plugin it shows this:

image

The problem persists.

@aidenlx
Copy link
Member

aidenlx commented Mar 5, 2024

@javiavid if you got time, you could DM me in discord to help me figure out the issue.

@aidenlx
Copy link
Member

aidenlx commented Mar 5, 2024

After collaborating with @javiavid and conducting some tests, we've identified a potential fix that could be enabled in 3.0.5-beta.2 by a specific flag in the console.

To apply this potential fix, please enter the following command in obsidian dev console and then reload Obsidian:

localStorage.setItem('MX_DEV_DISABLE_PARTITION','1');

Once this flag is enabled, you should see the message "DEV: disable partition" output to the console every time the plugin is loaded. This indicates that the flag is active.

We believe this flag could resolve the auto-pausing issue, but further testing is necessary to ensure its effectiveness and to identify any potential side effects. I encourage you to try this workaround and share your environment, especially if it resolves the issue for you. You can get env info from command show debug info.

PS: that previous flags from earlier betas have been disabled in the latest version, so there's no need to reset them.

@aidenlx
Copy link
Member

aidenlx commented Mar 12, 2024

someone posted a solution in the forum 2 weeks ago, could you guys check if login in youtube after reverting flag by using command "DEV: disable partition" (available in v3.0.5) solve this issue?

Turned out, that this only happens to YouTube Videos. The Problem was the cookie banner, what was instantly pausing videos. I solved the Problem by using the command “Media Extended: Login website” and accepted the cookies for YouTube.

https://forum.obsidian.md/t/media-extended-video-instantly-pauses/77509

PS: Could you guys share which country you're in, I never seen any cookie banner in YouTube, maybe it's GDPR related?

@aidenlx aidenlx unpinned this issue Mar 14, 2024
@aidenlx
Copy link
Member

aidenlx commented Mar 14, 2024

in v3.0.7-beta.2, there will be a notice asking you to handle consent in login browser.

it's addressed in FAQ as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants