|
1楼
大 中
小 发表于 2007-4-11 18:23
视频-鲍春来状态恢复中 训练场上怎一个帅字了得
var bnTxtPlayer = new sina.Player("bnTxtPlayer");
bnTxtPlayer.wSize = new Array(
"400|300", //默认视频尺寸:宽|高
"500|400|zoomBtn1", //第一种放大后的视频:宽|高|放大按钮的id
"600|500|zoomBtn2" //第二种...
);
bnTxtPlayer.id = "myplayer";
bnTxtPlayer.skinPath = "http://image2.sina.com.cn/cctv/bn/2007/0212/wmplayer/skin/clarity/";
bnTxtPlayer.playerNodeId = "wmplayer"; //播放器容器ID
bnTxtPlayer.videoNodeId = "videoDisplay"; //放置视频的容器的ID
bnTxtPlayer.playerAdId = "playerAd"; //播放前广告容器的id
bnTxtPlayer.ctrZoneId = "controlPanel"; //控制区域 获得此对象目的在NS下隐藏它
bnTxtPlayer.pZoneId = "pZone"; //进度区域的ID
bnTxtPlayer.pBoxId = "pBox"; //进度控制钮的ID
bnTxtPlayer.vZoneId = "vZone"; //声音区域的ID
bnTxtPlayer.vBoxId = "vBox"; //声音滑块的ID
bnTxtPlayer.playBtnId = "playBtn"; //播放按钮的ID
bnTxtPlayer.stopBtnId = "stopBtn"; //停止按钮的ID
bnTxtPlayer.muteBtnId = "muteBtn"; //静音按钮的ID
bnTxtPlayer.fullScreenBtnId = "screenFBtn"; //全屏按钮的ID
bnTxtPlayer.bOrNBtnId = "bornBtn"; //宽窄频单一button
bnTxtPlayer.bFile = ""; //默认宽带文件
bnTxtPlayer.nFile = ""; //默认窄带文件
bnTxtPlayer.adPath = ""; //默认的缓冲path
bnTxtPlayer.autoStart = true; //是否自动播放 boolean
bnTxtPlayer.showStatusBar = true; //是否允许显示状态信息 boolean
bnTxtPlayer.netModel = 1; //当前网络连接模式 Number 0:窄频 1:宽频
bnTxtPlayer.Init();
/* 点播
* void Play(String bFile,String nFile,String adPath)
* bFile :当前宽频文件
* nFile :当前窄频文件
* adurl : 可选 当前视频的缓冲广告path
*/
//bnTxtPlayer.Play("b.wmv","n.wmv");
//
bnTxtPlayer.OpenStateChange(NewState);
bnTxtPlayer.PlayStateChange(NewState);
#@~^/AEAAA==@#@
|