{"action":"created","issue":{"url":"https://api.github.com/repos/muaz-khan/RecordRTC/issues/324","repository_url":"https://api.github.com/repos/muaz-khan/RecordRTC","labels_url":"https://api.github.com/repos/muaz-khan/RecordRTC/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/muaz-khan/RecordRTC/issues/324/comments","events_url":"https://api.github.com/repos/muaz-khan/RecordRTC/issues/324/events","html_url":"https://github.com/muaz-khan/RecordRTC/issues/324","id":259416120,"node_id":"MDU6SXNzdWUyNTk0MTYxMjA=","number":324,"title":"Audio record ios 11 no data","user":{"login":"iamrototo","id":32159195,"node_id":"MDQ6VXNlcjMyMTU5MTk1","avatar_url":"https://avatars3.githubusercontent.com/u/32159195?v=4","gravatar_id":"","url":"https://api.github.com/users/iamrototo","html_url":"https://github.com/iamrototo","followers_url":"https://api.github.com/users/iamrototo/followers","following_url":"https://api.github.com/users/iamrototo/following{/other_user}","gists_url":"https://api.github.com/users/iamrototo/gists{/gist_id}","starred_url":"https://api.github.com/users/iamrototo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamrototo/subscriptions","organizations_url":"https://api.github.com/users/iamrototo/orgs","repos_url":"https://api.github.com/users/iamrototo/repos","events_url":"https://api.github.com/users/iamrototo/events{/privacy}","received_events_url":"https://api.github.com/users/iamrototo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":65,"created_at":"2017-09-21T08:30:49Z","updated_at":"2018-09-20T22:16:13Z","closed_at":null,"author_association":"NONE","body":"Since iOS 11 and the support of getusermedia, I would like to use the record feature for safari on iPad but is not working at all.\r\n\r\nI checked this issue (https://github.com/muaz-khan/RecordRTC/issues/275). I have adapted my code to use StereoAudioRecorder. I get no error in the console but just that I record nothing (the data is 44 Bytes and is just empty) despite it works on chrome (PC). \r\n\r\nHere is my dumb test index. I try to record the voice of the user for 1 second and then I stop and get the data. To easily debug I push in the html the base64 and I have a quick audio html5 to be able to play the sound.\r\n\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<script src=\"https://webrtcexperiment-webrtc.netdna-ssl.com/RecordRTC.js\"></script>\r\n<script src=\"https://cdn.webrtc-experiment.com/gumadapter.js\"></script>\r\n</head>\r\n\r\n<body>\r\n<audio id=\"toto\" controls></audio>\r\n<div id=\"result\" style=\"max-width:500px;     word-wrap: break-word; \"></div>\r\n\r\n<script>\r\n\r\nfunction successCallback(audioStream) {\r\n    // RecordRTC usage goes here\r\n\t\r\n\tvar recordRTC = RecordRTC(audioStream, {recorderType: StereoAudioRecorder});\r\n\trecordRTC.startRecording();\r\n\t\r\n\tsetTimeout(\r\n\t\tfunction() {recordRTC.stopRecording(function(audioURL) {\r\n\t\t\tvar recordedBlob = recordRTC.getBlob();\r\n\t\t\trecordRTC.getDataURL(function(dataURL) { \r\n\t\t\t    var audio = document.querySelector('audio');\r\n                audio.src = dataURL;\r\n\t\t\t    document.getElementById(\"result\").innerHTML = dataURL;\r\n\t\t\t});\r\n\t\t});}, 1000);\r\n}\r\n\r\nfunction errorCallback(error) {\r\n    // maybe another application is using the device\r\n}\r\n\r\nvar mediaConstraints = { audio: true };\r\n\r\nnavigator.mediaDevices.getUserMedia(mediaConstraints).then(successCallback).catch(errorCallback);\r\n\r\n</script>\r\n</body>\r\n</html>\r\n```\r\n\r\nThanks for your help."},"comment":{"url":"https://api.github.com/repos/muaz-khan/RecordRTC/issues/comments/423351919","html_url":"https://github.com/muaz-khan/RecordRTC/issues/324#issuecomment-423351919","issue_url":"https://api.github.com/repos/muaz-khan/RecordRTC/issues/324","id":423351919,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzM1MTkxOQ==","user":{"login":"DrLongGhost","id":1702840,"node_id":"MDQ6VXNlcjE3MDI4NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/1702840?v=4","gravatar_id":"","url":"https://api.github.com/users/DrLongGhost","html_url":"https://github.com/DrLongGhost","followers_url":"https://api.github.com/users/DrLongGhost/followers","following_url":"https://api.github.com/users/DrLongGhost/following{/other_user}","gists_url":"https://api.github.com/users/DrLongGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/DrLongGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrLongGhost/subscriptions","organizations_url":"https://api.github.com/users/DrLongGhost/orgs","repos_url":"https://api.github.com/users/DrLongGhost/repos","events_url":"https://api.github.com/users/DrLongGhost/events{/privacy}","received_events_url":"https://api.github.com/users/DrLongGhost/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T22:16:13Z","updated_at":"2018-09-20T22:16:13Z","author_association":"NONE","body":"Here's some data from having the approach to iOS recording we worked out in this thread in Production for awhile. Since July, we saw 26 successful recordings produced with iOS measured against 15 failures from 10 unique users. So, it seems to work less well than I'd hoped but it's definitely doing the job for some of our users."}}
{"actor":{"display_login":"DrLongGhost"}}