agora-electron-sdk 4.2.0 → 4.2.2-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/js/AgoraSdk.js +7 -5
  2. package/js/Private/AgoraBase.js +394 -1292
  3. package/js/Private/AgoraMediaBase.js +76 -340
  4. package/js/Private/AgoraMediaPlayerTypes.js +25 -122
  5. package/js/Private/IAgoraLog.js +5 -14
  6. package/js/Private/IAgoraMediaEngine.js +5 -2
  7. package/js/Private/IAgoraMediaPlayer.js +10 -4
  8. package/js/Private/IAgoraMediaRecorder.js +5 -2
  9. package/js/Private/IAgoraMediaStreamingSource.js +5 -12
  10. package/js/Private/IAgoraMusicContentCenter.js +68 -125
  11. package/js/Private/IAgoraRhythmPlayer.js +5 -10
  12. package/js/Private/IAgoraRtcEngine.js +141 -932
  13. package/js/Private/IAgoraRtcEngineEx.js +29 -13
  14. package/js/Private/IAgoraSpatialAudio.js +40 -53
  15. package/js/Private/IAudioDeviceManager.js +5 -2
  16. package/js/Private/impl/IAgoraMediaEngineImpl.js +156 -139
  17. package/js/Private/impl/IAgoraMediaPlayerImpl.js +538 -526
  18. package/js/Private/impl/IAgoraMediaRecorderImpl.js +29 -26
  19. package/js/Private/impl/IAgoraMusicContentCenterImpl.js +264 -192
  20. package/js/Private/impl/IAgoraRtcEngineExImpl.js +419 -399
  21. package/js/Private/impl/IAgoraRtcEngineImpl.js +2352 -2207
  22. package/js/Private/impl/IAgoraSpatialAudioImpl.js +192 -169
  23. package/js/Private/impl/IAudioDeviceManagerImpl.js +235 -232
  24. package/js/Private/internal/AudioDeviceManagerInternal.js +44 -24
  25. package/js/Private/internal/IrisApiEngine.js +109 -76
  26. package/js/Private/internal/LocalSpatialAudioEngineInternal.js +49 -29
  27. package/js/Private/internal/MediaEngineInternal.js +82 -58
  28. package/js/Private/internal/MediaPlayerInternal.js +132 -111
  29. package/js/Private/internal/MediaRecorderInternal.js +64 -38
  30. package/js/Private/internal/MusicContentCenterInternal.js +130 -100
  31. package/js/Private/internal/RtcEngineExInternal.js +265 -219
  32. package/js/Private/ti/AgoraBase-ti.js +2 -2
  33. package/js/Private/ti/AgoraMediaBase-ti.js +15 -15
  34. package/js/Private/ti/AgoraMediaPlayerTypes-ti.js +1 -1
  35. package/js/Private/ti/IAgoraLog-ti.js +1 -1
  36. package/js/Private/ti/IAgoraMediaEngine-ti.js +1 -1
  37. package/js/Private/ti/IAgoraMediaPlayer-ti.js +2 -2
  38. package/js/Private/ti/IAgoraMediaPlayerSource-ti.js +2 -2
  39. package/js/Private/ti/IAgoraMediaRecorder-ti.js +1 -1
  40. package/js/Private/ti/IAgoraMediaStreamingSource-ti.js +1 -1
  41. package/js/Private/ti/IAgoraMusicContentCenter-ti.js +5 -4
  42. package/js/Private/ti/IAgoraRhythmPlayer-ti.js +1 -1
  43. package/js/Private/ti/IAgoraRtcEngine-ti.js +2 -2
  44. package/js/Private/ti/IAgoraRtcEngineEx-ti.js +1 -1
  45. package/js/Private/ti/IAgoraSpatialAudio-ti.js +1 -1
  46. package/js/Private/ti/IAudioDeviceManager-ti.js +1 -1
  47. package/js/Renderer/AgoraView.js +145 -100
  48. package/js/Renderer/IRenderer.js +18 -17
  49. package/js/Renderer/IRendererManager.js +5 -2
  50. package/js/Renderer/RendererManager.js +208 -180
  51. package/js/Renderer/WebGLRenderer/index.js +111 -107
  52. package/js/Renderer/YUVCanvasRenderer/index.js +68 -51
  53. package/js/Utils.js +85 -36
  54. package/package.json +3 -3
  55. package/ts/AgoraSdk.ts +3 -1
  56. package/ts/Private/AgoraBase.ts +227 -86
  57. package/ts/Private/AgoraMediaBase.ts +69 -54
  58. package/ts/Private/AgoraMediaPlayerTypes.ts +4 -4
  59. package/ts/Private/IAgoraLog.ts +1 -1
  60. package/ts/Private/IAgoraMediaEngine.ts +42 -39
  61. package/ts/Private/IAgoraMediaPlayer.ts +98 -67
  62. package/ts/Private/IAgoraMediaPlayerSource.ts +15 -8
  63. package/ts/Private/IAgoraMusicContentCenter.ts +25 -4
  64. package/ts/Private/IAgoraRtcEngine.ts +951 -747
  65. package/ts/Private/IAgoraRtcEngineEx.ts +183 -157
  66. package/ts/Private/IAgoraSpatialAudio.ts +55 -32
  67. package/ts/Private/IAudioDeviceManager.ts +39 -25
  68. package/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +72 -21
  69. package/ts/Private/impl/IAgoraRtcEngineImpl.ts +136 -15
  70. package/ts/Private/internal/RtcEngineExInternal.ts +8 -0
  71. package/ts/Private/ti/AgoraMediaBase-ti.ts +13 -13
  72. package/ts/Private/ti/IAgoraMusicContentCenter-ti.ts +3 -2
  73. package/types/AgoraSdk.d.ts +3 -1
  74. package/types/AgoraSdk.d.ts.map +1 -1
  75. package/types/Private/AgoraBase.d.ts +221 -86
  76. package/types/Private/AgoraBase.d.ts.map +1 -1
  77. package/types/Private/AgoraMediaBase.d.ts +69 -51
  78. package/types/Private/AgoraMediaBase.d.ts.map +1 -1
  79. package/types/Private/AgoraMediaPlayerTypes.d.ts +4 -4
  80. package/types/Private/IAgoraLog.d.ts +1 -1
  81. package/types/Private/IAgoraMediaEngine.d.ts +42 -39
  82. package/types/Private/IAgoraMediaEngine.d.ts.map +1 -1
  83. package/types/Private/IAgoraMediaPlayer.d.ts +98 -67
  84. package/types/Private/IAgoraMediaPlayer.d.ts.map +1 -1
  85. package/types/Private/IAgoraMediaPlayerSource.d.ts +15 -8
  86. package/types/Private/IAgoraMediaPlayerSource.d.ts.map +1 -1
  87. package/types/Private/IAgoraMusicContentCenter.d.ts +17 -5
  88. package/types/Private/IAgoraMusicContentCenter.d.ts.map +1 -1
  89. package/types/Private/IAgoraRtcEngine.d.ts +936 -744
  90. package/types/Private/IAgoraRtcEngine.d.ts.map +1 -1
  91. package/types/Private/IAgoraRtcEngineEx.d.ts +183 -157
  92. package/types/Private/IAgoraRtcEngineEx.d.ts.map +1 -1
  93. package/types/Private/IAgoraSpatialAudio.d.ts +55 -32
  94. package/types/Private/IAgoraSpatialAudio.d.ts.map +1 -1
  95. package/types/Private/IAudioDeviceManager.d.ts +39 -25
  96. package/types/Private/IAudioDeviceManager.d.ts.map +1 -1
  97. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts +9 -5
  98. package/types/Private/impl/IAgoraMusicContentCenterImpl.d.ts.map +1 -1
  99. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts +18 -6
  100. package/types/Private/impl/IAgoraRtcEngineImpl.d.ts.map +1 -1
  101. package/types/Private/internal/RtcEngineExInternal.d.ts +1 -0
  102. package/types/Private/internal/RtcEngineExInternal.d.ts.map +1 -1
  103. package/types/Private/ti/IAgoraMusicContentCenter-ti.d.ts.map +1 -1
