1
votes

I am new in webRTC . As I know WebRTC is use for real time communication . In spec it seems that Stream can be created only by device outout( using GetUserMedia for microphone , camera or chrome tab capture api ) .But in my application i am getting real time Uint8DVideo( eg H264) data . Can i convert this uint8Data to MediaStream ?

1

1 Answers

1
votes

I assume you don't use getUserMedia, but some arbitrary source. Getting this video "buffer" to be displayed is tricky and not possible in every browser (only Chrome and soon Firefox). You don't need WebRTC to do that, but something called Media Source API AKA MSE (E for extensions).

The API is rather picky on it's accepted byte streams, and will not get any "video data". For H264, it will only except fragmented MP4. more info about that here.