- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
screen share not working in 4.1 . response stream id not working . please check
- Tags:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which component are you using with screen sharing?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Google chrome Version 69.0.3497.100 (Official Build) (64-bit). Published extension in chrome extension and stored .
const EXTENSION_ID = 'xxxxxxxxxxxxxxxxx';
const getScreen = document.getElementById('getscreen');
getScreen.addEventListener('click', event => {
chrome.runtime.sendMessage(EXTENSION_ID, {getStream: screen}, response => {
if (response && response.type === 'success') {
navigator.mediaDevices.getUserMedia({
video: {
mandatory: {
chromeMediaSource: 'desktop',
chromeMediaSourceId: response.streamId,
}
}
});
console.log("Hello world!");
console.log(response.streamId);
} else {
console.error('Could anot get stream');
}
})
});
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page