Windows Media Player 11 SDK Network.setProxySettingsÂ
Previous | Next |
Network.setProxySettings
The setProxySettings method specifies the proxy setting for a given protocol.
Syntax
Parameters
protocol
String specifying the protocol name. For a list of supported protocols, see Supported Protocols and File Types.
setting
Number (long) containing one of the following values.
Value | Description |
0 | Do not use a proxy server. |
1 | Use the proxy settings of the current browser (only valid for HTTP). |
2 | Use the manually specified proxy settings. |
3 | Auto-detect the proxy settings. |
Return Values
This method does not return a value.
Remarks
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 example uses JScript with an HTML SELECT element to allow the user to specify the Windows Media Player proxy setting for the HTTP protocol. 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 |