本人使用的amlogic 平台android6,amlogic平台播放器amplayer中采用ffmpeg作为解析。 最近遇到 播放http ts流 ,由于buffer处于buffering导致卡住问题。 度娘资料不多:
1. ffmpeg中的http协议相关代码阅读笔记
http://blog.csdn.net/toymaker/article/details/6037926
此文解答了我的一个大疑惑 , 关于 HTTPContxt是什么?
以下是摘自上面链接。
http.c函数的URLProtocol结构体中有个PrivateData的指针,这个指针存储了http协议中的一些内部使用到的数据变量,内部处理的数据变量结构体如下:
typedef struct {
const AVClass *class;
URLContext *hd;
unsigned char buffer[BUFFER_SIZE], *buf_ptr, *buf_end;
int line_count;
int http_code;
int64_t chunksize; /**< Used if "Transfer-Encoding: chunked" otherwise -1. */
int64_t off, filesize;
char location[MAX_URL_SIZE];
HTTPAuthState auth_state;
unsigned char headers[BUFFER_SIZE];
int willclose; /**< Set if the server correctly handles