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
<shortdescid="short"><phid="shortdesc"props="electron">Adds an <xrefkeyref="IMediaRecorderEvent"/> listener.</ph><phid="shortdesc"props="rn">Adds an <xrefkeyref="IMediaRecorderEvent"/> listener.</ph></shortdesc>
<pprops="electron">After calling this method successfully, you can listen to events and obtain data from the corresponding <xrefkeyref="IMediaRecorder"/> object through <xrefkeyref="IMediaRecorderEvent"/>. You can add multiple listeners for the same event as needed.</p>
28
+
<pprops="rn">After successfully calling this method, you can use <xrefkeyref="IMediaRecorderEvent"/> to listen for events and obtain data from the corresponding <xrefkeyref="IMediaRecorder"/> object. You can add multiple listeners for the same event as needed.</p>
<shortdescid="short"><phid="shortdesc"props="electron">Removes all listeners for the specified event.</ph><phid="shortdesc"props="rn">Removes all listeners for the specified event.</ph></shortdesc>
<shortdescid="short"><phid="shortdesc"props="electron">Removes the specified <xrefkeyref="IMediaRecorderEvent"/> listener.</ph><phid="shortdesc"props="rn">Removes the specified <xrefkeyref="IMediaRecorderEvent"/> listener.</ph></shortdesc>
<pd>The name of the target event to listen for. See <xrefkeyref="IMediaRecorderEvent"/>.</pd>
33
+
</plentry>
34
+
<plentryprops="electron">
35
+
<pt>listener</pt>
36
+
<pd>The callback function corresponding to <codeph>eventType</codeph>. You must pass the same function object that was passed to <xrefkeyref="addListener_IMediaRecorder"/>. For example, to remove the <xrefkeyref="onRecorderStateChanged"/> listener:
<pd>The name of the event to listen for. See <xrefkeyref="IMediaRecorderEvent"/>.</pd>
45
+
</plentry>
46
+
<plentryprops="rn">
47
+
<pt>listener</pt>
48
+
<pd>The callback function corresponding to <codeph>eventType</codeph>. You must pass the same function object that was passed to <xrefkeyref="addListener_IMediaRecorder"/>. For example, to remove the <xrefkeyref="onRecorderStateChanged"/> listener:
<shortdescid="short"><phid="shortdesc"props="electron">Registers an <xrefkeyref="IMediaRecorderObserver"/> observer.</ph><phid="shortdesc"props="rn">Registers the <xrefkeyref="IMediaRecorderObserver"/> observer.</ph><phid="shortdesc"props="flutter">Registers a <xrefkeyref="IMediaRecorderObserver"/> observer.</ph><phid="shortdesc"props="unity">Registers the <xrefkeyref="IMediaRecorderObserver"/> observer.</ph></shortdesc>
<pprops="electron">This method sets the callback for audio/video recording to notify the app of the recording status and information of audio/video streams during recording.
26
+
Before calling this method, make sure:
27
+
<ul>
28
+
<li>You have created and initialized the <xrefkeyref="IRtcEngine"/> object.</li>
29
+
<li>You have created an audio/video recording object via <xrefkeyref="createMediaRecorder"/>.</li>
30
+
</ul>
31
+
</p>
32
+
<pprops="rn">This method is used to set the callback for audio/video recording so that the app can be notified of the recording status and information during the recording process.
33
+
Before calling this method, ensure that:
34
+
<ul>
35
+
<li>The <xrefkeyref="IRtcEngine"/> object has been created and initialized.</li>
36
+
<li>The audio/video recording object has been created using <xrefkeyref="createMediaRecorder"/>.</li>
37
+
</ul>
38
+
</p>
39
+
<pprops="flutter">This method is used to set the callback for media recording, so that the App can be notified of the recording status and information of the audio and video stream during the recording process.
40
+
Before calling this method, make sure that:
41
+
<ul>
42
+
<li>The <xrefkeyref="IRtcEngine"/> object has been created and initialized.</li>
43
+
<li>The media recorder object has been created using <xrefkeyref="createMediaRecorder"/>.</li>
44
+
</ul>
45
+
</p>
46
+
<pprops="unity">This method sets the callback for audio and video recording, so that the app can be notified of the recording state and information during the recording process.
47
+
Before calling this method, ensure that:
48
+
<ul>
49
+
<li>The <xrefkeyref="IRtcEngine"/> object has been created and initialized.</li>
50
+
<li>The recording object has been created using <xrefkeyref="createMediaRecorder"/>.</li>
<li>< 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.</li>
81
+
</ul>
82
+
</p>
83
+
<pprops="rn">
84
+
<ul>
85
+
<li>0: Success.</li>
86
+
<li>< 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.</li>
87
+
</ul>
88
+
</p>
89
+
<pprops="flutter">When the method call succeeds, there is no return value; when fails, the <xrefkeyref="AgoraRtcException"/> exception is thrown. You need to catch the exception and handle it accordingly. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.</p>
90
+
<pprops="unity">
91
+
<ul>
92
+
<li>0: Success.</li>
93
+
<li>< 0: Failure. See [Error Codes](https://docs.agora.io/en/video-calling/troubleshooting/error-codes) for details and resolution suggestions.</li>
0 commit comments