视频
meta2d 支持Html音视频。
// 音频
const pen = {
name: 'video',
x: 100,
y: 100,
width: 100,
height: 10,
audio: 'https://down.ear0.com:3321/preview?soundid=37418&type=mp3',
autoPlay: true,
};
meta2d.addPen(pen);
meta2d.inactive();
// 视频
const pen = {
name: 'video',
x: 100,
y: 100,
width: 100,
height: 100,
video: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4',
autoPlay: true,
};
meta2d.addPen(pen);
meta2d.inactive();