Alec Rust
Forum Replies Created
-
Forum: Plugins
In reply to: [Protected Video] Cannot play video, YouTube bot errorYou’re seeing it on the demo too because it’s related to your own YouTube session, this is not an issue I can fix with a change to the plugin.
Forum: Plugins
In reply to: [Protected Video] Plugin script that blocks right click and WooCommerceHi @dudlaj,
I’m not clear on the issue. If “Disable right-click” checkbox is enabled, right-click will be disabled on pages that load a Protected Video. Feel free to un-check this checkbox if it’s causing issues.
What behaviour change do you expect here?
Hi @maxim7510,
This is the behaviour of the player itself, which is Plyr. Protected Video just uses this player to help protect your content, it does not control the player itself.
If you need a new feature added to Plyr you will need to contact the developers of the player itself.
Please see this FAQ.
Forum: Plugins
In reply to: [Protected Video] New Elementor Flex ContainersHi Liliana,
You may not be doing anything wrong, this Protected Video plugin has no specific support for Elementor.
This plugin is primarily a Gutenberg block. The additional Shortcode embed method is included to increase compatibility with e.g. users on older versions of WordPress without Gutenberg. I have heard the Shortcode also works in some page builders including Elementor, but I can’t confirm that as I don’t use it.
Plugins like Elementor take over what can be loaded on a page, so specific support needs to be added in plugins (pull requests welcome). Please also see this FAQ.
Forum: Plugins
In reply to: [Protected Video] manual navigation in lookback videoHi Henry,
You are correct that if this is a bug, it’s a bug with Plyr and not this Protected Video plugin.
I believe development on Plyr has ceased and focus is now on Vidstack so do check that out if you want a custom solution. I plan to eventually add Vidstack support to Protected Video.
Regarding the progressive enhancement comment that won’t be related to this issue. Also, if this plugin output an iframe in the initial HTML from the server it would make the YouTube ID easier to identify in the page source.
Forum: Plugins
In reply to: [Protected Video] Video not show wp course builderHi @davidnob,
Probably better to create a new topic regarding this. But I’m not familiar with Masteriyo LMS and it’s quite possible it disables loading of other assets on its course pages.
If it works fine on a non-Masteriyo page, and it doesn’t on a Masteriyo page after disabling all other plugins, I suspect the issue is with Masteriyo.
My recommendation for an LMS would be Sensei which is created by Automattic and follows best WordPress practices.
Forum: Plugins
In reply to: [Protected Video] Autoplay video?Hi @evilmc thanks for your query. This plugin uses Plyr as the video player.
Autoplay is not a responsibility of the Protected Video plugin, however it’s something you could potentially implement with some extra JavaScript that autoplays Protected Video Plyr videos after they have loaded.
Another potential solution is to not use this plugin for the videos, and manually embed Plyr videos in a way that will autoplay.
Here are some links with examples of what I mention above:
Forum: Reviews
In reply to: [Protected Video] How to Force SubtitlesHi John, please see:
Forum: Plugins
In reply to: [Protected Video] Right click disableThis “disable right-click on pages where a Protected Video is displayed” behavior can now be switched off in a new option introduced in plugin version 1.11.0.
Forum: Plugins
In reply to: [Protected Video] CSP content security policyClosing as this support issue is resolved.
Forum: Plugins
In reply to: [Protected Video] CSP content security policyHi @vascobaiao,
Maybe this is out of your scope
That is correct, there’s nothing in this plugin preventing the videos from loading. It’s your Content Security Policy preventing videos loading.
The Plyr player which Protected Video uses loads the standard YouTube player via its iframe embed method. To permit this content from a 3rd party to load on your page, you likely need to add a rule to your
.htaccessfile, something like this:Header set Content-Security-Policy "default-src 'self'; object-src 'none'; script-src 'self' https: data: blob: 'unsafe-inline' 'unsafe-eval'; connect-src 'self' https:; style-src 'self' https: 'unsafe-inline'; font-src 'self' data: https:; img-src 'self' blob: data: https:; frame-src 'self' https: blob: https://www.youtube.com; form-action 'self';"Using the “Network” tab in Dev Tools you can see the resources that are trying to load on your page.
Forum: Plugins
In reply to: [Protected Video] Video not show wp course builderNo problem. If you do identify a change that needs to happen in this plugin, I will happily make it.
Forum: Plugins
In reply to: [Protected Video] Video not show wp course builderHave you confirmed it’s the Divi theme causing this issue? i.e. when you switch to a different theme, the videos load on all appropriate pages?
Forum: Plugins
In reply to: [Protected Video] Right click disableHi @honlapdavid thanks for raising this.
Disabling right-click on pages that load a Protected Video is a feature to prevent users easily opening Dev Tools, but I agree it may not always be desired.
Would a global plugin option to allow switching off this behavior suffice for you? If switched off, users would be able to right-click on all pages that load a Protected Video.
Forum: Plugins
In reply to: [Protected Video] Video not show wp course builderCould it be my divi theme
Yes. Looking at this theme it’s also a “page builder”, these are common culprits when it comes to disabling the automatic loading of the assets Protected Video requires.
I’ve noticed many of these large “page builder” theme/plugin things disable the default loading of assets, but there’s often an option in the settings to allow these assets to load. If you see an option like this, enable it.
but then it worked on my blank page.
The theme is possibly interfering with whatever page type WP Courses “lesson” pages use, but not standalone WordPress pages.
could it be because it’s behind a paywall?
Unlikely I would say.
To confirm this suspicion, I would temporarily switch your website to a different theme (like the default) and check if Protected Videos display on your lesson pages.