mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
c api支持从mp4推送rtp
This commit is contained in:
parent
0f47abd3ac
commit
40099df3c0
@ -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()
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user