问题
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"/>
来源:https://stackoverflow.com/questions/31929216/automatically-play-and-restart-youtube-video-via-pmedia