Alec Rust
Forum Replies Created
-
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:
https://www.ads-software.com/support/topic/enabling-captions/
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
.htaccess
file, 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.
Forum: Plugins
In reply to: [Protected Video] Video not show wp course builderIt seems there are three possible ways to insert, one of which likely doesn’t work:
- Insert into lesson content via Gutenberg block
- Insert into lesson content via Shortcode embed
- Insert into lesson content via “Lesson Video” iframe embed (likely doesn’t work)
How are you inserting the video into the lesson? Have you tried all three?
I would also try a different theme, it may well be your theme interfering with the display.
To be clear, on a clean WordPress installation using the default “Twenty Twenty-Three” theme, Protected Videos display fine even within “WP Courses” lesson content. So it’s something else that you have in your environment which is causing this.
Forum: Plugins
In reply to: [Protected Video] Video not show wp course builder@philcowley did you disable other plugins to isolate the issue?
I just installed WP Courses in my test environment and created a course with a video inserted in one of the lessons, seems to work fine:
Can you try a) disabling other plugins and b) trying a different theme? In my testing Protected Videos inserted via the block method or Shortcode method work fine with WP Courses.
Forum: Plugins
In reply to: [Protected Video] Video not show wp course builderHi @philcowley thanks for reporting this.
It’s quite possible the WP Courses plugin is interfering with the loading of the player. Please see The display of the player is broken/it doesn’t work FAQ for details and debugging instructions.
As detailed there, can you disable other plugins and place the video on a non-WP Courses page to isolate the issue to WP Courses?
I don’t see a video trying to be loaded on the URL you provided, but feel free to create a page dedicated to this issue on that domain and provide the URL here.