[YouTubeReactive] please add

Forge Component
(0)
Published on 18 Jun by Daniël Kuhlmann
0 votes
Published on 18 Jun by Daniël Kuhlmann

please add the following from the traditional web youtube player:

- ability to turn off controls

- ability to turn on auto play

- if just have width input then set height to use youtube standard 16:9 aspect ratio

Hi Jason,

I was already busy with the first two of your requests, testing it a bit more. Expect a new version to be available in a few days. I look into the standard ratio also then.

Regards,

Daniel

Daniël Kuhlmann wrote:

Hi Jason,

I was already busy with the first two of your requests, testing it a bit more. Expect a new version to be available in a few days. I look into the standard ratio also then.

Regards,

Daniel

Daniel, 

Cool beans!  G. Andrew asked me to post them to the forge item for reference. 


Solution

Hi Jason,

First my apology; it took a few days longer before I could allocate some time to work on the improvements of this component.

But I am glad to inform you that the following features are added in the latest release of the component:

You can set the following advanced configuration options:

  • setMuted: if true the video will start muted (default = false)
  • setLoop: If true video will restart automatically when ended (default = false)
  • showControls: if false video controls is hidden (default = true)
  • showFullScreen: if false fullscreen icon is hidden (default = true)

If only width is set, height is automatically calculated using 16:9 ratio.

The Autoplay feature is unfortunately not part of this version.
There are some limitations that browsers can impose on this function.
I will need some more time figuring out how to ensure Autoplay will always work if I would implement it.

Regards,

Daniel

Solution

Thanks, Daniël, for your work on these features. Appreciate the collaboration!