summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-09-01 14:32:59 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-09-01 14:32:59 +0000
commitcb89cd1650cac95646c1bea3cf14dea893460105 (patch)
tree71f542c2a38c3d10b69f85ce2361cf9272de1961 /include
parent1348f27fcf56857713eeb2ee7cf8e20dde98e3be (diff)
downloadxine-lib-cb89cd1650cac95646c1bea3cf14dea893460105.tar.gz
xine-lib-cb89cd1650cac95646c1bea3cf14dea893460105.tar.bz2
big demuxer clean, demux_ts should work again.
implemented time based seeking / stream length detection, implemented in demux_avi.c demux_mpeg_block.c demux_mpeg.c xine-engine cleanup, xine_seek is gone, use xine_play instead. xine_pause is gone, use xine_set/get_speed instead. CVS patchset: 536 CVS date: 2001/09/01 14:32:59
Diffstat (limited to 'include')
-rw-r--r--include/xine.h.tmpl.in60
1 files changed, 27 insertions, 33 deletions
diff --git a/include/xine.h.tmpl.in b/include/xine.h.tmpl.in
index a009b9c89..5a3e66326 100644
--- a/include/xine.h.tmpl.in
+++ b/include/xine.h.tmpl.in
@@ -28,7 +28,7 @@
\endverbatim
*/
/*
- * $Id: xine.h.tmpl.in,v 1.39 2001/08/28 22:52:57 f1rmb Exp $
+ * $Id: xine.h.tmpl.in,v 1.40 2001/09/01 14:32:59 guenter Exp $
*
*/
@@ -106,12 +106,6 @@ extern "C" {
* \sa xine_get_status()
*/
#define XINE_QUIT 2
-/**
- * \def XINE_PAUSE
- * Pause status.
- * \sa xine_get_status()
- */
-#define XINE_PAUSE 3
/** @} end of status_group */
@@ -604,36 +598,16 @@ void xine_exit (xine_t *self);
* \brief Start to play a stream
* \param self Current xine engine configuration ( #see xine_init() )
* \param MRL Media Resource Location to open
- * \param pos Start from position (0..65535)
- * \return Nothing
- *
- * Open a stream and play it
- *
- */
-void xine_play (xine_t *self, char *MRL, int pos);
-
-/**
- * \fn void xine_seek (xine_t *self, char *MRL, int pos)
- * \brief Seek a stream to pos
- * \param self Current xine engine configuration ( #see xine_init() )
- * \param MRL Media Resource Location to open
- * \param pos Start from position (0..65535)
+ * \param start_pos position in input source (0..65535)
+ * \param start_time position measured in seconds from stream start
* \return Nothing
*
- * Seek (already opened) stream and play it.
+ * 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
*
*/
-void xine_seek (xine_t *self, char *MRL, int pos);
-
-/**
- * \fn void xine_pause (xine_t *self)
- * \brief Pause toggle
- * \param self Current xine engine configuration ( #see xine_init() )
- * \return Nothing
- *
- * Toggle pause mode.
- */
-void xine_pause (xine_t *self);
+void xine_play (xine_t *self, char *MRL, int start_pos, int start_time);
/*
* set playback speed
@@ -699,6 +673,26 @@ int xine_get_status (xine_t *self);
int xine_get_current_position (xine_t *self);
/**
+ * \fn int xine_get_current_time (xine_t *self)
+ * \brief get current pos in seconds
+ * \param self Current xine engine configuration ( #see xine_init() )
+ * \return current position measured in seconds from the beginning of the stream
+ *
+ * get current position measured in seconds from the beginning of the stream
+ */
+int xine_get_current_time (xine_t *self);
+
+/**
+ * \fn int xine_get_stream_length (xine_t *self);
+ * \brief estimate length of input stream in seconds
+ * \param self Current xine engine configuration ( #see xine_init() )
+ * \return length of input stream in seconds or 0 if stream is not seekable
+ *
+ * estimate length of input stream in seconds
+ */
+int xine_get_stream_length (xine_t *self);
+
+/**
* \fn int xine_get_audio_channel (xine_t *self)
* \brief Get current audio channel
* \param self Current xine engine configuration ( #see xine_init() )