PolymerElements / app-media

Elements for accessing data from media input devices and visualizing that data for users
61 stars 12 forks source link

app-media-image takePhoto() only works the first time called in Polymer 2 #59

Closed j0000el closed 5 years ago

j0000el commented 5 years ago

Description

Second attempt call app-media-image-capture.takePhoto() does nothing when running in Polymer v2.

I also see this error in the console: Uncaught TypeError: Failed to construct 'ImageCapture': parameter 1 is not of type 'MediaStreamTrack'. at HTMLElement.__computeImageCapture (app-media-image-capture.js:58)

Expected outcome

Each call to takePhoto() should take a new photo.

Actual outcome

Only the first takePhoto call works in Polymer 2.

Browsers Affected