web.streamGetParamDouble
Returns the state of the stream.
Example | Stream Functions |
Syntax
Property Name | Description |
---|---|
streamID | The identifier passed to web.streamOpen. |
stateType | One of the following enum values:
|
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:
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));