on 10-18-2018 12:31 PM
Hello.
I am having some issues with the FileUploader on Fiori Client. This works on Chrome and other browsers on the device, but when running it in Fiori client browser it does not work.
When doing something like this:
<FileUploader change="onAddAttachment" class="video-input" mimeType="video/*" />
And some Jquery to make sure it is correct: (FileUploader has 3 inputs for some reason and i cant add capture as far as i know)
$(".video-input input").attr({'capture': 'capture', 'accept':'video/*'});
It works perfectly in all browsers i test. But When we open the app via the Fiori client i am not allowed to use the camcorder. It is grayed out.
I think this worked on the client before google changed something in Android so you now have to select camera(image) or video recorder when clicking a input type file, you can't switch between them any more as far as i know.
Does anyone have a workaround for this? or if anyone knows if this will get fixed / if i am doing something wrong?
To fix this issue, i had to build my own FioriClient via the SDK and add a plugin "cordova-plugin-media-capture"(https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-media-capture/)
This made it possible to select video recording from a file input in the fiori client and it made it possible to directly open the camera like this eks;.
navigator.device.capture.captureVideo(
CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureVideoOptions options]
);
Camera.MediaType VIDEO
Does not work on Android with cordova-plugin-camera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I dint understand the understand the mean
"via the SDK and add a plugin "cordova-plugin-media-capture" " how can we do that?
or just by code
"
// limit capture operation to 1 video clip of low quality
var options = { limit: 1, quality: 0 };
navigator.device.capture.captureVideo(captureSuccess, captureError, options);
thankyou in advance
User | Count |
---|---|
65 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.