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.
$stream->master_slave( $slave_stream, $affection )
Sets up a master-slave relationship with $slave_stream. You can import the constants for
$affection with the ':master_slave_constants' tag. They are XINE_MASTER_SLAVE_PLAY, XINE_MASTER_SLAVE_STOP, and XINE_MASTER_SLAVE_SPEED.
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.
Eject the stream, if possible. Returns 1 if OK, 0 if error.
($pos_pct, $pos_time, $length_millis) = $stream->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_millis 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.
my $meta_info = $stream->get_meta_info($meta_info_const)
Returns meta-information about the stream, such as its title.
$meta_info_const should be a xine meta info constant; see META CONSTANTS below for details.
These constants are exported with the
Exported in the tag 'info_constants'.
Exported with the