Play/Pause Video
Seek Reverse
Seek Forward
Replay Video
Volume Down
Volume Up
Focus Video
function flashChecker(){
var hasFlash=0;
if(document.all){
var swf = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if(swf) {
hasFlash=1;
}
}else{
if(navigator.plugins && navigator.plugins.length > 0){
var swf=navigator.plugins["Shockwave Flash"];
if(swf){
hasFlash=1;
}
}
}
return {f:hasFlash};
}
var fls=flashChecker();
if(fls.f == 0){
document.getElementById('video_container').getElementsByTagName('a')[0].innerHTML = '若您尚未安裝flash,請您先進行安裝';
}
window.onload = function() {
// array of javascript objects representing the required media objects as described in the "Video Player JSAPI: Media Object" documentation
var _playlistContent = [
{ mediaId: "20572815",
title:'預告片中文版',
shareUrl: 'http://tw.movie.yahoo.com/movieinfo_trailer.html/id=2531&pid=2988',
thumbnailUrl:'http://d.yimg.com/hd/asiamedia/twmovies/55361076_12.jpg?a=asiamedia&c=47de332f41870c91c986c9d65832f626&g=0&mr=0&s=591ed1de1576b3b8c4ee9c75bc8bd53c'
}
];
// configuration object for initializing the player; supported properties are outlined in the "Video Player JSAPI: Player Configuration" documentation
var _playerConfig = {
playerUrl:'http://d.yimg.com/nl/movies-tw-hk/site-tw/player.swf',
width:'640',
height:'360',
lang:'zh-TW',
autoPlay:'1',
browseCarouselUI:'hide',
wmode:'opaque'
};
// configuration object for player event handling; supported events are outlined in the "Video Player JSAPI: Events" documentation
var _eventsConfig = {
onPlayerReady : function() {
for(var i=0,len=_playlistContent.length;i