@@ -28,108 +28,110 @@ export declare enum AudioMixingDualMonoMode {
28
28
  export declare abstract class IMediaEngine {
29
29
  /**
30
30
  * Registers an audio frame observer object.
31
- * Call this method to register an audio frame observer object (register a callback). When you need the SDK to trigger onMixedAudioFrame , onRecordAudioFrame , onPlaybackAudioFrame or onEarMonitoringAudioFrame callback, you need to use this method to register the callbacks.Ensure that you call this method before joining a channel.
32
31
  *
33
- * @param observer The observer object instance. See IAudioFrameObserver . Agora recommends calling this method after receiving onLeaveChannel to release the audio observer object.
32
+ * Call this method to register an audio frame observer object (register a callback). When you need the SDK to trigger onMixedAudioFrame , onRecordAudioFrame , onPlaybackAudioFrame or onEarMonitoringAudioFrame callback, you need to use this method to register the callbacks. Ensure that you call this method before joining a channel.
33
+ *
34
+ * @param observer The observer object instance. See IAudioFrameObserver. Agora recommends calling this method after receiving onLeaveChannel to release the audio observer object.
34
35
  *
35
36
  * @returns
36
- * 0: Success.< 0: Failure.
37
+ * 0: Success. < 0: Failure.
37
38
  */
38
39
  abstract registerAudioFrameObserver(observer: IAudioFrameObserver): number;
39
40
  /**
40
41
  * Registers a raw video frame observer object.
41
- * If you want to obtain the original video data of some remote users (referred to as group A) and the encoded video data of other remote users (referred to as group B), you can refer to the following steps:
42
- * Call registerVideoFrameObserver to register the raw video frame observer before joining the channel.
43
- * Call registerVideoEncodedFrameObserver to register the encoded video frame observer before joining the channel.
44
- * After joining the channel, get the user IDs of group B users through onUserJoined , and then call setRemoteVideoSubscriptionOptions to set the encodedFrameOnly of this group of users to true.
45
- * Call muteAllRemoteVideoStreams (false) to start receiving the video streams of all remote users. Then:
46
- * The raw video data of group A users can be obtained through the callback in IVideoFrameObserver , and the SDK renders the data by default.
47
- * The encoded video data of group B users can be obtained through the callback in IVideoEncodedFrameObserver . If you want to observe raw video frames (such as YUV or RGBA format), Agora recommends that you implement one IVideoFrameObserver class with this method.When calling this method to register a video observer, you can register callbacks in the IVideoFrameObserver class as needed. After you successfully register the video frame observer, the SDK triggers the registered callbacks each time a video frame is received.Ensure that you call this method before joining a channel.When handling the video data returned in the callbacks, pay attention to the changes in the width and height parameters, which may be adapted under the following circumstances:When network conditions deteriorate, the video resolution decreases incrementally.If the user adjusts the video profile, the resolution of the video returned in the callbacks also changes.
48
42
  *
49
- * @param observer The observer object instance. See IVideoFrameObserver .
43
+ * If you want to obtain the original video data of some remote users (referred to as group A) and the encoded video data of other remote users (referred to as group B), you can refer to the following steps: Call registerVideoFrameObserver to register the raw video frame observer before joining the channel. Call registerVideoEncodedFrameObserver to register the encoded video frame observer before joining the channel. After joining the channel, get the user IDs of group B users through onUserJoined , and then call setRemoteVideoSubscriptionOptions to set the encodedFrameOnly of this group of users to true . Call muteAllRemoteVideoStreams ( false ) to start receiving the video streams of all remote users. Then: The raw video data of group A users can be obtained through the callback in IVideoFrameObserver , and the SDK renders the data by default. The encoded video data of group B users can be obtained through the callback in IVideoEncodedFrameObserver . If you want to observe raw video frames (such as YUV or RGBA format), Agora recommends that you implement one IVideoFrameObserver class with this method. When calling this method to register a video observer, you can register callbacks in the IVideoFrameObserver class as needed. After you successfully register the video frame observer, the SDK triggers the registered callbacks each time a video frame is received. Ensure that you call this method before joining a channel. When handling the video data returned in the callbacks, pay attention to the changes in the width and height parameters, which may be adapted under the following circumstances: When network conditions deteriorate, the video resolution decreases incrementally. If the user adjusts the video profile, the resolution of the video returned in the callbacks also changes.
44
+ *
45
+ * @param observer The observer object instance. See IVideoFrameObserver.
50
46
  *
51
47
  * @returns
52
- * 0: Success.< 0: Failure.
48
+ * 0: Success. < 0: Failure.
53
49
  */
54
50
  abstract registerVideoFrameObserver(observer: IVideoFrameObserver): number;
55
51
  /**
56
52
  * Registers a receiver object for the encoded video image.
57
- * If you only want to observe encoded video frames (such as h.264 format) without decoding and rendering the video, Agora recommends that you implement one IVideoEncodedFrameObserver class through this method.If you want to obtain the original video data of some remote users (referred to as group A) and the encoded video data of other remote users (referred to as group B), you can refer to the following steps:Call registerVideoFrameObserver to register the raw video frame observer before joining the channel.Call registerVideoEncodedFrameObserver to register the encoded video frame observer before joining the channel.After joining the channel, get the user IDs of group B users through onUserJoined , and then call setRemoteVideoSubscriptionOptions to set the encodedFrameOnly of this group of users to true.Call muteAllRemoteVideoStreams (false) to start receiving the video streams of all remote users. Then:The raw video data of group A users can be obtained through the callback in IVideoFrameObserver , and the SDK renders the data by default.The encoded video data of group B users can be obtained through the callback in IVideoEncodedFrameObserver .Call this method before joining a channel.
58
53
  *
59
- * @param observer The video frame observer object. See IVideoEncodedFrameObserver .
54
+ * If you only want to observe encoded video frames (such as h.264 format) without decoding and rendering the video, Agora recommends that you implement one IVideoEncodedFrameObserver class through this method. If you want to obtain the original video data of some remote users (referred to as group A) and the encoded video data of other remote users (referred to as group B), you can refer to the following steps: Call registerVideoFrameObserver to register the raw video frame observer before joining the channel. Call registerVideoEncodedFrameObserver to register the encoded video frame observer before joining the channel. After joining the channel, get the user IDs of group B users through onUserJoined , and then call setRemoteVideoSubscriptionOptions to set the encodedFrameOnly of this group of users to true . Call muteAllRemoteVideoStreams ( false ) to start receiving the video streams of all remote users. Then: The raw video data of group A users can be obtained through the callback in IVideoFrameObserver , and the SDK renders the data by default. The encoded video data of group B users can be obtained through the callback in IVideoEncodedFrameObserver . Call this method before joining a channel.
55
+ *
56
+ * @param observer The video frame observer object. See IVideoEncodedFrameObserver.
60
57
  *
61
58
  * @returns
62
- * 0: Success.< 0: Failure.
59
+ * 0: Success. < 0: Failure.
63
60
  */
64
61
  abstract registerVideoEncodedFrameObserver(observer: IVideoEncodedFrameObserver): number;
65
62
  /**
66
63
  * Pushes the external audio frame.
67
64
  *
68
- * @param frame The external audio frame. See AudioFrame .
65
+ * @param frame The external audio frame. See AudioFrame.
69
66
  * @param trackId The audio track ID. If you want to publish a custom external audio source, set this parameter to the ID of the corresponding custom audio track you want to publish.
70
67
  *
71
68
  * @returns
72
- * 0: Success.< 0: Failure.
69
+ * 0: Success. < 0: Failure.
73
70
  */
74
71
  abstract pushAudioFrame(frame: AudioFrame, trackId?: number): number;
75
72
  /**
76
73
  * Pulls the remote audio data.
77
- * Before calling this method, you need to call setExternalAudioSink to notify the app to enable and set the external rendering.After a successful method call, the app pulls the decoded and mixed audio data for playback.This method only supports pulling data from custom audio source. If you need to pull the data captured by the SDK, do not call this method.Call this method after joining a channel.Once you enable the external audio sink, the app will not retrieve any audio data from the onPlaybackAudioFrame callback.The difference between this method and the onPlaybackAudioFrame callback is as follows:The SDK sends the audio data to the app through the onPlaybackAudioFrame callback. Any delay in processing the audio frames may result in audio jitter.After a successful method call, the app automatically pulls the audio data from the SDK. After setting the audio data parameters, the SDK adjusts the frame buffer and avoids problems caused by jitter in the external audio playback.
74
+ *
75
+ * Before calling this method, you need to call setExternalAudioSink to notify the app to enable and set the external rendering. After a successful method call, the app pulls the decoded and mixed audio data for playback. This method only supports pulling data from custom audio source. If you need to pull the data captured by the SDK, do not call this method. Call this method after joining a channel. Once you enable the external audio sink, the app will not retrieve any audio data from the onPlaybackAudioFrame callback. The difference between this method and the onPlaybackAudioFrame callback is as follows: The SDK sends the audio data to the app through the onPlaybackAudioFrame callback. Any delay in processing the audio frames may result in audio jitter. After a successful method call, the app automatically pulls the audio data from the SDK. After setting the audio data parameters, the SDK adjusts the frame buffer and avoids problems caused by jitter in the external audio playback.
78
76
  *
79
77
  * @returns
80
- * The AudioFrame instance, if the method call succeeds.An error code, if the call fails,.
78
+ * The AudioFrame instance, if the method call succeeds. An error code, if the call fails,.
81
79
  */
82
80
  abstract pullAudioFrame(): AudioFrame;
83
81
  /**
84
82
  * Configures the external video source.
83
+ *
85
84
  * Call this method before joining a channel.
86
85
  *
87
86
  * @param enabled Whether to use the external video source:true: Use the external video source. The SDK prepares to accept the external video frame.false: (Default) Do not use the external video source.
88
87
  * @param useTexture Whether to use the external video frame in the Texture format.true: Use the external video frame in the Texture format.false: (Default) Do not use the external video frame in the Texture format.
89
- * @param sourceType Whether the external video frame is encoded. See ExternalVideoSourceType .
88
+ * @param sourceType Whether the external video frame is encoded. See ExternalVideoSourceType.
90
89
  * @param encodedVideoOption Video encoding options. This parameter needs to be set if sourceType is EncodedVideoFrame. To set this parameter, contact .
91
90
  *
92
91
  * @returns
93
- * 0: Success.< 0: Failure.
92
+ * 0: Success. < 0: Failure.
94
93
  */
95
94
  abstract setExternalVideoSource(enabled: boolean, useTexture: boolean, sourceType?: ExternalVideoSourceType, encodedVideoOption?: SenderOptions): number;
96
95
  /**
97
96
  * Sets the external audio source parameters.
97
+ *
98
98
  * Call this method before joining a channel.
99
99
  *
100
100
  * @param enabled Whether to enable the external audio source:true: Enable the external audio source.false: (Default) Disable the external audio source.
101
101
  * @param sampleRate The sample rate (Hz) of the external audio source which can be set as 8000, 16000, 32000, 44100, or 48000.
102
102
  * @param channels The number of channels of the external audio source, which can be set as 1 (Mono) or 2 (Stereo).
103
- * @param sourceNumber The number of external audio sources. The value of this parameter should be larger than 0. The SDK creates a corresponding number of custom audio tracks based on this parameter value and names the audio tracks starting from 0. In ChannelMediaOptions , you can set publishCustomAudioSourceId to the audio track ID you want to publish.
103
+ * @param sourceNumber The number of external audio sources. The value of this parameter should be larger than 0. The SDK creates a corresponding number of custom audio tracks based on this parameter value and names the audio tracks starting from 0. In ChannelMediaOptions, you can set publishCustomAudioSourceId to the audio track ID you want to publish.
104
104
  * @param localPlayback Whether to play the external audio source:true: Play the external audio source.false: (Default) Do not play the external source.
105
105
  * @param publish Whether to publish audio to the remote users:true: (Default) Publish audio to the remote users.false: Do not publish audio to the remote users.
106
106
  *
107
107
  * @returns
108
- * 0: Success.< 0: Failure.
108
+ * 0: Success. < 0: Failure.
109
109
  */
110
110
  abstract setExternalAudioSource(enabled: boolean, sampleRate: number, channels: number, localPlayback?: boolean, publish?: boolean): number;
111
111
  /**
112
112
  * Creates a customized audio track.
113
- * When you need to publish multiple custom captured audios in the channel, you can refer to the following steps:Call this method to create a custom audio track and get the audio track ID.In ChannelMediaOptions of each channel, set publishCustomAduioTrackId to the audio track ID that you want to publish, and set publishCustomAudioTrack to true.If you call pushAudioFrame trackId as the audio track ID set in step 2, you can publish the corresponding custom audio source in multiple channels.
114
113
  *
115
- * @param trackType The type of the custom audio track. See AudioTrackType .
116
- * @param config The configuration of the custom audio track. See AudioTrackConfig .
114
+ * When you need to publish multiple custom captured audios in the channel, you can refer to the following steps: Call this method to create a custom audio track and get the audio track ID. In ChannelMediaOptions of each channel, set publishCustomAduioTrackId to the audio track ID that you want to publish, and set publishCustomAudioTrack to true . If you call pushAudioFrame trackId as the audio track ID set in step 2, you can publish the corresponding custom audio source in multiple channels.
115
+ *
116
+ * @param trackType The type of the custom audio track. See AudioTrackType.
117
+ * @param config The configuration of the custom audio track. See AudioTrackConfig.
117
118
  *
118
119
  * @returns
119
- * If the method call is successful, the audio track ID is returned as the unique identifier of the audio track.If the method call fails, a negative value is returned.
120
+ * If the method call is successful, the audio track ID is returned as the unique identifier of the audio track. If the method call fails, a negative value is returned.
120
121
  */
121
122
  abstract createCustomAudioTrack(trackType: AudioTrackType, config: AudioTrackConfig): number;
122
123
  /**
123
124
  * Destroys the specified audio track.
124
125
  *
125
- * @param trackId The custom audio track ID returned in createCustomAudioTrack .
126
+ * @param trackId The custom audio track ID returned in createCustomAudioTrack.
126
127
  *
127
128
  * @returns
128
- * 0: Success.< 0: Failure.
129
+ * 0: Success. < 0: Failure.
129
130
  */
130
131
  abstract destroyCustomAudioTrack(trackId: number): number;
131
132
  /**
132
133
  * Sets the external audio sink.
134
+ *
133
135
  * This method applies to scenarios where you want to use external audio data for playback. After you set the external audio sink, you can call pullAudioFrame to pull remote audio frames. The app can process the remote audio and play it with the audio effects that you want.
134
136
  *
135
137
  * @param enabled Whether to enable or disable the external audio sink:true: Enables the external audio sink.false: (Default) Disables the external audio sink.
@@ -137,7 +139,7 @@ export declare abstract class IMediaEngine {
137
139
  * @param channels The number of audio channels of the external audio sink:1: Mono.2: Stereo.
138
140
  *
139
141
  * @returns
140
- * 0: Success.< 0: Failure.
142
+ * 0: Success. < 0: Failure.
141
143
  */
142
144
  abstract setExternalAudioSink(enabled: boolean, sampleRate: number, channels: number): number;
143
145
  /**
@@ -146,13 +148,14 @@ export declare abstract class IMediaEngine {
146
148
  abstract enableCustomAudioLocalPlayback(trackId: number, enabled: boolean): number;
147
149
  /**
148
150
  * Pushes the external raw video frame to the SDK.
149
- * If you call createCustomVideoTrack method to get the video track ID, set the customVideoTrackId parameter to the video track ID you want to publish in the ChannelMediaOptions of each channel, and set the publishCustomVideoTrack parameter to true, you can call this method to push the unencoded external video frame to the SDK.
150
151
  *
151
- * @param frame The external raw video frame to be pushed. See ExternalVideoFrame .
152
+ * If you call createCustomVideoTrack method to get the video track ID, set the customVideoTrackId parameter to the video track ID you want to publish in the ChannelMediaOptions of each channel, and set the publishCustomVideoTrack parameter to true , you can call this method to push the unencoded external video frame to the SDK.
153
+ *
154
+ * @param frame The external raw video frame to be pushed. See ExternalVideoFrame.
152
155
  * @param videoTrackId The video track ID returned by calling the createCustomVideoTrack method. The default value is 0.
153
156
  *
154
157
  * @returns
155
- * 0: Success.< 0: Failure.
158
+ * 0: Success. < 0: Failure.
156
159
  */
157
160
  abstract pushVideoFrame(frame: ExternalVideoFrame, videoTrackId?: number): number;
158
161
  /**
@@ -166,28 +169,28 @@ export declare abstract class IMediaEngine {
166
169
  /**
167
170
  * Unregisters an audio frame observer.
168
171
  *
169
- * @param observer The audio frame observer, reporting the reception of each audio frame. See IAudioFrameObserver .
172
+ * @param observer The audio frame observer, reporting the reception of each audio frame. See IAudioFrameObserver.
170
173
  *
171
174
  * @returns
172
- * 0: Success.< 0: Failure.
175
+ * 0: Success. < 0: Failure.
173
176
  */
174
177
  abstract unregisterAudioFrameObserver(observer: IAudioFrameObserver): number;
175
178
  /**
176
179
  * Unregisters the video frame observer.
177
180
  *
178
- * @param observer The video observer, reporting the reception of each video frame. See IVideoFrameObserver .
181
+ * @param observer The video observer, reporting the reception of each video frame. See IVideoFrameObserver.
179
182
  *
180
183
  * @returns
181
- * 0: Success.< 0: Failure.
184
+ * 0: Success. < 0: Failure.
182
185
  */
183
186
  abstract unregisterVideoFrameObserver(observer: IVideoFrameObserver): number;
184
187
  /**
185
188
  * Unregisters a receiver object for the encoded video image.
186
189
  *
187
- * @param observer The video observer, reporting the reception of each video frame. See IVideoEncodedFrameObserver .
190
+ * @param observer The video observer, reporting the reception of each video frame. See IVideoEncodedFrameObserver.
188
191
  *
189
192
  * @returns
190
- * 0: Success.< 0: Failure.
193
+ * 0: Success. < 0: Failure.
191
194
  */
192
195
  abstract unregisterVideoEncodedFrameObserver(observer: IVideoEncodedFrameObserver): number;
193
196
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IAgoraMediaEngine.d.ts","sourceRoot":"","sources":["../../ts/Private/IAgoraMediaEngine.ts"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAChD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,oBAAY,uBAAuB;IACjC;;OAEG;IACH,uBAAuB,IAAI;IAC3B;;OAEG;IACH,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