Open majeedyaseen opened 4 years ago
@akshay-yadav-apple & @srinathtm-apple any updates on this issue?
Same issue here. Any updates on resolution?
What I did is I added an instruction step in between any media type questions and for now it’s working now
On Sun, 12 Jul 2020 at 10:51 AM, allenzhu2000 notifications@github.com wrote:
Same issue here. Any updates on resolution?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ResearchKit/ResearchKit/issues/1364#issuecomment-657176916, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIMXSMITSKAQUDKDX2MO73R3FB4ZANCNFSM4LY7Q7YA .
-- Yaseen Majeed https://www.twitter.com/iamyaseenmajeed https://www.linkedin.com/in/iamyaseenmajeed iOS Engineer at Applied Informatics https://www.linkedin.com/in/iamyaseenmajeed [image: T:] 7006127760 [image: E:] majeed@trilax.com https://www.twitter.com/iamyaseenmajeed https://www.linkedin.com/in/yaseenmajeed
Thanks for your quick response! I'm already adding an instruction before my video capture step, to no success unfortunately. Is this the solution you implemented? Video Link `
let instructionStep2 = ORKInstructionStep(identifier: "IntroStep2")
instructionStep2.title = "Choose a Medical Decision Maker"
instructionStep2.text = "Choose a medical decision maker."
steps += [instructionStep2]
let medicalDecisionMakerVideoStep = ORKVideoCaptureStep(identifier: "medicalDecisionMakerVideoStep")
medicalDecisionMakerVideoStep.title = "Choose a Medical Decision Maker"
medicalDecisionMakerVideoStep.text = "If you want, you can record a video explaining why you chose this person."
medicalDecisionMakerVideoStep.accessibilityInstructions = "If you want, you can record a video explaining why you chose this person."
medicalDecisionMakerVideoStep.accessibilityHint = "If you want, you can record a video explaining why you chose this person."
medicalDecisionMakerVideoStep.devicePosition = .front
steps += [medicalDecisionMakerVideoStep]
Unfortunately it's still happening, did you found any way around for this ? @allenzhu2000
I found a fix for the this issue Once I test it out I will let you know the solution @allenzhu2000
@allenzhu2000 you can go to the ORKVIdeoCaptureStepViewController.m inside there
go inside the viewWillAppear method and then add the below else condition to the already added if statement which is
if(!_fileURL) {
......
}
add the below code snippet after the if end brace
else {
_fileURL = NULL;
dispatch_async(_sessionQueue, ^{
[_captureSession startRunning];
});
}
the already captured file will be overwritten by the new capture so don't worry about that :) Let me know if it helped
I have a set of questions for a survey and one of them is video type question, when I initiate the survey and reach to the video type question. It works fine and I am able to record the video however after completion, if I go back to the previous question and come back to video question. I can see a blank screen with title top and unresponsive Start Recording button. Here is a short video for the same Video Link
I have tested on several devices and I am getting the same behaviour.
Here is what I get in the debugger