web.streamGetParamDouble

Returns the state of the stream.

ExampleStream Functions

Syntax

web.streamGetParamDouble( streamID, stateType );

Property Name Description
streamIDThe 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));