Copyright © 2005-2018 MultiMedia Soft

InternetSettingsSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies Internet related settings that will affect the loading of Internet stream through the LoadInternetStream method. Current settings can be obtained through the InternetSettingsGet method.

 

For further details about Internet streams support see the How to play Internet streams and radio stations section.

 

 

Syntax

 

[Visual Basic]

Public Function InternetSettingsSet (

nSetting as enumInternetSetting,

nSettingValue as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes InternetSettingsSet (

enumInternetSetting nSetting,

Int32 nSettingValue

);


 

[C++]

public: enumErrorCodes InternetSettingsSet (

enumInternetSetting nDriverType,

Int32 nSettingValue

);


 

 

Parameter

Description

 

 

nSetting

Setting whose value must be retrieved.

Supported values are the following:

Mnemonic constant

Value

Meaning

INET_SETTING_BUFFER_LENGTH

0

Length of the download buffer expressed in milliseconds.

The default buffer length is 5000 milliseconds (5 seconds). The buffer length should be larger than the length of the playback buffer stored inside the BufferLength property, otherwise the stream is likely to stall soon after starting playback.

INET_SETTING_CONNECT_TIMEOUT

1

The time to wait for a connection expressed in milliseconds.

The default timeout is 5000 milliseconds (5 seconds).

INET_SETTING_READ_TIMEOUT

2

The time to wait for a server to deliver more data for an internet stream expressed in milliseconds.

The default timeout is 0, meaning that there is no timeout.

INET_SETTING_PREBUFF_PERC

3

Amount to pre-buffer when opening internet streams expressed in percentage.

The default value is 75%.

INET_SETTING_PREBUFF_PLAYBACK_PERC

4

Amount of pre-buffer before allowing playback of the Internet stream expressed in percentage.

The default value is 90%.

INET_SETTING_FTP_PASSIVE_MODE

5

Use of passive mode in FTP connections: if set to 1 passive mode is enabled, if set to 0 passive mode is disabled.

By default passive mode is enabled.

nSettingValue

The new value of the setting.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful