Open michael-learns opened 7 years ago
app-media-image capture raises 'ImageCapture instance not ready' error
Should display the content that the camera is streaming
No content is being displayed and error appears.
app-media-devices
app-media-stream
app-media-image-capture
Tested on Chrome.
This is how my code looks like
<app-media-devices kind="videoinput" selected-device="{{videoDevice}}"> </app-media-devices> <app-media-stream video-device="[[videoDevice]]" audio-device="[[audioDevice]]" stream="{{stream}}" active> </app-media-stream> `
<app-media-devices kind="videoinput" selected-device="{{videoDevice}}"> </app-media-devices> <app-media-stream video-device="[[videoDevice]]" audio-device="[[audioDevice]]" stream="{{stream}}" active> </app-media-stream>
`
my script
takePhoto() { this.$.imageCapture.takePhoto(); }
Description
app-media-image capture raises 'ImageCapture instance not ready' error
Expected outcome
Should display the content that the camera is streaming
Actual outcome
No content is being displayed and error appears.
Steps to reproduce
app-media-devices
componentapp-media-stream
componentapp-media-image-capture
componentBrowsers Affected
Tested on Chrome.
Code Sample
This is how my code looks like
<app-media-devices kind="videoinput" selected-device="{{videoDevice}}"> </app-media-devices> <app-media-stream video-device="[[videoDevice]]" audio-device="[[audioDevice]]" stream="{{stream}}" active> </app-media-stream>
``
my script
takePhoto() { this.$.imageCapture.takePhoto(); }