Lines Matching refs:audioCapturer
170 let audioCapturer: audio.AudioCapturer | undefined = undefined;
206 audioCapturer = capturer;
207 if (audioCapturer !== undefined) {
208 …audioCapturer.on('markReach', 1000, (position: number) => { // Subscribe to the markReach event. A…
213 …audioCapturer.on('periodReach', 2000, (position: number) => { // Subscribe to the periodReach even…
218 audioCapturer.on('readData', readDataCallback);
225 if (audioCapturer !== undefined) {
227 …if (stateGroup.indexOf(audioCapturer.state.valueOf()) === -1) { // Recording can be started only w…
231 audioCapturer.start((err: BusinessError) => {
243 if (audioCapturer !== undefined) {
245 …if (audioCapturer.state.valueOf() !== audio.AudioState.STATE_RUNNING && audioCapturer.state.valueO…
249 await audioCapturer.stop(); // Stop recording.
250 if (audioCapturer.state.valueOf() === audio.AudioState.STATE_STOPPED) {
260 if (audioCapturer !== undefined) {
262 …if (audioCapturer.state.valueOf() === audio.AudioState.STATE_RELEASED || audioCapturer.state.value…
266 await audioCapturer.release(); // Release the instance.
267 if (audioCapturer.state.valueOf() === audio.AudioState.STATE_RELEASED) {