Share this page

# web.streamGetParamDouble

Returns the state of the stream.

Example | Stream Functions

## Syntax

`web.streamGetParamDouble( streamID, stateType );`

Property Name | Description
--- | ---
streamID | The identifier passed to web.streamOpen.
stateType | One of the following enum values: CURRENT_TIME (2) CURRENT_BUFFERING_TIME (3) TOTAL_BUFFERING_TIME (4) BUFFERED_TIME (5) DURATION (6)

## Return Values

Returns the value of the specified parameter.

On failure, returns an integer less than 0.

## Parameterization

Standard parameterization is not available for this function.

## General Information

The web.streamGetParamDouble function returns the state of the open stream.

## Example

This is an example of a use of web.streamGetParamDouble:

Copy code

    lr.outputMessage("Current time in movie:%lf", web.streamGetParamDouble("2", CURRENT_TIME));lr.outputMessage("How much time has been played : %lf",web.streamGetParamDouble("2", DURATION));
    web.streamPlay("ID=2","Speed=1",LAST);
    lr.outputMessage("Current time in movie:%lf", web.streamGetParamDouble("2", CURRENT_TIME));
    lr.outputMessage("How much time has been played : %lf",web.streamGetParamDouble("2", DURATION));
    web.streamWait("ID=2","Duration=12",LAST);
    lr.outputMessage("Current time in movie:%lf", web.streamGetParamDouble("2", CURRENT_TIME));
    lr.outputMessage("How much time has been played : %lf",web.streamGetParamDouble("2", DURATION));

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