cables-gl / cables

cables is a tool for creating beautiful interactive content
https://cables.gl
MIT License
363 stars 17 forks source link

MediaRecorder op is unable to find canvas when preview is popped out #6584

Closed LeStahL closed 4 weeks ago

LeStahL commented 1 month ago

I use the version on cables.gl to reproduce.

When using the "Popout canvas" feature for the preview, MediaRecorder is unable to record a video. Error message:

Error: canvas not found
Error: could not create mediarecorder, try setting all parameters

MediaRecorder op:

{"ops":[{"opId":"ff12e50f-e2bd-4554-9aec-dab9de4cba8b","id":"ivq0yphca","uiAttribs":{"subPatch":0,"translate":{"x":93.5645429495388,"y":280.1329736646772},"history":{"lastInteractionAt":1729862682549,"lastInteractionBy":{"name":"nr4"}}},"portsIn":[{"name":"Recording","value":1},{"name":"Filename","value":"cables"},{"name":"Download Video","value":1},{"name":"Mimetype index","value":1},{"name":"Mimetype","value":"video/mp4"},{"name":"MBit","value":5},{"name":"Max FPS","value":30},{"name":"Force FPS","value":0},{"name":"Media index","value":0},{"name":"Media","value":"Video"},{"name":"Video Canvas Id","value":"glcanvas"}],"portsOut":[{"name":"State","value":""},{"name":"Error","value":""},{"name":"Final Mimetype","value":""},{"name":"Duration","value":5389.699999988079},{"name":"Video DataUrl","value":"blob:https://sandbox.cables.gl/df9a1d2d-21b3-415b-83fb-c701240c4dda"}]}]}
pandrr commented 1 month ago

dupe: cables-gl/cables_docs/issues/873

LeStahL commented 1 month ago

whoops. sorry.

pandrr commented 4 weeks ago

works on dev.cables.gl will be in the next release