{"action":"created","issue":{"url":"https://api.github.com/repos/QuickBlox/q-municate-ios/issues/335","repository_url":"https://api.github.com/repos/QuickBlox/q-municate-ios","labels_url":"https://api.github.com/repos/QuickBlox/q-municate-ios/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/q-municate-ios/issues/335/comments","events_url":"https://api.github.com/repos/QuickBlox/q-municate-ios/issues/335/events","html_url":"https://github.com/QuickBlox/q-municate-ios/issues/335","id":318037843,"node_id":"MDU6SXNzdWUzMTgwMzc4NDM=","number":335,"title":"How to start voice message recorder ?","user":{"login":"Dharmikios","id":36070930,"node_id":"MDQ6VXNlcjM2MDcwOTMw","avatar_url":"https://avatars3.githubusercontent.com/u/36070930?v=4","gravatar_id":"","url":"https://api.github.com/users/Dharmikios","html_url":"https://github.com/Dharmikios","followers_url":"https://api.github.com/users/Dharmikios/followers","following_url":"https://api.github.com/users/Dharmikios/following{/other_user}","gists_url":"https://api.github.com/users/Dharmikios/gists{/gist_id}","starred_url":"https://api.github.com/users/Dharmikios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dharmikios/subscriptions","organizations_url":"https://api.github.com/users/Dharmikios/orgs","repos_url":"https://api.github.com/users/Dharmikios/repos","events_url":"https://api.github.com/users/Dharmikios/events{/privacy}","received_events_url":"https://api.github.com/users/Dharmikios/received_events","type":"User","site_admin":false},"labels":[{"id":199480918,"node_id":"MDU6TGFiZWwxOTk0ODA5MTg=","url":"https://api.github.com/repos/QuickBlox/q-municate-ios/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-26T13:48:01Z","updated_at":"2018-10-16T12:04:15Z","closed_at":"2018-05-25T12:16:38Z","author_association":"NONE","body":"I was trying to send voice record message in demo but it is not working. It is just showing recording view but it not start recording. Can you please provide suggestion on this and let me know why it is not working.\r\n\r\nI am working with swift and did this but same result. It is only showing record view but nothing is happening, no recording and no time increment.\r\nLet me know if i am doing anything wrong and please provide steps for this in swift.\r\n\r\n```swift\r\n let recorderview = QMAudioRecordView()\r\n func messagesInputToolbarAudioRecordingStart(_ toolbar: QMInputToolbar!) {\r\n        print(\"record  start\")\r\n        recorderviewaudioRecordingStarted()\r\n }\r\n```"},"comment":{"url":"https://api.github.com/repos/QuickBlox/q-municate-ios/issues/comments/430211155","html_url":"https://github.com/QuickBlox/q-municate-ios/issues/335#issuecomment-430211155","issue_url":"https://api.github.com/repos/QuickBlox/q-municate-ios/issues/335","id":430211155,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDIxMTE1NQ==","user":{"login":"vikihacksys","id":30224541,"node_id":"MDQ6VXNlcjMwMjI0NTQx","avatar_url":"https://avatars0.githubusercontent.com/u/30224541?v=4","gravatar_id":"","url":"https://api.github.com/users/vikihacksys","html_url":"https://github.com/vikihacksys","followers_url":"https://api.github.com/users/vikihacksys/followers","following_url":"https://api.github.com/users/vikihacksys/following{/other_user}","gists_url":"https://api.github.com/users/vikihacksys/gists{/gist_id}","starred_url":"https://api.github.com/users/vikihacksys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikihacksys/subscriptions","organizations_url":"https://api.github.com/users/vikihacksys/orgs","repos_url":"https://api.github.com/users/vikihacksys/repos","events_url":"https://api.github.com/users/vikihacksys/events{/privacy}","received_events_url":"https://api.github.com/users/vikihacksys/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T12:04:15Z","updated_at":"2018-10-16T12:04:15Z","author_association":"NONE","body":"\r\n> @Dharmikios , Hello.\r\n> First things first you should adopt `QMAudioRecordToolbarDelegate` and implement it's methods:\r\n> `self.inputToolbar.audioRecordDelegate = self`\r\n> \r\n> ```\r\n> /**\r\n>  Asks the delegate if it can start the audio recording by touching the audio record button.\r\n>  \r\n>  @param toolbar An instance of `QMInputToolbar`\r\n>  @return YES if the audio recording should start or NO if it should not.\r\n>  */\r\n> - (BOOL)audioRecordingShouldStart:(QMInputToolbar *)toolbar;\r\n> \r\n> /**\r\n>  This method is called when an audio recording has started.\r\n>  \r\n>  @param toolbar An instance of `QMInputToolbar`\r\n>  */\r\n> - (void)audioRecordingStart:(QMInputToolbar *)toolbar;\r\n> \r\n> /**\r\n>  This method is called when an audio recording has cancelled.\r\n>  \r\n>  @param toolbar An instance of `QMInputToolbar`\r\n>  */\r\n> - (void)audioRecordingCancel:(QMInputToolbar *)toolbar;\r\n> \r\n> /**\r\n>  This method is called when an audio recording has completed.\r\n>  \r\n>  @param toolbar An instance of `QMInputToolbar`\r\n>  */\r\n> - (void)audioRecordingComplete:(QMInputToolbar *)toolbar;\r\n> \r\n> /**\r\n>  This method is called when an audio recording has paused because of timeout.\r\n>  @discussion: This mehod will be called only if 'audioRecordingMaximumDuration:' is adopted.\r\n>  @param toolbar An instance of `QMInputToolbar`.\r\n>  */\r\n> - (void)audioRecordingPausedByTimeOut:(QMInputToolbar *)toolbar;\r\n> \r\n> /**\r\n>  Tells the delegate to return the current duration.\r\n>  \r\n>  @param toolbar An instance of `QMInputToolbar`\r\n>  @return Current duration of the audio recorder.\r\n>  */\r\n> - (NSTimeInterval)audioRecordingDuration:(QMInputToolbar *)toolbar;\r\n> \r\n> /**\r\n>  Tells the delegate to return the maximum duration.\r\n>  \r\n>  @param toolbar An instance of `QMInputToolbar`\r\n>  @return The maximum duration of the recorded audio.\r\n>  */\r\n> - (NSTimeInterval)audioRecordingMaximumDuration:(QMInputToolbar *)toolbar;\r\n> ```\r\n> Then you need to create you your own audio recorder, which should be able to record audio and handle all states of the 'QMAudioRecordToolbarDelegate' protocol.\r\n> Take a look at our implementation of the provided logic in the [Q-Municate](https://github.com/QuickBlox/q-municate-ios/blob/fa10a4ede99c5b7cda0b8bcbe190570226b08a19/Q-municate/Scenes/Chat/QMChatVC/QMChatVC.m) application. You should shift focus on the `@property (strong, nonatomic) QMAudioRecorder *currentAudioRecorder;` and 'QMAudioRecordToolbarDelegate' protocol's methods.\r\n\r\nNo such file \"QMAudioRecorder.h\" present in my quickblox framework in project.\r\nPlease help."}}
{"actor":{"display_login":"vikihacksys"}}