-
-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add videoLayer video with addMarker method, TypeError: Cannot read properties of undefined (reading 'transfer') #1553
Comments
Your chromKey definition is not correct, it must be an object https://photo-sphere-viewer.js.org/plugins/markers.html#chromakey |
Fixed the chromaKey configuration, but TypeError: Cannot read properties of undefined (reading 'transfer') |
Even by example, https://photo-sphere-viewer.js.org/demos/markers/chroma-key.html#chroma-key-video-markers, Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'transfer') Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'transfer') viewer.current = new Viewer({
container: "viewId",
panorama: getSignCode(scene_url.replace("http://", "https://")),
caption: "Parc national du Mercantour <b>© Damien Sorel</b>",
minFov: 0,
maxFov: 180,
navbar: [],
plugins: [
[
MarkersPlugin,
{
markers: [
{
id: 'video',
videoLayer: baseUrl + 'pictos/rick.webm',
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',
},
{
id: 'image',
imageLayer: baseUrl + 'pictos/rick.jpg',
position: [
{ yaw: 2.17063, pitch: 0.47556 }, { yaw: 2.47392, pitch: 0.47121 },
{ yaw: 2.47818, pitch: 0.24468 }, { yaw: 2.17698, pitch: 0.24809 },
],
},
],
},
],
],
lang: {
loadError: "加载失败:请检查VR图像源的正确性",
webglError: "你的浏览器似乎不支持WebGL",
},
}); |
Then please provide a simple online demo. But I think this is because your three.js version is too old or too recent. |
An isolated working demo is required in order to analyze this issue. Why this is important:
DO'S and DON'TS:
|
This issue has been automatically marked as stale because not enough information was provided. It will be closed if no further activity occurs. |
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'),
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
The text was updated successfully, but these errors were encountered: