- video ->initialise: source=[file
|name]* - Create to play a file or URL. The video is opened when needed. Without a
source, the video plays the encoded data written to it.
- video ->append: data=char_array
- Add encoded data to a video without video
<-source.
The bytes are the characters of data, which must be in the range 0..255.
- video ->write_as_file: at=[int],
data=char_array
- As video
->append.
This allows writing to the video using pce_open/3.
- video ->truncate_as_file:
- Discard the data written so far and start again. Sent by pce_open/3
in mode
write.
- video ->close_as_file:
- The data has ended. Sent when the stream of pce_open/3
is closed.
- video ->open:
- Open the video and show the first frame. Fails, after printing an error,
if the source cannot be opened or decoded.
- video ->close:
- Close the video, freeing its resources.
- video ->play:
- Start or continue playing. A video that has finished starts again from
the beginning.
- video ->pause:
- Stop playing at the current position.
- video ->stop:
- Stop playing and go back to the start.
- video ->position: seconds=num
- Go to a time in the video. The frame shown at that time appears in
video
<-texture,
also if the video is paused.
- video ->volume:
- 0
.0..1.0 Set the
gain of the sound.
- video ->option: name=name,
value=char_array
|int - Set an option for opening the source. The options are passed to the
backend when the video is opened. With ffmpeg these are the options of
its protocols and formats, e
.g., rtsp_transport tcp
for an IP camera, reconnect 1 for HTTP or rw_timeout
in microseconds.