Skip to content
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

RequestUserMedia doesn't respect video media track constraints #2

Open
gocal opened this issue Jan 22, 2019 · 0 comments
Open

RequestUserMedia doesn't respect video media track constraints #2

gocal opened this issue Jan 22, 2019 · 0 comments

Comments

@gocal
Copy link

gocal commented Jan 22, 2019

I'm trying to force video preview size via rtc media track constraints. However displayed video size doesn't change. Additionally, it seems that video is mirrored by default so I have to include mirrored={false}

<SWRTC.RequestUserMedia
                        video={{ width: 200, height: 200 }}
                        audio={true}
                        auto
                        mirrored={false}
                      />

The problem seems to be related to the "addLocalMedia" action - when I directly add local media with "screenCapture: true" everything works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant