2017-09-21 43 views

回答

0

如果别人需要这个信息,我发现它,你只需要做到这一点在你的程序:

AVFormatContext *fmtctx = NULL; 
HLSContext *c = fmtctx -> priv_data; 

之前你需要添加使用的每个结构“ hls.c”(HLSContext,变型,播放列表,移交等)

,那么你可以访问到变种和他的同事数据(URL,比特率等);

int a; 
for(a=0; a < c->n_variants; a++){ 
    av_log(NULL, AV_LOG_INFO, "url = %s \n", c->playlists[a]->url); 
} /*for printing url's of the master playlist*//