web_stream_get_param_int

Return the state of the stream.

C Language

int web_stream_get_param_int( const char *StreamID, const int StateType );

ExampleStream Functions

Argument Description
StreamIDThe identifier passed to web_stream_open.
StateTypeEither CURRENT_STATE or BYTES_RECEIVED.

Return Values

On failure, returns -1.

If StateType is BYTES_RECEIVED, returns the number of bytes.

If StateType is CURRENT_STATE, returns one of the following:

Status enumValue
STREAM_STATUS_INIT0
STREAM_STATUS_START1
STREAM_STATUS_RELOAD2
STREAM_STATUS_BUFFERING3
STREAM_STATUS_CLOSE4
STREAM_STATUS_PLAY5
STREAM_STATUS_PAUSE6
STREAM_STATUS_SEEK7
STREAM_STATUS_STOP8
STREAM_STATUS_FAIL 9

Parameterization

Standard parameterization is not available for this function.

General Information

The web_stream_get_param_int function returns the state of the open stream.

This function is not recorded. You can insert it manually into your script.

Example

This is an example of a the use of web_stream_get_param_int:

int currentState, bytesRcved;

currentState = web_stream_get_param_int("1",CURRENT_STATE);
bytesRcved   = web_stream_get_param_int("1",BYTES_RECEIVED);