Automatically play and restart YouTube video via <

2019-03-01 14:29发布

问题:

How to play a YouTube video automatically without clicking the button using <p:media>? And how to restart it automatically?

 <p:media value="#{myviewBean.youtubeURL}" 
       binding="#{myviewBean.youtubeMedia}" 
       width="420" 
       height="320" 
       player="flash"/>