Video.js: How to Play the Stream from the Stream Object in the Video JS

Created on 27 Aug 2020  路  2Comments  路  Source: videojs/video.js

I am not able to play the streamObject which i am receiving through the WEBRTC in the video js. stream is working fine in the html 5 video player though the following code

htmlVideo.srcObject = stream;

so my question is there any way in the video js to pass the stream object or what is alternative of html5 srcObject in the video js

i have also created the sample project on the stackblitz https://stackblitz.com/edit/video-js-in-angular2-with-webrtc?file=src%2Fapp%2Fapp.component.ts

Most helpful comment

I don't think we have official support for it but you can definitely get at the video element via player.tech().el() and set it that way.

All 2 comments

馃憢 Thanks for opening your first issue here! 馃憢

If you're reporting a 馃悶 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

I don't think we have official support for it but you can definitely get at the video element via player.tech().el() and set it that way.

Was this page helpful?
0 / 5 - 0 ratings