Share via


Windows Media Player 11 SDK Network.setProxyName 

Windows Media Player SDK banner art

Previous Next

Network.setProxyName

The setProxyName method specifies the name of the proxy server to use.

Syntax

  

Parameters

protocol

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

name

String specifying the name of the proxy server 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.setProxyName to specify the name of the Windows Media Player proxy server for the MMS protocol. The new name is retrieved from an HTML TEXT element with ID = "NAME". 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