blazor-camera-streamer icon indicating copy to clipboard operation
blazor-camera-streamer copied to clipboard

Missing the option to applyConstraints

Open kalabakas1 opened this issue 2 years ago • 1 comments

Hi :)

I'm in a situation where it would be nice to change e.g. the zoom level of the selected device if available. For this I have been looking at the example from https://googlechrome.github.io/samples/image-capture/update-camera-zoom.html, but cant see how to apply this function invocation in the context of the blazor-camera-streamer package.

Can you help?

kalabakas1 avatar Jul 17 '23 18:07 kalabakas1

Hello @kalabakas1

Currently, it's not possible to "inject" your own code into the components javascript (or HTML) to change the behaviour of the video. I could see this as a future feature though, if a few users request it.

I would suggest you copy the sourcefiles into your own project and add the missing features from the blog you linked into the Scripts/CameraStreamer.ts and Components/CameraStreamer.razor files.

Let me know if you need any further help :)

baltermia avatar Jul 24 '23 07:07 baltermia