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

AudioRtpReceiver::OnSetVolume: No audio channel exists. #94

Closed
jesusvalenzuelar opened this issue Jul 6, 2019 · 9 comments
Closed

AudioRtpReceiver::OnSetVolume: No audio channel exists. #94

jesusvalenzuelar opened this issue Jul 6, 2019 · 9 comments

Comments

@jesusvalenzuelar
Copy link

This is what's happening:
When trying to implement or include opentok library into an angular application (v8) I am getting this error:

[19260:0705/181920.936:ERROR:rtp_receiver.cc(121)] AudioRtpReceiver::OnSetVolume: No audio channel exists.

This message appears from starting the app.

Notes:

  • This is an electron.js app with an embedded angular application.
  • I am able to do all the one-2-one live chat session and the result of the recording is fine, it has video and audio.
  • There is no sound on the electron app

environment versions:

{ node: '12.0.0',
  v8: '7.3.492.27-electron.0',
  uv: '1.27.0',
  zlib: '1.2.11',
  brotli: '1.0.7',
  ares: '1.15.0',
  modules: '70',
  nghttp2: '1.34.0',
  napi: '4',
  llhttp: '1.1.1',
  http_parser: '2.8.0',
  openssl: '1.1.0',
  icu: '63.1',
  unicode: '11.0',
  electron: '5.0.6',
  chrome: '73.0.3683.121' }

Steps to reproduce:

  1. Create angular app
  2. add electron to angular app
  3. add opentok/client to angular app
  4. reference it on any component
@jesusvalenzuelar
Copy link
Author

This is the package.json file:

{
  "name": "[YOUR APPLICATION NAME]",
  "version": "1.0.0",
  "description": "[YOUR BASIC APPLICATION DESCRIPTION]",
  "main": "index.js",
  "scripts": {
    "build-ng": "ng build --prod",
    "start-ng": "ng serve --prod",
    "start-electron": "ng build --prod && electron .",
    "dist": "ng build --prod && electron-builder"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "~8.0.0",
    "@angular/common": "~8.0.0",
    "@angular/compiler": "~8.0.0",
    "@angular/core": "~8.0.0",
    "@angular/forms": "~8.0.0",
    "@angular/http": "^7.2.15",
    "@angular/platform-browser": "~8.0.0",
    "@angular/platform-browser-dynamic": "~8.0.0",
    "@angular/router": "~8.0.0",
    "@ngx-loading-bar/core": "^4.2.0",
    "@ngx-loading-bar/http-client": "^4.2.0",
    "@opentok/client": "^2.16.1",
    "classlist.js": "^1.1.20150312",
    "electron-log": "^3.0.6",
    "moment": "^2.24.0",
    "moment-timezone": "^0.5.25",
    "ngx-electron": "^2.1.1",
    "rxjs": "~6.4.0",
    "tslib": "^1.9.0",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.800.0",
    "@angular/cli": "~8.0.2",
    "@angular/compiler-cli": "~8.0.0",
    "@angular/language-service": "~8.0.0",
    "@types/jasmine": "~3.3.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/moment": "^2.13.0",
    "@types/moment-timezone": "^0.5.12",
    "@types/node": "^12.0.8",
    "codelyzer": "^5.0.0",
    "electron": "^5.0.3",
    "electron-builder": "^20.43.0",
    "jasmine-core": "~3.4.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.1.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~2.0.1",
    "karma-jasmine-html-reporter": "^1.4.0",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.15.0",
    "typescript": "~3.4.3"
  },
  "build": {
    "appId": "[YOUR_ID]",
    "mac": {
      "category": "[YOUR_CATEGORY]"
    },
    "nsis": {
      "createDesktopShortcut": "always"
    },
    "dmg": {
      "contents": [
        {
          "x": 110,
          "y": 150
        },
        {
          "x": 240,
          "y": 150,
          "type": "link",
          "path": "/Applications"
        }
      ]
    },
    "linux": {
      "category": "Audio"
    }
  }
}

@jesusvalenzuelar
Copy link
Author

Any update?

@msach22
Copy link
Contributor

msach22 commented Aug 2, 2019

@jesusvalenzuelar Thanks for filing this issue. This looks like an issue with Electron and WebRTC combination. I've gone ahead and commented on the Electron issue on how to reproduce: electron/electron#11112

@jesusvalenzuelar
Copy link
Author

@msach22 Thank you.

@SamirNEddine
Copy link

Hello
Does it mean that we cannot use Electron with OpenTok?

@msach22
Copy link
Contributor

msach22 commented Dec 16, 2019

@SamirNEddine Electron is a supported endpoint by OpenTok - this is just just something we see in the logs although I haven't seen it causing any issues.

@PxlLoewe
Copy link

I have the same issure with peerJS and webrtc in Electron

@ngohuytrieu
Copy link

I am having the same issue here, I am stuck at this for hours, any luck guys?

@LeonErath
Copy link

LeonErath commented Aug 20, 2021

Have the same issue with v13.1.2 when using sip.js (which uses webrtc).

EDIT: Seems to be fixed in future versions. Just tested it with the newest alpha version (15.0.0-alpha-6) and the error was gone 🤔

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

7 participants