mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-01 07:23:29 +08:00
This commit is contained in:
@@ -193,7 +193,7 @@ API_EXPORT void API_CALL mk_media_start_send_rtp(mk_media ctx, const char *dst_u
|
||||
assert(ctx && dst_url && ssrc);
|
||||
MediaHelper::Ptr* obj = (MediaHelper::Ptr*) ctx;
|
||||
//sender参数无用
|
||||
(*obj)->getChannel()->startSendRtp(*(MediaSource *) 1, dst_url, dst_port, ssrc, is_udp, [cb, user_data](const SockException &ex){
|
||||
(*obj)->getChannel()->startSendRtp(*(MediaSource *) 1, dst_url, dst_port, ssrc, is_udp, 0, [cb, user_data](const SockException &ex){
|
||||
if (cb) {
|
||||
cb(user_data, ex.getErrCode(), ex.what());
|
||||
}
|
||||
@@ -204,5 +204,5 @@ API_EXPORT int API_CALL mk_media_stop_send_rtp(mk_media ctx){
|
||||
assert(ctx);
|
||||
MediaHelper::Ptr *obj = (MediaHelper::Ptr *) ctx;
|
||||
//sender参数无用
|
||||
return (*obj)->getChannel()->stopSendRtp(*(MediaSource *) 1);
|
||||
return (*obj)->getChannel()->stopSendRtp(*(MediaSource *) 1, "");
|
||||
}
|
||||
Reference in New Issue
Block a user