Home>Support>Video inside Form Field Builder

Video inside Form Field Builder

By Marcel7M17, 5 years ago. Last reply by Alex S, 5 years ago.

Hello I’m currently writing a custom widget with a builder as form field. The problem I currently have is that the scripts from the video component (mediaelement) aren’t correctly loaded so the mediaelement controls are not displayed.

Here is the code: https://pastebin.com/hWMTLJ8y
And here the template: https://pastebin.com/AcQgZMCB

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 22 days ago Alex S
    Hi, I Work Here

    Hi Marcel,

    I’ve run a few tests and unfortunately, I can’t seem to replicate this issue with the provided code. Can you please link me to a page where I can see this issue occur?

    Please note that your widgets render_template method isn’t compatible with the render_template method used by SiteOrigin_Widget_Base_Slider class. This is resulting in the following error:

    Declaration of Custom_SOW_Accordion::render_template($controls, $i, $frame) should be compatible with SiteOrigin_Widget_Base_Slider::render_template($controls, $frames)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More