-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi. I trying to use the new Camera component. I've implement onSnapshotUpload event but when I call snapshot() (with or without delay) nothing happens. I try use onVideoUpload, through the setRecording(true), too but it just fired after limitLength time gone. I call requestCamera() before both and click on Allow button.
I'm using a samsung galaxy tab A (2016) with chrome through https protocol with java 8 (b181).
My zk version is zkee 8.6.2
Thank you.
Hi andreasboos,
I've tried the following snippet with a Samsung A50:
<zk>
<camera id="camera" onVideoUpload="video.setContent(event.media)"
onSnapshotUpload="image.setContent(event.media)">
<attribute name="onStateChange">
if (event.state == Camera.START) {
/* do something after starting record,
such as provide users recording hint. */
}
</attribute>
</camera>
<video id="video" />
<image id="image" />
<button label="Start recording" onClick="camera.start()" />
<button label="Stop recording" onClick="camera.stop()" />
<button label="Take a snapshot" onClick="camera.snapshot()" />
</zk>
From my side, can open the camera API and trigger snapshots. Can you run it on your side to check if you have the same issue with it?
If possible, can you enable remote debugging on chrome or firefox, and check the client console (on device with remote debugging) to check for javascript errors?
Asked: 2019-08-15 23:29:06 +0800
Seen: 8 times
Last updated: Aug 16 '19
[ZK8.6 Preview] New media components coming soon!
Bug in Datebox with lenient=false and value 01.04.1981?
javascript cannot catch id of zul component. Please help.
failed to utilize getTop(), getLeft() on div(component). Please help.
Serving zul files from a directory outside web application