Share this page

# web.streamGetParamInt

Returns the state of the stream.

Example | Stream Functions

## Syntax

`web.streamGetParamInt( streamID, stateType );`

Argument | Description
--- | ---
streamID | The identifier passed to web.streamOpen.
stateType | Either 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 enum | Value
--- | ---
STREAM_STATUS_INIT | 0
STREAM_STATUS_START | 1
STREAM_STATUS_RELOAD | 2
STREAM_STATUS_BUFFERING | 3
STREAM_STATUS_CLOSE | 4
STREAM_STATUS_PLAY | 5
STREAM_STATUS_PAUSE | 6
STREAM_STATUS_SEEK | 7
STREAM_STATUS_STOP | 8
STREAM_STATUS_FAIL | 9

## Parameterization

Standard parameterization is not available for this function.

## General Information

The web.streamGetParamInt 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 use of web.streamGetParamInt:

Copy code

    int currentState, bytesRcved;
    currentState = web.streamGetParamInt("1",CURRENT_STATE);
    bytesRcved   = web.streamGetParamInt("1",BYTES_RECEIVED);

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: