Commit e7cb05d3 by 夏楚 Committed by GitHub

Merge pull request #1822 from Dw9/master

c api支持从mp4推送rtp
parents 0f47abd3 40099df3
......@@ -128,6 +128,7 @@ API_EXPORT void API_CALL mk_media_source_find(const char *schema,
const char *vhost,
const char *app,
const char *stream,
int from_mp4,
void *user_data,
on_mk_media_source_find_cb cb);
//MediaSource::for_each_media()
......
......@@ -241,10 +241,11 @@ API_EXPORT void API_CALL mk_media_source_find(const char *schema,
const char *vhost,
const char *app,
const char *stream,
int from_mp4,
void *user_data,
on_mk_media_source_find_cb cb) {
assert(schema && vhost && app && stream && cb);
auto src = MediaSource::find(schema, vhost, app, stream);
auto src = MediaSource::find(schema, vhost, app, stream, from_mp4);
cb(user_data, src.get());
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论