html代码
<iframe
src="https://open.ys7.com/ezopen/h5/iframe_se?url=ezopen://open.ys7.com/你的设备序列号/1.live&autoplay=1&accessToken=你的accesstoken&begin=开始时间&end=结束时间"
width="600"
height="400"
id="ysOpenDevice"
allowfullscreen
>
</iframe>
在mouted 中
var player = document.getElementById(‘ysOpenDevice’).contentWindow;
就可以完成视频地址的播放
自定义控件
// player.postMessage("play", "https://open.ys7.com/ezopen/h5/iframe")
// player.postMessage("stop", "https://open.ys7.com/ezopen/h5/iframe")
// player.postMessage("capturePicture", "https://open.ys7.com/ezopen/h5/iframe")
// player.postMessage("openSound", "https://open.ys7.com/ezopen/h5/iframe")
// player.postMessage("closeSound", "https://open.ys7.com/ezopen/h5/iframe")
// player.postMessage("startSave", "https://open.ys7.com/ezopen/h5/iframe")
// player.postMessage("stopSave", "https://open.ys7.com/ezopen/h5/iframe")