mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
添加接口
This commit is contained in:
parent
45b8f83131
commit
978917b465
@ -1187,3 +1187,18 @@ void RtcConfigure::addCandidate(const SdpAttrCandidate &candidate, TrackType typ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shared_ptr<RtcSession> RtcConfigure::createOffer(){
|
||||||
|
shared_ptr<RtcSession> ret = std::make_shared<RtcSession>();
|
||||||
|
ret->version = 0;
|
||||||
|
ret->origin.parse("- 0 0 IN IP4 0.0.0.0");
|
||||||
|
ret->session_name = "zlmediakit_webrtc_session";
|
||||||
|
ret->session_info = "zlmediakit_webrtc_session";
|
||||||
|
ret->connection.parse("IN IP4 0.0.0.0");
|
||||||
|
ret->msid_semantic.parse("WMS *");
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
shared_ptr<RtcSession> RtcConfigure::createAnswer(const RtcSession &offer){
|
||||||
|
return nullptr;
|
||||||
|
}
|
@ -669,6 +669,9 @@ public:
|
|||||||
RtpDirection direction,
|
RtpDirection direction,
|
||||||
const SdpAttrFingerprint &fingerprint);
|
const SdpAttrFingerprint &fingerprint);
|
||||||
void addCandidate(const SdpAttrCandidate &candidate, TrackType type = TrackInvalid);
|
void addCandidate(const SdpAttrCandidate &candidate, TrackType type = TrackInvalid);
|
||||||
|
|
||||||
|
shared_ptr<RtcSession> createOffer();
|
||||||
|
shared_ptr<RtcSession> createAnswer(const RtcSession &offer);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user