<OBJECT ID=player CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"   WIDTH=320 HEIGHT=240><PARAM NAME="SRC" VALUE="http://djmusic.hahadj.com/dj00/zw/51/16.rm"><param name=CONTROLS vlaue=all></OBJECT>
<script for=player event=OnPlayStateChange(newstate)>if(newstate == 0)location.href="qidizi.html";</script>
OnPlayStateChange 
Sent when the play state of the presentation in RealPlayer changes. OnPlayStateChange(int32 old_state, int32 new_state)  Warning! When programming an ActiveX control, the old_state parameter is not available. The proper syntax is:
OnPlayStateChange(int32 new_state). If your ActiveX application requires both the old_state and new_state parameters, use the OnStateChange callback instead.  
old_state 
The previous play state. new_state 
The current play state.The following table lists the possible values for the old_state and new_state parameters: 
Parameter Values for the Possible Play States  Parameter Value Play State 
0 Stopped 
1 Contacting 
2 Buffering 
3 Playing 
4 Seeking 
Returns void

解决方案 »

  1.   

    还有不明白,OnPlayStateChange()怎么启用呢
      

  2.   

    帮定状态改变事件到PLAYRE对象,当它的状态改变时就触发此事件,并得到可一个新的状态和旧的状态的值,此时检查此值是不是为0,就可以了,你在我上面的运行下,然后按下停止或自动时就会触发此事件转到到新的页面
    <script for=player event=OnPlayStateChange(newstate)>if(newstate == 0)location.href="qidizi.html";</script>
      

  3.   

    newstate这个值是哪里来的呢,我将你的代码运行了,没有反应,是不是还要做什么呢
      

  4.   

    哈,在real.com上找到了在线参考文档,哈哈...
      

  5.   

    http://www.realnetworks.com/resources/howto/embedded/index.html
      

  6.   

    找了一个好象没有一个ONEND()似的事件,
    你只能自己加入是自动停止或是按了按钮的,这很容易,