pdcarroll / react-kinesis-webrtc

An experimental library of React hooks for the AWS Kinesis WebRTC JavaScript SDK.
ISC License
13 stars 7 forks source link

Use viewer without requesting camera or microphone permissions #7

Closed orchydea closed 2 years ago

orchydea commented 2 years ago

Hi! Thanks for open sourcing this package!

I'm trying to build a visualization only tool.

I'm using a master created with the Kinesis WebRTC c SDK and I want to display the video on a webpage using this package without requesting the viewer's permission to use his microphone and/or camera, however, when using the sample configuration for the viewer and setting both video and audio to false in the media configuration I get an error saying TypeError: Failed to execute 'getUserMedia' on 'MediaDevices': At least one of audio and video must be requested. This prevents the viewer from displaying the video.

Is it possible to use the viewer without requesting any media devices from the host computer?

pdcarroll commented 2 years ago

@orchydea, thank you for creating this issue. This scenario should be possible using WebRTC, but I don't think it's supported in the current version of this library. I'll look into adding support for this and update this thread when I have more information.