I'm using the video player component to stream video from a url created by streaming a webcam through VLC player. I tried binding the following to a button press but it doesn't work.
In perspective, system.file.writeFile is gateway scoped, so if the file is getting written. you'll find it there. Perspective does not have access to the local file structure.
Here are a couple of related threads that could be of use here:
The video player does not have a method takeSnapshot.
You can't directly write files on the user's behalf even if it did, because browsers won't let you (as mentioned).
You don't use event.source in Perspective (as mentioned).
What you're asking for is fundamentally not possible at the moment. If we were to add a 'snapshot' functionality to the video player, it would have to return a byte array that you could then prompt the user to download using system.perspective.download. But without us introducing that function first party, you don't have many options. Perhaps @victordcq could come up with a way to 'inject' a button via the markdown component that opened the videoplayer with a dedicated print stylesheet; that's the trick the power chart uses to "print" itself.
i had somthing setup, but the resolution wasnt perfect yet, the button wasnt sizing properly...
and my designer keeps freezing when i tried to export it so it got delayed xd
i havent maanged to fix these problems yet but i can past the code in here i guess instead of providng a demo.
i hope its not related to the js injection, cuz if it is it might break your designer too xd causion is adviced if you cant wait