All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
rtmphttp.c File Reference

RTMP HTTP protocol. More...

#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


#define OFFSET(x)   offsetof(RTMP_HTTPContext, x)


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)


static const AVOption ffrtmphttp_options []
static const AVClass ffrtmphttp_class
const URLProtocol ff_ffrtmphttp_protocol

Detailed Description

RTMP HTTP protocol.

Definition in file rtmphttp.c.

Macro Definition Documentation


Definition at line 35 of file rtmphttp.c.

Referenced by rtmp_http_open().


Definition at line 36 of file rtmphttp.c.

Referenced by rtmp_http_open().

#define OFFSET (   x)    offsetof(RTMP_HTTPContext, x)

Definition at line 253 of file rtmphttp.c.


Definition at line 254 of file rtmphttp.c.

Function Documentation

static int rtmp_http_send_cmd ( URLContext h,
const char *  cmd 

Definition at line 55 of file rtmphttp.c.

Referenced by rtmp_http_close(), and rtmp_http_read().

static int rtmp_http_write ( URLContext h,
const uint8_t buf,
int  size 

Definition at line 85 of file rtmphttp.c.

Referenced by rtmp_http_close(), and rtmp_http_read().

static int rtmp_http_read ( URLContext h,
uint8_t buf,
int  size 

Definition at line 105 of file rtmphttp.c.

Referenced by rtmp_http_close().

static int rtmp_http_close ( URLContext h)

Definition at line 157 of file rtmphttp.c.

Referenced by rtmp_http_open().

static int rtmp_http_open ( URLContext h,
const char *  uri,
int  flags 

Definition at line 184 of file rtmphttp.c.

Variable Documentation

const AVOption ffrtmphttp_options[]
Initial value:
= {
{"ffrtmphttp_tls", "Use a HTTPS tunneling connection (RTMPTS).", OFFSET(tls), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC},
{ NULL },
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: rtmphttp.c:253
#define DEC
Definition: rtmphttp.c:254

Definition at line 256 of file rtmphttp.c.

const AVClass ffrtmphttp_class
Initial value:
= {
.class_name = "ffrtmphttp",
.item_name = av_default_item_name,
.option = ffrtmphttp_options,
Definition: version.h:70
static const AVOption ffrtmphttp_options[]
Definition: rtmphttp.c:256

Definition at line 261 of file rtmphttp.c.

const URLProtocol ff_ffrtmphttp_protocol
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),
.priv_data_class= &ffrtmphttp_class,
Definition: url.h:34
static int rtmp_http_open(URLContext *h, const char *uri, int flags)
Definition: rtmphttp.c:184
static int rtmp_http_close(URLContext *h)
Definition: rtmphttp.c:157
static int rtmp_http_write(URLContext *h, const uint8_t *buf, int size)
Definition: rtmphttp.c:85
static const AVClass ffrtmphttp_class
Definition: rtmphttp.c:261
static int flags
Definition: cpu.c:47
static int rtmp_http_read(URLContext *h, uint8_t *buf, int size)
Definition: rtmphttp.c:105

Definition at line 268 of file rtmphttp.c.