Rename contents of Screen Capture dialog in web browser

Viewed 69

I am using Screen Capture API to let users record their screen from web browser. It is done using following sample code provided at MDN.

function startCapture(displayMediaOptions) {
 let captureStream = null;

 return navigator.mediaDevices.getDisplayMedia(displayMediaOptions)
    .catch(err => { console.error("Error:" + err); return null; });
}

Screenshot

I want to rename dialog title from "Share your screen" to "Record your screen". Same for button, I want to rename it from "Share" to "Record".

0 Answers
Related