Send a MediaStream (MediaDevices) to another page

Viewed 71

Hello

I have two pages with different domains

i'm using "puppeteer" package to make a fake media stream stream

1 - The first page is sharing the fake mediaStream

2 - On the second page, I have a video player

I want to send the video from the second page to the first page and replace the fake MediaStream with the "new video"

for example :

const stream = document.querySelector("#video");
const abc = stream.captureStream(60);

var option = {video: {mediaSource: 'screen'}};
let streamm = navigator.mediaDevices.getDisplayMedia = (option) => Promise.resolve(abc)

This is what I do if the video is on the same page, but I didn't find any way to take the video from another page

0 Answers
Related