c api支持从mp4推送rtp

This commit is contained in:
Dw9 2022-07-24 08:51:11 +08:00
parent 0f47abd3ac
commit 40099df3c0
2 changed files with 3 additions and 1 deletions

View File

@ -128,6 +128,7 @@ API_EXPORT void API_CALL mk_media_source_find(const char *schema,
const char *vhost, const char *vhost,
const char *app, const char *app,
const char *stream, const char *stream,
int from_mp4,
void *user_data, void *user_data,
on_mk_media_source_find_cb cb); on_mk_media_source_find_cb cb);
//MediaSource::for_each_media() //MediaSource::for_each_media()

View File

@ -241,10 +241,11 @@ API_EXPORT void API_CALL mk_media_source_find(const char *schema,
const char *vhost, const char *vhost,
const char *app, const char *app,
const char *stream, const char *stream,
int from_mp4,
void *user_data, void *user_data,
on_mk_media_source_find_cb cb) { on_mk_media_source_find_cb cb) {
assert(schema && vhost && app && stream && 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()); cb(user_data, src.get());
} }