hello ,I'm looking forward to your help
I directly wrote "videoplayer" in xml and it can be executed using "playvideo", but the videoplayer I created through js used the same method and reported an error
Code
// js
krpano.call(`addhotspot(video)`)
const pluginConfig = {
url: '%SWFPATH%/swf/videoplayer.js',
videourl: '',
distorted: 'true',
edge: 'center',
width: '300',
height: '300',
ath: '20',
atv: '10',
scale: '1',
rx: '0',
ry: '0',
rz: '0',
zorder: '101',
loop: 'false',
pausedonstart: 'false',
};
// 循环设置插件属性
for (const [key, value] of Object.entries(pluginConfig)) {
krpano.set(`hotspot[video].${key}`, value);
}
krpano.call(`hotspot[video].playvideo(${filename})`)
Display More