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-recorder throws error when stream is null #46

Closed JaySunSyn closed 6 years ago

JaySunSyn commented 6 years ago

Description

app-media-stream sets its stream property to null if active gets set to false.

app-media-recorder tries to re-compute the recorder property with a nullified stream. => throws error.

Expected outcome

No error.

Actual outcome

Uncaught TypeError: Failed to construct 'MediaRecorder': parameter 1 is not of type 'MediaStream'.

Steps to reproduce

Bind stream from app-media-stream to app-media-recorder. Set active property of app-media-stream to false.

cdata commented 6 years ago

Should be fixed by #47