<?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core"> <h:head> <title>Page JSF pour manipuler une vidéo YouTube</title> <h:outputScript name="js/apiYT4.js"/> </h:head> <h:body onload="init('#{beanVideo4.idVideo}');"> <h1>Page JSF pour saisir l'id d'une vidéo YouTube</h1> <f:view> <h:form id="form"> <div id="player"></div> <br/> <input type="button" id="jouerPauser" value="Voir la vidéo" onclick="playPauseVideo();"/> <br/> <input id="tempsChoisi" type="text" title="Moment de la vidéo où aller" size="5"/> <input type="button" value="Aller à ce moment" id="allerA" onclick="allerTempsChoisi();"/> <br/>Flèches haut et bas pour accélérer ou ralentir <br/> "=" pour la vitesse normale <br/> "M" pour marquer une position ; flèche gauche pour revenir à la marque </h:form> </f:view> </h:body> </html>