Open
Description
Describe the bug
I want to annotate the position. There is no problem in adding non-Videolayer and imageLayer when I call addMarker method to add config. When adding videoLayer, TypeError will be displayed: Cannot read properties of undefined (reading 'transfer'),
markersPluginRef.current.addMarker(
{
id: 'videoid',
chromaKey: '#ffffff',
videoLayer: 'https://vr-platform.cos.clife.cn/1735201062727.mp4?q-sign-algorithm=sha1&q-ak=AKIDMlEeqCPSPCk3ED2e5A8zfCAyYAdu1xfA&q-sign-time=1738892591;1738899791&q-key-time=1738892591;1738899791&q-header-list=&q-url-param-list=&q-signature=82b14188e5eebe140348b05c8b8b8c4d413ee2ba',
position: [
{ yaw: 2.90978, pitch: 0.25583 }, { yaw: 3.20036, pitch: 0.25220 },
{ yaw: 3.20567, pitch: -0.28784 }, { yaw: 2.92182, pitch: -0.31297 },
],
style: {
cursor: 'pointer',
},
tooltip: 'Play / Pause',
},
)
Online demo URL
No response
Photo Sphere Viewer version
5.11.0
Plugins loaded
No response
OS & browser
Windows / Google Chrome
Additional context
No response