StateChange

This event indicates that the Player state changed, such as from running to stopped.

Compatibility: ActiveMovie

Private Sub object_StateChange(
  ByVal oldState As Long,
  ByVal newState As Long
)

Parameters

  • object
    Object expression that evaluates to an ActiveMovie Control.
  • oldState
    Previous state, before the change occurred.
  • newState
    Current state, after the change occurred.

Remarks

The ActiveMovie Control raises the StateChange event when the Player state changes, such as from stopped to running. The current Player state appears in the CurrentState property. You can find the Player state flags in the CurrentState property documentation.

Settings

Following are possible settings for the oldState or newState parameters.

Setting Value Description
amvStopped 0 The Player is stopped.
amvPaused 1 The Player is paused.
amvRunning 2 The Player is playing the multimedia file.

Requirements

OS Versions: Windows CE 3.0 to Windows CE .NET 4.1.

See Also

Windows Media Player Events | Compatibility Modes

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.