#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 |
Definition in file librtmp.c.
| static int rtmp_close | ( | URLContext * | s | ) | [static] |
| static int rtmp_get_file_handle | ( | URLContext * | s | ) | [static] |
| static void rtmp_log | ( | int | level, | |
| const char * | fmt, | |||
| va_list | args | |||
| ) | [static] |
| 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.
| static int rtmp_read | ( | URLContext * | s, | |
| uint8_t * | buf, | |||
| int | size | |||
| ) | [static] |
| static int rtmp_read_pause | ( | URLContext * | s, | |
| int | pause | |||
| ) | [static] |
| static int64_t rtmp_read_seek | ( | URLContext * | s, | |
| int | stream_index, | |||
| int64_t | timestamp, | |||
| int | flags | |||
| ) | [static] |
| static int rtmp_write | ( | URLContext * | s, | |
| uint8_t * | buf, | |||
| int | size | |||
| ) | [static] |
Initial value:
{
"rtmp",
rtmp_open,
rtmp_read,
rtmp_write,
NULL,
rtmp_close,
NULL,
rtmp_read_pause,
rtmp_read_seek,
rtmp_get_file_handle
}
Initial value:
{
"rtmpe",
rtmp_open,
rtmp_read,
rtmp_write,
NULL,
rtmp_close,
NULL,
rtmp_read_pause,
rtmp_read_seek,
rtmp_get_file_handle
}
Initial value:
{
"rtmps",
rtmp_open,
rtmp_read,
rtmp_write,
NULL,
rtmp_close,
NULL,
rtmp_read_pause,
rtmp_read_seek,
rtmp_get_file_handle
}
Initial value:
{
"rtmpt",
rtmp_open,
rtmp_read,
rtmp_write,
NULL,
rtmp_close,
NULL,
rtmp_read_pause,
rtmp_read_seek,
rtmp_get_file_handle
}
Initial value:
{
"rtmpte",
rtmp_open,
rtmp_read,
rtmp_write,
NULL,
rtmp_close,
NULL,
rtmp_read_pause,
rtmp_read_seek,
rtmp_get_file_handle
}
1.5.8