Video::Xine::Stream - Audio-video stream for Xine
use Video::Xine; use Video::Xine::Stream; my $stream = Video::Xine::Stream->new($xine, $audio, $video); $stream->open('file://foo/bar');
These are methods which can be used on the Video::Xine::Stream class and object.
new($xine, $audio_port, $video_port)
Creates a new Stream object. The
$video_port options are optional and default to automatically-selected drivers.
Returns the video port, also known as the video driver.
Opens the stream to an MRL, which is a URL-like construction used by Xine to locate media files. See the xine documentation for details.
Starts playing the stream at a specific position or specific time. Both
$start_time are optional and default to 0.
Stops the stream.
Close the stream. You can re-use the same stream again and again.
($pos_pct, $pos_time, $length_time) = $s->get_pos_length();
Gets position / length information.
$pos_pct is a value between 1 and 65535 indicating how far we've proceeded through the stream.
$pos_time gives how far we've proceeded through the stream in milliseconds, and
$length_time gives the total length of the stream in milliseconds.
Returns the play status of the stream. It will return one of the following constants, which are exported in the tag ':status_constants':
The stream is idle.
Indicates that the stream is stopped.
Indicates that the stream is playing.
Sets a parameter on the stream.
$param should be a xine parameter constant. See "PARAMETER CONSTANTS" for a list of available parameter constants.
my $param = $s->get_param($param)
Returns a parameter from the stream.
$param should be a xine parameter constant.
my $info = $s->get_info($info_const)
Returns information about the stream, such as its bit rate, audio channels, width, or height.
$info_const should be a xine info constant.
These constants are exported with the
Exported in the tag 'info_constants'.
Exported in meta_constants.