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

Video dont load #438

Open
Rocoww opened this issue Nov 26, 2024 · 14 comments
Open

Video dont load #438

Rocoww opened this issue Nov 26, 2024 · 14 comments

Comments

@Rocoww
Copy link

Rocoww commented Nov 26, 2024

video does not load. player used by media extended is not working

@juestchaos
Copy link

You can provide your Obsidian version and plugin version number. Alternatively, you can provide whether it is a local video or an online video URL, so we can help to locate the issue.

@Rocoww
Copy link
Author

Rocoww commented Dec 12, 2024

hello. I'm trying today again. I have the latest version of Obsidian. App v1.7.7 and average extended v3.2.6

The problem is still here. The video runs until around 19 seconds and is loading infinitely. An error appears in loading.

I'm trying to see videos by URL.
My connection is very good.

@princinv
Copy link

princinv commented Dec 12, 2024

I have the same issue, ive had them stop at 19 seconds and 59 seconds. Same versions, trying to watch an embedded youtube video and it loads for a while before saying something went wrong. Attempting from Ubuntu.

logged in just in case that was the issue, nope.

same thing is happening with youtube when i just do a ![link] embed though so maybe its something beyond the plugin? i did check the console, shows timeouts.

Edit: guess i'll look like a fool for not checking more issues first, but @Rocoww this issue seems to happen if you do not have a premium youtube membership. Thought i had finally gotten away from that but i just reactivated and it is working fine. #435 (comment)

@Rocoww
Copy link
Author

Rocoww commented Dec 16, 2024

Hi @princinv.

I believe I found the problem. And it seems even simpler than that.

When opening a media, click the three points in the upper right corner for the note options. In this menu you will find "Always Open This URL As" Put Iframe, or just try to change to the option that is available.
So far after having done this has worked normally

Tell us if it will work with you too
LOL

@Mohammed159159
Copy link

Hi @princinv.

I believe I found the problem. And it seems even simpler than that.

When opening a media, click the three points in the upper right corner for the note options. In this menu you will find "Always Open This URL As" Put Iframe, or just try to change to the option that is available. So far after having done this has worked normally

Tell us if it will work with you too LOL

I tried it and it's still not working.

@alexpeul
Copy link

alexpeul commented Dec 17, 2024

I have the same issue. I tried everything (login in Settings > Open Browser, Always open in iframe) but any video will freeze after the first few seconds off playback.

Media Extended version 3.2.6
Obsidian 1.7.7
macOS Sequoia 15.1.1

SCR-20241217-ubfa

@Rocoww
Copy link
Author

Rocoww commented Dec 18, 2024

@Mohammed159159 @alexpeul

One more attempt, it is worth trying. Here IFRAME's suggestion worked on two devices.

When you change forever open in Iframe, close all video views that may be open, restart Obsidian. Now try to open the video again, a sign that it is really in Iframe is that the central play of play that will appear will be the red icon of the right youtube and not the Icon of the Extended Media Player.

I hope it works for you too, it was for months without use and here it is finally working normally now. Already saw three video lessons of 2 hours, no problem so far

@Rocoww
Copy link
Author

Rocoww commented Dec 18, 2024

Another observation. When the problem started for me I had put a new theme and installed Style Settings. When I made the change to Iframe I had disabled the themes and style settings. Now I installed another different theme and put the style settings again, this time it continued to work.

When the problem started for you?

@Rocoww
Copy link
Author

Rocoww commented Dec 18, 2024

Another observation again. Today I went to watch a video and after a long time working, gave the error again load nonstop. I went to see the option and, for some reason, was not in Iframe, made the change and made an update or opened the media again. worked normally once again

There is another option on the

"Always Open www.youtube.com as" > "Iframe"

This option for whenever the link is from YouTube
If the "webpage" option for you to appear, it is because IFRAME is already working

@alexpeul
Copy link

Thank you, @Rocoww! You were absolutely right—switching to iframe resolved the issue. Even though I had selected the option to always open YouTube.com as an iframe, it wasn’t actually being applied, as indicated by the red icon in the tab.

I don’t use any styling plugins, but I reset the theme to default and restarted the application multiple times until the red icon disappeared. Now it’s working perfectly—no more freezing! Thanks again for your help!

For everyone else, here’s how to confirm the video is actually running in an iframe:

SCR-20241218-tual

And also, Always open youtube.com as has to show "webpage":

image

@alexpeul
Copy link

However, playing in iframe prevents taking screeshots, which is why I wanted to use this plugin in the first place. So unfortunatelly not a solution for me.

Any ideas why it cannot play in the webpage? Why is it freezing after a few seconds?

@rpj-07
Copy link

rpj-07 commented Jan 8, 2025

It is also not working for me. It sops at second 19 and then it loads the whole time...
Are there any other ideas to solve this problem (all the Ideas yet I tried, but they do not work).

@Mohammed159159
Copy link

@Mohammed159159 @alexpeul

One more attempt, it is worth trying. Here IFRAME's suggestion worked on two devices.

When you change forever open in Iframe, close all video views that may be open, restart Obsidian. Now try to open the video again, a sign that it is really in Iframe is that the central play of play that will appear will be the red icon of the right youtube and not the Icon of the Extended Media Player.

I hope it works for you too, it was for months without use and here it is finally working normally now. Already saw three video lessons of 2 hours, no problem so far

You are right. I made sure that it is playing in iframe and it did work, without the ability to take screenshots unfortunately. A nice thing about this plugin is that it allows you to embed video fragments like this:
image
This will only work if the "always open as iframe" option is enabled. I am not sure why, but this option changes back to webpage sometimes and you have to change it back to iframe.

@Mohammed159159
Copy link

I think that the problem is that the plugin counts on the webpage view to be able to take screenshots. Maybe if a screenshot is taken by using the loaded iframe from the html tree, this would bypass the need for webpage view.

image

A library like html2canvas could be used to take screenshots of html tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants