How to refresh the youtube video iframe

Hi guys,

I want to refresh the youtube video iframe, If any possible?



Thanks,

Jothi

Hi Nave Jothi,

Can you explain a little bit better what you are trying to accomplish? Why do you need to refresh the YouTube video iframe? Also, what type of application are you developing?

Regards,

Nordin

Hi,

did you try use this forge component? (youtube player)

Otherwise, you should take this text:

"<iframe width=""560"" height=""315"" src='https://www.youtube.com/embed/SE_FnuD9zJc'  frameborder=""0"" allow=""accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"" allowfullscreen></iframe>"

and separate each part for the inputs of the widget.

You have another solution: copy all that code and add it inside an expression with the "Escape Content" set to "No". And place the expression in the place were you have the iframe widget at the moment


Cheers,
Miguel

Nordin Ahdi wrote:

Hi Nave Jothi,

Can you explain a little bit better what you are trying to accomplish? Why do you need to refresh the YouTube video iframe? Also, what type of application are you developing?

Regards,

Nordin

Hi,

I have to use the javascript for stop to play the multiple video in simultaneously, That script is not working when I upload the video through the url (Youtube URL).So I need to stop the video playing,So only i need to refresh the iframe

Hi,

Can you share an OML with your implementation?