0

I want to compress this track into another track that I can send over WebRTC via addTracks. How would I do this? Was hoping there was an easy option built into the browser

Andrew
  • 6,295
  • 11
  • 56
  • 95

2 Answers2

1

I was able to solve my issue by using constraints. See https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API/Constraints. I can reduce the framerate and the resolution (via height/width).

Andrew
  • 6,295
  • 11
  • 56
  • 95
0

You can do mixing of audio with webaudio and video with a combination of canvas and captureStream.

Here is an old presentation, sadly the talk wasn't recorded.

Philipp Hancke
  • 15,855
  • 2
  • 23
  • 31