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
<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