{"action":"closed","issue":{"url":"https://api.github.com/repos/qiuxiang/react-native-recording/issues/13","repository_url":"https://api.github.com/repos/qiuxiang/react-native-recording","labels_url":"https://api.github.com/repos/qiuxiang/react-native-recording/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/qiuxiang/react-native-recording/issues/13/comments","events_url":"https://api.github.com/repos/qiuxiang/react-native-recording/issues/13/events","html_url":"https://github.com/qiuxiang/react-native-recording/issues/13","id":347145371,"node_id":"MDU6SXNzdWUzNDcxNDUzNzE=","number":13,"title":"Recording Blocking UI","user":{"login":"navrajkambo","id":39748089,"node_id":"MDQ6VXNlcjM5NzQ4MDg5","avatar_url":"https://avatars1.githubusercontent.com/u/39748089?v=4","gravatar_id":"","url":"https://api.github.com/users/navrajkambo","html_url":"https://github.com/navrajkambo","followers_url":"https://api.github.com/users/navrajkambo/followers","following_url":"https://api.github.com/users/navrajkambo/following{/other_user}","gists_url":"https://api.github.com/users/navrajkambo/gists{/gist_id}","starred_url":"https://api.github.com/users/navrajkambo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navrajkambo/subscriptions","organizations_url":"https://api.github.com/users/navrajkambo/orgs","repos_url":"https://api.github.com/users/navrajkambo/repos","events_url":"https://api.github.com/users/navrajkambo/events{/privacy}","received_events_url":"https://api.github.com/users/navrajkambo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-02T19:33:26Z","updated_at":"2018-08-07T15:53:25Z","closed_at":"2018-08-07T15:53:24Z","author_association":"NONE","body":"When I run a recording instance on my iPhone, my react-native UI gets blocked. It seems to me that since events are generated on incoming data from the audio codec, and the events are dispatched to the main thread, my react program gets stuck dealing with the recording data, instead of doing other things. \r\n\r\nFor instance, when I add the following lines of code `Recording.addRecordingEventListener(datab => this.circularBuff.enqueue(datab));` which esentially adds data to a buffer, I am not able to trigger the `Recording.Stop()` method from my UI with touch input. On android, there is a lag after I try and stop a recording. \r\n\r\nMy goal is to be able to detect an impulse from a small amount of buffered data using JS."}}
{"actor":{"display_login":"navrajkambo"}}