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
I am using the Recording module to stream data to PC over websocket as below. But the data is getting sent only once. If I press start for the second time , keypress in sent to PC but no voice data sent as the eventlistener not getting called. What am i doing wrong here?
import React from 'react';
import {Component,Text,View,Button, Alert } from 'react-native';
import Recording from 'react-native-recording';
console.log(" Sending auido data of len "+data.length*2);
var pcm_len = data.length*2;
//data.unshift(pcm_len>>8);
data.unshift(pcm_len);
data.unshift(0x03);
var view = new Uint16Array(data);
//var view1 = new Uint8Array(view);
ws.send(view);
data.pop();
data.pop();
From my understainding of android code, Recording.init() again to retake after Recording.stop(). Recording.stop() sets audioRecord = null[1], so you have to create AudioRecord instance again by calling Recording.init()[2] before calling Recording.start() again. iOS should behave in the same way.
From my understainding of android code, Recording.init() again to retake after Recording.stop(). Recording.stop() sets audioRecord = null[1], so you have to create AudioRecord instance again by calling Recording.init()[2] before calling Recording.start() again. iOS should behave in the same way.
I am using the Recording module to stream data to PC over websocket as below. But the data is getting sent only once. If I press start for the second time , keypress in sent to PC but no voice data sent as the eventlistener not getting called. What am i doing wrong here?
`
The text was updated successfully, but these errors were encountered: