Share via


Windows Media Player 11 SDK Network.setProxyPort 

Windows Media Player SDK banner art

Previous Next

Network.setProxyPort

The setProxyPort method specifies the proxy port to use.

Syntax

  

Parameters

protocol

String specifying the protocol name. For a list of supported protocols, see Supported Protocols and File Types.

port

Number (long) specifying the proxy port to use.

Return Values

This method does not return a value.

Remarks

This method has no effect unless getProxySettings returns a value of 2 (use manual settings).

This method fails unless the calling application is running on the local computer or intranet.

Windows Media Player 10 Mobile: This method is not supported.

Example Code

The following JScript example uses Network.setProxyPort to specify the Windows Media Player proxy port number for the MMS protocol. The port number is retrieved from an HTML INPUT element with ID = "PORT". The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next