bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.33k stars 157 forks source link

InvalidAccessError when calling clearTimelineState or destroy in Microsoft Edge #198

Open kruncher opened 4 years ago

kruncher commented 4 years ago

The "InvalidAccessError" error occurs in some circumstances when the clearTimelineState or destroy methods are called of the MediaNode.

The problem seems to be caused by the following line: https://github.com/bbc/VideoContext/blob/develop/src/SourceNodes/medianode.js#L198

It seems that Microsoft Edge does not allow one to assign undefined to srcObject; but it does appear to like having null assigned to it.

chrisn commented 4 years ago

Thanks for reporting this. Which version of Edge are you using?

kruncher commented 4 years ago

image