相关疑难解决方法(0)

Get a stream of bytes from navigator.mediaDevices.getUserMedia()?

I am aware of how to retrieve eg. a video stream from a webcam source:

const constraints = { video: true };

navigator.mediaDevices

    .getUserMedia(constraints)

    .then(mediaStream => {

        // ** But how to get the a stream of bytes from here??? **

    });
Run Code Online (Sandbox Code Playgroud)

I could not find any proper documentation of how to retrieve a stream of bytes from the mediaStream object.

How to do this? Because, lets say I want to stream the bytes to the server.

html javascript webrtc

11
推荐指数
1
解决办法
4884
查看次数

标签 统计

html ×1

javascript ×1

webrtc ×1