Revision ff1ec0c3 libavformat/avio.h

View differences:

libavformat/avio.h
617 617
 */
618 618
const char *avio_enum_protocols(void **opaque, int output);
619 619

  
620
/**
621
 * Pause and resume playing - only meaningful if using a network streaming
622
 * protocol (e.g. MMS).
623
 * @param pause 1 for pause, 0 for resume
624
 */
625
int     avio_pause(AVIOContext *h, int pause);
626

  
627
/**
628
 * Seek to a given timestamp relative to some component stream.
629
 * Only meaningful if using a network streaming protocol (e.g. MMS.).
630
 * @param stream_index The stream index that the timestamp is relative to.
631
 *        If stream_index is (-1) the timestamp should be in AV_TIME_BASE
632
 *        units from the beginning of the presentation.
633
 *        If a stream_index >= 0 is used and the protocol does not support
634
 *        seeking based on component streams, the call will fail with ENOTSUP.
635
 * @param timestamp timestamp in AVStream.time_base units
636
 *        or if there is no stream specified then in AV_TIME_BASE units.
637
 * @param flags Optional combination of AVSEEK_FLAG_BACKWARD, AVSEEK_FLAG_BYTE
638
 *        and AVSEEK_FLAG_ANY. The protocol may silently ignore
639
 *        AVSEEK_FLAG_BACKWARD and AVSEEK_FLAG_ANY, but AVSEEK_FLAG_BYTE will
640
 *        fail with ENOTSUP if used and not supported.
641
 * @return >= 0 on success
642
 * @see AVInputFormat::read_seek
643
 */
644
int64_t avio_seek_time(AVIOContext *h, int stream_index,
645
                       int64_t timestamp, int flags);
646

  
620 647
#endif /* AVFORMAT_AVIO_H */

Also available in: Unified diff