Skip to content

stream.getVideoTracks()[0].enabled should blank off the stream? #449

@derMani

Description

@derMani

Expected behavior

getVideoTracks()[0].enabled = false

should blank off the screen (just sending a black image). Ideal for muting the camera.
Same behavior can be seen with webrtc in chrome

Observed behavior

getVideoTracks()[0].enabled = false

just pauses/freezes the screen. The last video frame can be seen

Steps to reproduce the problem

Create a stream with getUserMedia and attach it to a video element

Set

stream.getVideoTracks()[0].enabled

to false

Platform information

  • Cordova version: 8.1.2
  • Cordova ios version: 4.5.5
  • Plugin version: 6.0.3
  • iOS version: 13.2.3
  • Xcode version: 11.2.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions