[YouTubeReactive] please add
Question
Forge component by G. Andrew Duthie

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

mvp_badge
MVP
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

mvp_badge
MVP

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. 


mvp_badge
MVP
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

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.