Copyright © 2001-2019 MultiMedia Soft

InternetSettingsGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains Internet related settings that will affect the loading of Internet stream through the LoadInternetStream method. Current settings can be modified through the InternetSettingsSet method.

 

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

 

 

Syntax

 

[Visual Basic]

control.InternetSettingsGet (

nSetting as enumInternetSetting,

nSettingValue as Long

) as enumErrorCodes


 

[C++]

short control.InternetSettingsGet (

short nDriverType,

long *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

INET_SETTING_CONNECT_TIMEOUT

1

The time to wait for a connection expressed in milliseconds

INET_SETTING_READ_TIMEOUT

2

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

INET_SETTING_PREBUFF_PERC

3

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

INET_SETTING_PREBUFF_PLAYBACK_PERC

4

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

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.

nSettingValue

Reference that, on return from the method call, will contain the 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