Engine management -
#define SPEED_PAUSE 0
#define SPEED_SLOW_4 1
#define SPEED_SLOW_2 2
#define SPEED_NORMAL 4
#define SPEED_FAST_2 8
#define SPEED_FAST_4 16
void xine_play (xine_t *self, char *MRL, int start_pos, int start_time)
Start to play a stream.
void xine_set_speed (xine_t *self, int speed)
Set playback speed.
int xine_get_speed (xine_t *self)
Get the playback speed.
void xine_set_av_offset (xine_t *self, int offset_pts)
Set audio/video sync.
int xine_get_av_offset (xine_t *self)
Get audio/video sync.
void xine_stop (xine_t *self)
Stop playing.
int xine_eject (xine_t *self)
Eject media.
int xine_get_status (xine_t *self)
Get current xine status.
int xine_get_current_position (xine_t *self)
Get current position.
int xine_get_current_time (xine_t *self)
get current pos in seconds.
int xine_get_stream_length (xine_t *self)
estimate length of input stream in seconds.
int xine_get_audio_channel (xine_t *self)
Get current audio channel.
void xine_select_audio_channel (xine_t *self, int channel)
Set audio channel.
int xine_get_spu_channel (xine_t *self)
Get current sub-title channel.
void xine_select_spu_channel (xine_t *self, int channel)
Set sub-title channel.
Playback at 200% speed.
See also: xine_set_speed(), xine_get_speed()
Playback at 400% speed.
See also: xine_set_speed(), xine_get_speed()
Playback at 100% speed.
See also: xine_set_speed(), xine_get_speed()
Playback pause.
See also: xine_set_speed(), xine_get_speed()
Playback at 50% speed.
See also: xine_set_speed(), xine_get_speed()
Playback at 25% speed.
See also: xine_set_speed(), xine_get_speed()
Eject media.
Parameters:
Returns: 1 on success, 0 on failure.
Tell current input plugin to eject media.
Parameters:
Get current audio channel.
Parameters:
Returns: Current audio chennel
Get current audio channel.
Parameters:
Get audio/video sync.
Parameters:
Returns: Current audio/video offset.
Return the current audio/video sync offset ( see xine_set_av_offset() ).
Parameters:
Get current position.
Parameters:
Returns: Current position ( 0..65535 )
Get current position in stream.
Parameters:
get current pos in seconds.
Parameters:
Returns: current position measured in seconds from the beginning of the stream
get current position measured in seconds from the beginning of the stream
Parameters:
Get the playback speed.
Parameters:
Returns: speed value ( see SPEED_PAUSE, SPEED_SLOW_4, SPEED_SLOW_2, SPEED_NORMAL, SPEED_FAST_2, SPEED_FAST_4 )
Get the current speed playback. Possible values are SPEED_PAUSE, SPEED_SLOW_4, SPEED_SLOW_2, SPEED_NORMAL, SPEED_FAST_2, SPEED_FAST_4.
Parameters:
Get current sub-title channel.
Parameters:
Returns: Current sub-title channel
Get current sub-title channel.
Parameters:
Get current xine status.
Parameters:
Returns: Current status ( see Player status constants )
Return the current state of xine engine.
Parameters:
estimate length of input stream in seconds.
Parameters:
Returns: length of input stream in seconds or 0 if stream is not seekable
estimate length of input stream in seconds
Parameters:
Start to play a stream.
Parameters:
Returns: Nothing
Open a stream and play it. If both start position parameters are !=0 start_pos will be used for non-seekable streams both values will be ignored
Parameters:
Set audio channel.
Parameters:
Returns: Nothing
Set desired audio channel.
Parameters:
Set sub-title channel.
Parameters:
Returns: Nothing
Set desired sub-title channel.
Parameters:
Set audio/video sync.
Parameters:
Returns: Nothing
Set audio/video sync offset, according to offset_pts value ( see xine_get_av_offset() ).
Parameters:
Set playback speed.
Parameters:
Returns: Nothing
Set the playback speed to desired speed, according of SPEED_x constant.
Parameters:
Stop playing.
Parameters:
Returns: Nothing
Stop the playback.
Parameters:
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |