#include "libavutil/avstring.h"
#include "libavutil/intfloat.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "internal.h"
#include "http.h"
#include "rtmp.h"
Go to the source code of this file.
Data Structures | |
struct | RTMP_HTTPContext |
Defines | |
#define | RTMPT_DEFAULT_PORT 80 |
#define | RTMPTS_DEFAULT_PORT RTMPS_DEFAULT_PORT |
#define | OFFSET(x) offsetof(RTMP_HTTPContext, x) |
#define | DEC AV_OPT_FLAG_DECODING_PARAM |
Functions | |
static int | rtmp_http_send_cmd (URLContext *h, const char *cmd) |
static int | rtmp_http_write (URLContext *h, const uint8_t *buf, int size) |
static int | rtmp_http_read (URLContext *h, uint8_t *buf, int size) |
static int | rtmp_http_close (URLContext *h) |
static int | rtmp_http_open (URLContext *h, const char *uri, int flags) |
Variables | |
static const AVOption | ffrtmphttp_options [] |
static const AVClass | ffrtmphttp_class |
URLProtocol | ff_ffrtmphttp_protocol |
Definition in file rtmphttp.c.
#define DEC AV_OPT_FLAG_DECODING_PARAM |
Definition at line 253 of file rtmphttp.c.
#define OFFSET | ( | x | ) | offsetof(RTMP_HTTPContext, x) |
Definition at line 252 of file rtmphttp.c.
#define RTMPT_DEFAULT_PORT 80 |
#define RTMPTS_DEFAULT_PORT RTMPS_DEFAULT_PORT |
static int rtmp_http_close | ( | URLContext * | h | ) | [static] |
static int rtmp_http_open | ( | URLContext * | h, | |
const char * | uri, | |||
int | flags | |||
) | [static] |
Definition at line 183 of file rtmphttp.c.
static int rtmp_http_read | ( | URLContext * | h, | |
uint8_t * | buf, | |||
int | size | |||
) | [static] |
static int rtmp_http_send_cmd | ( | URLContext * | h, | |
const char * | cmd | |||
) | [static] |
static int rtmp_http_write | ( | URLContext * | h, | |
const uint8_t * | buf, | |||
int | size | |||
) | [static] |
Initial value:
{ .name = "ffrtmphttp", .url_open = rtmp_http_open, .url_read = rtmp_http_read, .url_write = rtmp_http_write, .url_close = rtmp_http_close, .priv_data_size = sizeof(RTMP_HTTPContext), .flags = URL_PROTOCOL_FLAG_NETWORK, .priv_data_class= &ffrtmphttp_class, }
Definition at line 267 of file rtmphttp.c.
const AVClass ffrtmphttp_class [static] |
Initial value:
{ .class_name = "ffrtmphttp", .item_name = av_default_item_name, .option = ffrtmphttp_options, .version = LIBAVUTIL_VERSION_INT, }
Definition at line 260 of file rtmphttp.c.
const AVOption ffrtmphttp_options[] [static] |
Initial value:
{ {"ffrtmphttp_tls", "Use a HTTPS tunneling connection (RTMPTS).", OFFSET(tls), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, DEC}, { NULL }, }
Definition at line 255 of file rtmphttp.c.