Hi @saghul @callmemonky ,
I have an issue when execute getDisplayMedia. When I try to implement getDisplayMedia, It shows dialog to start screen share. After I click start now, nothing happens. My code looks like this:
mediaDevices.getDisplayMedia({ video: true }).then(stream => {
console.log("Succeeded to get screen!");
}).catch(error => {
console.log("Failed to get screen!");
console.log(error);
})
I’ve already implemented the foreground service. Any idea what’s wrong with my code? Thanks.