This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Video inside Form Field Builder

Open 1 reply developergeneral
6 years ago · Last reply by Alex S 6 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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 6 years, 6 months ago

    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.

Have a different question or issue?

Start New Thread