• Resolved redwiper

    (@redwiper)


    Hi. It is strange behavior,on posts plugin work but on pages dont work.I use acf fields exactly the same fields for shortcode.I also tested and made new acf fields with vysiwyg editor for shortcode but didnt work again.Then i create new page and put shortocde in default page wysiwig and did work. Do you maybe now why dont work for pages in acf wysiwig? I also deactivate other plugins but no conflcit. This is the output https://prnt.sc/zusn2yLlaQIx

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Alec Rust

    (@alecrust)

    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.

    Plugin Author Alec Rust

    (@alecrust)

    @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.

    Plugin Author Alec Rust

    (@alecrust)

    @redwiper can you let me know if the latest version fixed your issue?

    Thread Starter redwiper

    (@redwiper)

    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?

    Plugin Author Alec Rust

    (@alecrust)

    @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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Empty div no iframe’ is closed to new replies.