Partager via


OpenState

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This property contains the state of the content source. This property is read-only.

Compatibility: Windows Media Player

Syntax

[ lState = ] MediaPlayer.OpenState

Parameters

  • lState
    Long value indicating the state of the content source. The following table shows the possible values.

    Value Visual Basic constant Description

    0

    nsClosed

    Content file is closed.

    1

    nsLoadingASX

    Loading an Advanced Stream Redirector (ASX) file.

    2

    nsLoadingNSC

    Loading an .nsc station file.

    3

    nsLocating

    Locating the server.

    4

    nsConnecting

    Connecting to the server.

    5

    nsOpening

    Opening or listening for the stream.

    6

    nsOpen

    Content file is open.

Remarks

Retrieve this property to determine the status of a request to open a clip.

If the value of the SendOpenStateChangeEvents property is true, Windows Media Player control fires an OpenStateChange event each time the OpenState property changes.

Requirements

Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Windows Media Player Properties
OpenStateChange
SendOpenStateChangeEvents

Concepts

Compatibility Modes
Monitoring Stream Status and Network Reception