Version 1, last updated by wycc at August 22, 2010 07:14 UTC

Create a new video shape

shape_t rdman_shape_video_new(redraw_man_t rdman, co_aix x, co_aix y, co_aix w, co_aix h);

Create a new shape which will display the video inside it.

Change the URL of the video

void sh_video_set_url(shape_t shape, const char url);

The video will enter the stop state after this call. We need to call sh_video_play to start the playing.

Set the video to enter the playback mode

void sh_video_play(shape_t *);

Pause the video

void sh_video_pause(shape_t *);

Stop the video

void sh_video_stop(shape_t *);

The shape will become black after this call.

Enter the fast forward mode

void sh_video_fast_forward(shape_t *shape, int speed);

Enter the fast backward mode

void sh_video_fast_backward(shape_t *shape, int speed);

Jump to the specified position of the video

void sh_video_goto(shape_t *shape, mb_time_t time);

Get the duration of the video.

mb_time_t sh_video_now(shape_t *shape);

It can be MB_TIME_NA if the duration is not available.

Get the metadat of the video

mb_time_t sh_video_duration(shape_t *);

Get the meta data of the video

conat char sh_video_get_meta(shape_t shape, const char *tag);