libavformat/hlsproto.c File Reference

Apple HTTP Live Streaming Protocol Handler http://tools.ietf.org/html/draft-pantos-http-live-streaming. More...

#include "libavutil/avstring.h"
#include "avformat.h"
#include "internal.h"
#include "url.h"
#include "version.h"
#include <unistd.h>

Go to the source code of this file.

Data Structures

struct  segment
struct  variant
struct  HLSContext
struct  variant_info

Functions

static int read_chomp_line (AVIOContext *s, char *buf, int maxlen)
static void free_segment_list (HLSContext *s)
static void free_variant_list (HLSContext *s)
static void handle_variant_args (struct variant_info *info, const char *key, int key_len, char **dest, int *dest_len)
static int parse_playlist (URLContext *h, const char *url)
static int hls_close (URLContext *h)
static int hls_open (URLContext *h, const char *uri, int flags)
static int hls_read (URLContext *h, uint8_t *buf, int size)

Variables

URLProtocol ff_applehttp_protocol
URLProtocol ff_hls_protocol


Detailed Description

Apple HTTP Live Streaming Protocol Handler http://tools.ietf.org/html/draft-pantos-http-live-streaming.

Definition in file hlsproto.c.


Function Documentation

static void free_segment_list ( HLSContext s  )  [static]

Definition at line 79 of file hlsproto.c.

static void free_variant_list ( HLSContext s  )  [static]

Definition at line 88 of file hlsproto.c.

static void handle_variant_args ( struct variant_info info,
const char *  key,
int  key_len,
char **  dest,
int *  dest_len 
) [static]

Definition at line 101 of file hlsproto.c.

static int hls_close ( URLContext h  )  [static]

Definition at line 178 of file hlsproto.c.

static int hls_open ( URLContext h,
const char *  uri,
int  flags 
) [static]

Definition at line 188 of file hlsproto.c.

static int hls_read ( URLContext h,
uint8_t buf,
int  size 
) [static]

Definition at line 265 of file hlsproto.c.

static int parse_playlist ( URLContext h,
const char *  url 
) [static]

Definition at line 110 of file hlsproto.c.

static int read_chomp_line ( AVIOContext s,
char *  buf,
int  maxlen 
) [static]

Definition at line 71 of file hlsproto.c.


Variable Documentation

Initial value:

 {
    .name           = "applehttp",
    .url_open       = hls_open,
    .url_read       = hls_read,
    .url_close      = hls_close,
    .flags          = URL_PROTOCOL_FLAG_NESTED_SCHEME,
    .priv_data_size = sizeof(HLSContext),
}

Definition at line 330 of file hlsproto.c.

Initial value:

 {
    .name           = "hls",
    .url_open       = hls_open,
    .url_read       = hls_read,
    .url_close      = hls_close,
    .flags          = URL_PROTOCOL_FLAG_NESTED_SCHEME,
    .priv_data_size = sizeof(HLSContext),
}

Definition at line 340 of file hlsproto.c.


Generated on Fri Oct 26 02:48:01 2012 for FFmpeg by  doxygen 1.5.8