Thanks for reporting this issue @redwiper.
For performance reasons Protected Video tries to only load its associated assets (JS and CSS files) when it detects that a Protected Video Gutenberg block, or Shortcode, is used in a post/page.
In the case of Advanced Custom Fields, the HTML it’s outputting to the page looks correct to me – the issue is that this “detection” is failing so the JS and CSS is not being loaded.
I’m not very familiar with ACF, but I see it’s free to install. Can you walk me through how you created the player within ACF, so I can reproduce this locally? I may then be able to add some code to Protected Video to cover this case.
Another option, might be for me to add an option to Protected Video plugin settings to “Force asset loading”. When enabled this would always load the necessary JS/CSS on every page, regardless of whether a Protected Video player was detected on the page.
@redwiper I’ve released a new version of the plugin 1.10.7 which should load the necessary JS/CSS on “custom page template” pages which ACF seems to use.
Please can you update to this version of the plugin and let me know if this resolves your issue of the player not loading?
Please note that the player is not designed to load in the admin area, only the user-facing pages.
@redwiper can you let me know if the latest version fixed your issue?
Hi sorry for delay. Yes, thank you. Video is now visible in acf field on any page.Just want to ask is it now possible to manipulate with this with js…for example i want to add autoplay nad stop video on scroll and play again when scroll up,that kind od things?
@redwiper thanks for confirming the latest version fixed your issue.
Regarding “manipulating with JS” my plugin just loads a Plyr player into your page. From there you can do what you like based on the capabilities of Plyr, this events documentation might be useful.