注意:chrome是需要https协议的
1、如果是iframe框架
var frame = window.parent.document.getElementById("subFrame");
subFrame.allow = "microphone;camera;midi;encrypted-media;";
或者
<iframe src="subFrame" frameborder=
注意:chrome是需要https协议的
1、如果是iframe框架
var frame = window.parent.document.getElementById("subFrame");
subFrame.allow = "microphone;camera;midi;encrypted-media;";
或者
<iframe src="subFrame" frameborder=