diff --git a/webrtc/Sdp.cpp b/webrtc/Sdp.cpp index a6b548fd..c8cd55ac 100644 --- a/webrtc/Sdp.cpp +++ b/webrtc/Sdp.cpp @@ -1186,4 +1186,19 @@ void RtcConfigure::addCandidate(const SdpAttrCandidate &candidate, TrackType typ break; } } +} + +shared_ptr RtcConfigure::createOffer(){ + shared_ptr ret = std::make_shared(); + 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 RtcConfigure::createAnswer(const RtcSession &offer){ + return nullptr; } \ No newline at end of file diff --git a/webrtc/Sdp.h b/webrtc/Sdp.h index bfdf01d4..d6860930 100644 --- a/webrtc/Sdp.h +++ b/webrtc/Sdp.h @@ -669,6 +669,9 @@ public: RtpDirection direction, const SdpAttrFingerprint &fingerprint); void addCandidate(const SdpAttrCandidate &candidate, TrackType type = TrackInvalid); + + shared_ptr createOffer(); + shared_ptr createAnswer(const RtcSession &offer); };