日期:2014-05-17  浏览次数:20880 次

页面初始化时视频显示的是画面A,在使用者点击视频播放完之后,画面自动切换到画面A,请问怎么做??? EndOfStream:(流结束时触发) ,有用吗??
我有一个网页,中间是视频播放,四周是供用户选择的点击频道,内容都不同,
我想做的事是在页面初始化时视频显示的是画面A,在使用者点击视频播放完之后,画面自动切换到画面A,而不是显示用户点击的视频初始画面.请问怎么做???


现在的问题流程如下:

画面初始化       页面视频显示A;
用户点击播放频道B,页面视频就播放频道B的内容,
当频道B播放完之后,页面视频画面就会出现频道B结束时的画面;

问题:   我想让频道B结束时的画面是A??    


请问该怎么做?


我查了很多资料.查到一个函数       EndOfStream:流结束时触发;    

但我不知道改怎么用,请大吓,简单的说一下,     EndOfStream     对这个有没有帮助,

如果有,那我应该放在那里,该怎么用呢???


如果没有,那我该怎么样去实现我想实现的功能呢???


------解决方案--------------------
which ActiveX are you using?
------解决方案--------------------
So easy..

去看人家音乐网站上做连播的JavaScript就明白了。
------解决方案--------------------
function showTLab(){
if(mplay.playState == 1) Next_OneOK();
setTimeout( "showTLab() ", 1000);
}

每秒检测播放器状态
------解决方案--------------------
1.avi格式
代码片断如下:
<object id= "video " width= "400 " height= "200 " border= "0 " classid= "clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA ">
<param name= "ShowDisplay " value= "0 ">
<param name= "ShowControls " value= "1 ">
<param name= "AutoStart " value= "1 ">
<param name= "AutoRewind " value= "0 ">
<param name= "PlayCount " value= "0 ">
<param name= "Appearance value= "0 value= " " ">
<param name= "BorderStyle value= "0 value= " " ">
<param name= "MovieWindowHeight " value= "240 ">
<param name= "MovieWindowWidth " value= "320 ">
<param name= "FileName " value= "/Mbar.avi ">
<embed width= "400 " height= "200 " border= "0 " showdisplay= "0 " showcontrols= "1 " autostart= "1 " autorewind= "0 " playcount= "0 " moviewindowheight= "240 " moviewindowwidth= "320 " filename= "/Mbar.avi " src= "Mbar.avi ">
</embed>
</object>
2.mpg格式
代码片断如下:
<object classid= "clsid:05589FA1-C356-11CE-BF01-00AA0055595A " id= "ActiveMovie1 " width= "239 " height= "250 ">
<param name= "Appearance " value= "0 ">
<param name= "AutoStart " value= "-1 ">
<param name= "AllowChangeDisplayMode " value= "-1 ">
<param name= "AllowHideDisplay " value= "0 ">
<param name= "AllowHideControls " value= "-1 ">
<param name= "AutoRewind " value= "-1 ">
<param name= "Balance " value= "0 ">
<param name= "CurrentPosition " value= "0 ">
<param name= "DisplayBackColor " value= "0 ">
<param name= "DisplayForeColor " value= "16777215 ">
<param name= "DisplayMode " value= "0 ">
<param name= "Enabled " value= "-1 ">
<param name= "EnableContextMenu " value= "-1 ">
<param name= "EnablePositionControls " value= "-1 ">