ConnectyCube / connectycube-js-sdk-releases

Releases materials for ConnectyCube JS SDK platform https://connectycube.com
9 stars 2 forks source link

have error in getVideoDevices #6

Closed ArminShahamati closed 4 years ago

ArminShahamati commented 4 years ago

hello i wrote this code : getVideoDevices() { return new Promise((resolve, reject) => { ConnectyCube.videochat.getMediaDevices('videoinput').then(devices => { devices ? resolve(devices) : reject(); }); }); } but i have this error in console: TypeError: undefined is not an object (evaluating 'b.enumerateDevices')

DaveLomber commented 4 years ago

@imxerex please let us know what platform do you use (Web, RN, Cordova etc)

ArminShahamati commented 4 years ago

@imxerex please let us know what platform do you use (Web, RN, Cordova etc) i use React Native 0.55

DaveLomber commented 4 years ago

For RN you need to use connectycube-reactnative": "1.8.1", SDK, not JS

like here https://github.com/ConnectyCube/connectycube-reactnative-samples/blob/master/RNVideoChat/package.json#L20

Please try and let us know

ArminShahamati commented 4 years ago

For RN you need to use connectycube-reactnative": "1.8.1", SDK, not JS

like here https://github.com/ConnectyCube/connectycube-reactnative-samples/blob/master/RNVideoChat/package.json#L20

Please try and let us know

I use "connectycube-reactnative": "1.8.1",

DaveLomber commented 4 years ago

Please show your package.json

ArminShahamati commented 4 years ago
{
  "name": "Copcop",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "@types/react": "^16.8.23",
    "axios": "^0.19.0",
    "babel-preset-react-native": "^2.1.0",
    "connectycube-reactnative": "1.8.1",
    "fluidbottomnavigation-rn": "^0.1.1",
    "link": "^0.1.5",
    "metro-react-native-babel-preset": "^0.55.0",
    "moment": "^2.24.0",
    "native-base": "^2.7.2",
    "randomstring": "^1.1.5",
    "react": "16.4.1",
    "react-native": "^0.55.4",
    "react-native-animated-swipeout": "^2.0.14",
    "react-native-animated-tabs": "^1.3.3",
    "react-native-animation-layout": "0.0.13",
    "react-native-app-intro-slider": "^1.0.1",
    "react-native-autogrow-input": "^0.2.1",
    "react-native-camera-roll-picker": "^1.3.0",
    "react-native-camera-roll-selector": "^1.3.3",
    "react-native-collapsible": "^0.13.0",
    "react-native-custom-radio-group": "^1.0.1",
    "react-native-dial-menu": "^1.0.5",
    "react-native-dropdownalert": "^4.0.2",
    "react-native-easy-tabs": "^1.2.0",
    "react-native-floating-action": "^1.17.0",
    "react-native-form-validator": "^0.2.0",
    "react-native-gesture-handler": "^1.0.5",
    "react-native-gifted-chat": "^0.2.9",
    "react-native-i18n": "^2.0.15",
    "react-native-image-view": "^2.1.5",
    "react-native-indicators": "^0.13.0",
    "react-native-input-validator": "^1.0.1",
    "react-native-jalali-date-picker": "^1.0.0",
    "react-native-js-bottom-sheet": "^1.1.0",
    "react-native-keyboard-space": "^1.0.1",
    "react-native-keyboard-spacer": "^0.4.1",
    "react-native-loader": "^1.2.1",
    "react-native-loading-dots": "^1.1.1",
    "react-native-material-bottom-navigation": "^1.0.4",
    "react-native-material-menu": "^0.6.3",
    "react-native-modal": "^11.1.0",
    "react-native-modal-loader": "^1.3.0",
    "react-native-modalize": "^1.2.1",
    "react-native-modern-datepicker": "^1.0.0-beta.6",
    "react-native-motion": "^1.0.4",
    "react-native-off-canvas-menu": "^0.1.32",
    "react-native-orientation-loading-overlay": "^0.1.6",
    "react-native-picker-select": "^4.2.0",
    "react-native-pose": "^0.9.1",
    "react-native-pushe": "^1.6.3",
    "react-native-rating-star": "^0.2.1",
    "react-native-raw-bottom-sheet": "^2.0.2",
    "react-native-restart": "0.0.13",
    "react-native-scrollable-tab-view-rtl": "^0.8.0",
    "react-native-simple-animations": "^0.2.1",
    "react-native-simple-dialogs": "^1.1.0",
    "react-native-snap-carousel": "^3.8.0",
    "react-native-spinkit": "^1.4.1",
    "react-native-star-view": "^1.1.3",
    "react-native-swipeout": "^2.3.6",
    "react-native-tecnovix-material-textfield": "^0.18.0",
    "react-native-upload-multiple-images": "^1.0.6-rc",
    "react-native-vector-icons": "^5.0.0",
    "react-native-webrtc": "^1.75.2",
    "react-navigation": "^2.12.1",
    "react-navigation-transitions": "^1.0.12",
    "rn-persian-date-picker": "^1.0.6",
    "rn-progress-loader": "^1.0.8",
    "tcomb-form-native": "^0.6.20"
  },
  "devDependencies": {
    "babel-jest": "23.4.2",
    "jest": "23.5.0",
    "jetifier": "^1.6.4",
    "react-test-renderer": "16.4.1"
  },
  "jest": {
    "preset": "react-native"
  },
  "rnpm": {
    "assets": [
      "./assets/fonts/"
    ]
  }
}
DaveLomber commented 4 years ago

Please check the latest RN video chat code sample https://github.com/ConnectyCube/connectycube-reactnative-samples/tree/master/RNVideoChat

which does not have any issues like this

If the issue is still persist - please report directly to that repo

Thanks !