2017-09-21 45 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*//