IWMPNetwork (VB and C#) interface
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
Provides properties and methods to access statistics relating to the quality of a network connection, and to specify and retrieve the network proxy settings.
The IWMPNetwork interface exposes the following properties.
Members
The IWMPNetwork (VB and C#) interface has these types of members:
Methods
The IWMPNetwork (VB and C#) interface has these methods.
Method | Description |
---|---|
getProxyBypassForLocal | Returns a value indicating whether the proxy server is bypassed if the origin server is on a local network. |
getProxyExceptionList | Returns the proxy exception list. |
getProxyName | Returns the name of the proxy server being used. |
getProxyPort | Returns the proxy port being used. |
getProxySettings | Returns information about the proxy settings for a protocol. |
setProxyBypassForLocal | Specifies whether the proxy server is bypassed if the origin server is on a local network. |
setProxyExceptionList | Specifies the proxy exception list. |
setProxyName | Specifies the name of the proxy server to use. |
setProxyPort | Specifies the proxy port to use. |
setProxySettings | Specifies the proxy settings for a protocol. |
Properties
The IWMPNetwork (VB and C#) interface has these properties.
Property | Access type | Description |
---|---|---|
bandWidth |
Read-only |
Gets the current bandwidth of the media item. |
bitRate |
Read-only |
Gets the current bit rate being received. |
bufferingCount |
Read-only |
Gets the number of times buffering occurred during playback. |
bufferingProgress |
Read-only |
Gets the percentage of buffering completed. |
bufferingTime |
Read/write |
Gets or sets the amount of buffering time in milliseconds before playback begins. |
downloadProgress |
Read-only |
Gets the percentage of downloading completed. |
encodedFrameRate |
Read-only |
Gets the video frame rate specified by the content author. |
frameRate |
Read-only |
Gets the current video frame rate. |
framesSkipped |
Read-only |
Gets the total number of frames skipped during playback. |
lostPackets |
Read-only |
Gets the number of packets lost. |
maxBandwidth |
Read/write |
Gets or sets the maximum allowed bandwidth. |
maxBitRate |
Read-only |
Gets the maximum possible video bit rate. |
receivedPackets |
Read-only |
Gets the number of packets received. |
receptionQuality |
Read-only |
Gets the percentage of packets not lost in the last 30 seconds. |
recoveredPackets |
Read-only |
Gets the number of recovered packets. |
sourceProtocol |
Read-only |
Gets the source protocol used to receive data. |
Get an IWMPNetwork interface by using the following property.
Object | Property |
---|---|
AxWindowsMediaPlayer Object | network |
Requirements
Requirement | Value |
---|---|
Header |
|