Do you have any news about this issue ?
Can use quickTime control try ...
<html>
<head>
<title>QuickTimeTest</title>
<script>
var player = null;
function init() {
player = new QuickTime(document.quickTimePlayer);
}
function QuickTime(player){
this.player = player || null;
}
QuickTime.prototype.playVideo = function() {
if(this.player)
this.player.Play();
}
QuickTime.prototype.pauseVideo = function() {
if(this.player)
this.player.Stop();
}
QuickTime.prototype.stopVideo = function() {
if(this.player) {
this.player.Stop();
this.player.Rewind();
}
}
QuickTime.prototype.getStatus = function(){
if(this.player) {
var status = this.player.GetPluginStatus();
switch(status){
case 'Waiting':
case 'Loading':
status = 'loading';
break;
case 'Playable':
case 'Complete':
status = 'ready';
break;
default:
status = 'error';
}
return status;
}
}
</script>
</head>
<body>
<object id="quickTimePlayer" classid="clsid:02BF25D5-8C17-4B23-BC80-
D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"
width="320" height="260">
<EMBED name="quickTimePlayer"
height="260"
width="320"
scale="tofit" src="http://mirrors.creativecommons.org/
movingimages/Building_On_The_Past.mov"
type="video/quicktime"
pluginspage="www.apple.com/quicktime/download"
controller="false"
autoplay="false"
/>
</object>
<div id="controls">
<form name="theform" action="#">
<input type="button" name="play" value="Play"
onclick="player.playVideo();" />
<input type="button" name="pause" value="Pause"
onclick="player.pauseVideo();" />
<input type="button" name="stop" value="Stop"
onclick="player.stopVideo();" />
</form>
</div>
<script type="text/javascript" charset="utf-8">
init();
</script>
</body>
</html>
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment