libavformat/librtmp.c File Reference

RTMP protocol based on http://rtmpdump.mplayerhq.hu/ librtmp. More...

#include "avformat.h"
#include <librtmp/rtmp.h>
#include <librtmp/log.h>

Go to the source code of this file.

Functions

static void rtmp_log (int level, const char *fmt, va_list args)
static int rtmp_close (URLContext *s)
static int rtmp_open (URLContext *s, const char *uri, int flags)
 Opens RTMP connection and verifies that the stream can be played.
static int rtmp_write (URLContext *s, uint8_t *buf, int size)
static int rtmp_read (URLContext *s, uint8_t *buf, int size)
static int rtmp_read_pause (URLContext *s, int pause)
static int64_t rtmp_read_seek (URLContext *s, int stream_index, int64_t timestamp, int flags)
static int rtmp_get_file_handle (URLContext *s)

Variables

URLProtocol rtmp_protocol
URLProtocol rtmpt_protocol
URLProtocol rtmpe_protocol
URLProtocol rtmpte_protocol
URLProtocol rtmps_protocol


Detailed Description

RTMP protocol based on http://rtmpdump.mplayerhq.hu/ librtmp.

Definition in file librtmp.c.


Function Documentation

static int rtmp_close ( URLContext s  )  [static]

Definition at line 48 of file librtmp.c.

Referenced by rtmp_open().

static int rtmp_get_file_handle ( URLContext s  )  [static]

Definition at line 156 of file librtmp.c.

static void rtmp_log ( int  level,
const char *  fmt,
va_list  args 
) [static]

Definition at line 32 of file librtmp.c.

Referenced by rtmp_open().

static int rtmp_open ( URLContext s,
const char *  uri,
int  flags 
) [static]

Opens RTMP connection and verifies that the stream can be played.

URL syntax: rtmp://server[:port][/app][/playpath][ keyword=value]... where 'app' is first one or two directories in the path (e.g. /ondemand/, /flash/live/, etc.) and 'playpath' is a file name (the rest of the path, may be prefixed with "mp4:")

Additional RTMP library options may be appended as space-separated key-value pairs.

Definition at line 69 of file librtmp.c.

static int rtmp_read ( URLContext s,
uint8_t *  buf,
int  size 
) [static]

Definition at line 119 of file librtmp.c.

static int rtmp_read_pause ( URLContext s,
int  pause 
) [static]

Definition at line 126 of file librtmp.c.

static int64_t rtmp_read_seek ( URLContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
) [static]

Definition at line 138 of file librtmp.c.

static int rtmp_write ( URLContext s,
uint8_t *  buf,
int  size 
) [static]

Definition at line 112 of file librtmp.c.


Variable Documentation

Initial value:

Definition at line 163 of file librtmp.c.

Initial value:

Definition at line 189 of file librtmp.c.

Initial value:

Definition at line 215 of file librtmp.c.

Initial value:

Definition at line 176 of file librtmp.c.

Initial value:

Definition at line 202 of file librtmp.c.


Generated on Fri Oct 26 02:36:54 2012 for FFmpeg by  doxygen 1.5.8