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

No source names in Firefox #154

Open
klauswiesel opened this issue Jul 6, 2022 · 0 comments
Open

No source names in Firefox #154

klauswiesel opened this issue Jul 6, 2022 · 0 comments

Comments

@klauswiesel
Copy link

I am using the webcam contrrol and experience problems in Firefox [102.0.1 (64-bit)]

Using this code works in all other browsers:
` ngAfterViewInit(): void {

this.pollFunction = defer(() => from(WebcamUtil.getAvailableVideoInputs()));

startPoll<any>(
  () => this.pollFunction,
  value => value && value.filter(item => !!item.deviceId).length > 0,
  {interval: 1000}
).pipe(
  takeUntil(this.destroyed$),
).subscribe(devices => {
    this.availableInputs = devices;
    this.availableInputsForSelect = this.availableInputs.map(item => ({value: item.deviceId, label: item.label}))
    if (!this.cameraId) {
      this.cameraId = this.availableInputs[0].deviceId;
    }
  }
)

}`

For Firefox, I do not get the names for the cameras. Switching them works, camera function itself is working

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