http://code.google.com/apis/ajax/playground/#chromeless_player
On Friday, September 21, 2012 9:14:07 AM UTC-6, Vico Dambeck wrote:
-- On Friday, September 21, 2012 9:14:07 AM UTC-6, Vico Dambeck wrote:
Hello,first of all, sorry for my bad english.I try very hard to find a function for the videotime.I will show the videotime, if the video load.I try first to get out, when video is over.Her is my code:<div id="player"></div><script src="http://www.youtube.com/player_api "></script><script>// create youtube playervar player;function onYouTubePlayerAPIReady() {player = new YT.Player('player', {height: '390',width: '640',videoId: '0Bmhjf0rKe8',events: {'onReady': onPlayerReady,'onStateChange': onPlayerStateChange}});}// autoplay videofunction onPlayerReady(event) {event.target.playVideo();}// when video endsfunction onPlayerStateChange(event) {if(event.data === 0) {var Status = 1;document.write('<?php echo "Yes, Video is finsih"; ?>');}}</script>
Starting October 15, 2012, this group will stop accepting new posts. We recommend that developers start using Stack Overflow and the Issue Tracker for YouTube API support. More details about this change and relevant links can be found at http://apiblog.youtube.com/2012/09/the-youtube-api-on-stack-overflow.html
No comments:
Post a Comment