You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** @deprecated This method is deprecated, use the \ref agora::rtc::IRtcEngineEventHandler::onRtmpStreamingStateChanged "onRtmpStreamingStateChanged" callback instead.
77
+
78
+
Reports the result of calling the \ref agora::rtc::IRtcEngine::removePublishStreamUrl "removePublishStreamUrl" method. (CDN live only.)
79
+
80
+
This callback indicates whether you have successfully removed an RTMP stream from the CDN.
/** @deprecated This method is deprecated, use the \ref agora::rtc::IRtcEngineEventHandler::onRtmpStreamingStateChanged "onRtmpStreamingStateChanged" callback instead.
87
+
88
+
Reports the result of calling the \ref IRtcEngine::addPublishStreamUrl "addPublishStreamUrl" method. (CDN live only.)
89
+
90
+
@param url The RTMP URL address.
91
+
@param error Error code: #ERROR_CODE_TYPE. Main errors include:
92
+
- #ERR_OK (0): The publishing succeeds.
93
+
- #ERR_FAILED (1): The publishing fails.
94
+
- #ERR_INVALID_ARGUMENT (2): Invalid argument used. If, for example, you did not call \ref agora::rtc::IRtcEngine::setLiveTranscoding "setLiveTranscoding" to configure LiveTranscoding before calling \ref agora::rtc::IRtcEngine::addPublishStreamUrl "addPublishStreamUrl", the SDK reports #ERR_INVALID_ARGUMENT.
95
+
- #ERR_TIMEDOUT (10): The publishing timed out.
96
+
- #ERR_ALREADY_IN_USE (19): The chosen URL address is already in use for CDN live streaming.
97
+
- #ERR_RESOURCE_LIMITED (22): The backend system does not have enough resources for the CDN live streaming.
98
+
- #ERR_ENCRYPTED_STREAM_NOT_ALLOWED_PUBLISH (130): You cannot publish an encrypted stream.
99
+
- #ERR_PUBLISH_STREAM_CDN_ERROR (151)
100
+
- #ERR_PUBLISH_STREAM_NUM_REACH_LIMIT (152)
101
+
- #ERR_PUBLISH_STREAM_NOT_AUTHORIZED (153)
102
+
- #ERR_PUBLISH_STREAM_INTERNAL_SERVER_ERROR (154)
103
+
- #ERR_PUBLISH_STREAM_FORMAT_NOT_SUPPORTED (156)
104
+
*/
105
+
virtualvoidonStreamPublished(constchar *url, int error);
76
106
private:
77
107
HWND m_hMsgHanlder;
78
108
};
@@ -119,6 +149,9 @@ class CAgoraRtmpStreamingDlg : public CDialogEx
119
149
int m_removeUrlCount = 0;
120
150
std::set<CString> m_urlSet;
121
151
152
+
std::map<std::string, bool> m_mapRepublishFlag;
153
+
std::map<std::string, bool> m_mapRemoveFlag;// remove falg when leavechannel
154
+
122
155
LiveTranscoding m_liveTransCoding;
123
156
public:
124
157
virtual BOOL OnInitDialog();
@@ -134,6 +167,9 @@ class CAgoraRtmpStreamingDlg : public CDialogEx
0 commit comments