Web Vuser Functions (WEB) > Alphabetical List of Web Vuser Functions > web_stream_get_param_double

web_stream_get_param_double

Returns the state of the stream.

C Language

double web_stream_get_param_double( const char *StreamID, const int StateType );

Example Stream Functions

Argument Description
StreamID The identifier passed to web_stream_open.
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_stream_get_param_double function returns the state of the open stream.

Example

This is an example of a the use of web_stream_get_param_double:

lr_output_message("Current time in movie:%lf", web_stream_get_param_double("2", CURRENT_TIME));
lr_output_message("How much time has been played : %lf",web_stream_get_param_double("2", DURATION));
web_stream_play("ID=2","Speed=1",LAST);
lr_output_message("Current time in movie:%lf", web_stream_get_param_double("2", CURRENT_TIME));
lr_output_message("How much time has been played : %lf",web_stream_get_param_double("2", DURATION));
web_stream_wait("ID=2","Duration=12",LAST);
lr_output_message("Current time in movie:%lf", web_stream_get_param_double("2", CURRENT_TIME));
lr_output_message("How much time has been played : %lf",web_stream_get_param_double("2", DURATION));