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

Latest supported react-native-webrtc version for @config-plugins/react-native-webrtc #75

Closed
fobos531 opened this issue Apr 19, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@fobos531
Copy link

Summary

Hey there, the documentation for the react-native-webrtc config plugin states the latest compatible react-native-webrtc version for the 2.0.0 version of the config plugin. However, since the latest config plugin version is 2.1.1, can you state which is the latest supported version of react-native-webrtc? I tried with version 1.100.0, but I'm getting a TypeError: undefined is not an object (evaluating '_eventTargetShim.defineCustomEventTarget.apply') when running mediaDevices.enumerateDevices()

Thanks in advance!

Config Plugin

@config-plugins/react-native-webrtc

What platform(s) does this occur on?

iOS

SDK Version

44

Reproducible demo

  • initialize an expo project
  • install react-native-webrtc and the config plugin by following the provided instructions in this repo. Version 1.100.0 will be installed.
  • Add the following to your app:
 let isFront = true;
  mediaDevices.enumerateDevices().then((sourceInfos) => {
    console.log(sourceInfos);
    let videoSourceId;
    for (let i = 0; i < sourceInfos.length; i++) {
      const sourceInfo = sourceInfos[i];
      if (sourceInfo.kind == 'videoinput' && sourceInfo.facing == (isFront ? 'front' : 'environment')) {
        videoSourceId = sourceInfo.deviceId;
      }
    }
  });
@fobos531 fobos531 added the bug Something isn't working label Apr 19, 2022
@EvanBacon
Copy link
Collaborator

I just updated @config-plugins/react-native-webrtc and it appears to work with the latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants