Skip to content

Twilio VideoJs adaptive simulcast undefined error, because of missing width and height properties from MediaTrackSettings #762

@ericzhao0825

Description

@ericzhao0825

YOU MUST read first!

Please use Community Forum for general technical discussions and questions.

  • I have used Google with the error message or bug in association with the library and Cordova words to make sure the issue I'm reporting is only related to iOSRTC.
  • I have provided steps to reproduce (e.g. using sample app code https://github.com/cordova-rtc/cordova-plugin-iosrtc-sample or updated extra/renderer-and-libwebrtc-tests.js file).
  • I have provided versions of third party library name, ios, Xcode and plugin version and adapter.js version if used.

Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed, removing this checkbox will result in automatic closed issue.

Versions affected

  • Cordova version: 10.0.0
  • **Cordova iOS version **: 5
  • Plugin version: 8.0.3
  • iOS version: 15.4
  • Xcode version:13.3
  • WebRTC-adapter version (e.g. 7.4.0):
  • WebRTC Framework version (e.g. JSSip 3.1.2):

Description

width and height properties are missing from MediaStreamTrack.getSettings().

There is undefined error coming from twilio video js when setting preferredVideoCodecs to adaptive simulcast.
Twilio is checking var _a = track.getSettings(), width = _a.width, height = _a.height; var trackPixels_1 = width * height;

Steps to reproduce

set twilio preferredVideoCodecs to 'auto', then publish a local video

Expected results

able to publish a local video track with adaptive simulcast enabled

Actual results

twilio throws undefined error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions