[cocos creator 2.4] How play video stream by cc.VideoPlayer

currently i am having problem, i want to display video stream from WebRTC and i think cc.VideoPlayer is responsive but in API there is no srcObject property to be able to assign data stream like this:
video.srcObject = stream;
Thank you all for reading and looking forward to helping you soon

VideoPlayer component does not support video stream, you need to access third-party tools to support it, such as integration with ffmpeg

1 Like

first thank you, but i think it is still possible to display video stream at least with web platform because cc.VideoPlayer is the video tag in htlm, which video tag is perfectly displayable video stream

Yes, there is no restriction on the engine itself that video streams cannot be played, but it is limited by the different platforms, so you have to actually test it to be sure.