-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wip] feat(screensharing): use setDisplayMediaRequestHandler
Signed-off-by: Grigorii K. Shartsev <[email protected]>
- Loading branch information
Showing
5 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,14 @@ let appGetDesktopMediaSourceInstance | |
/** | ||
* Prompt user to select a desktop media source to share and return the selected sourceId or an empty string if canceled | ||
* | ||
* @param sources | ||
Check warning on line 16 in src/talk/renderer/getDesktopMediaSource.js
|
||
* @return {Promise<{ sourceId: string }>} sourceId of the selected mediaSource or an empty string if canceled | ||
*/ | ||
export async function getDesktopMediaSource() { | ||
export async function getDesktopMediaSource(sources) { | ||
if (!appGetDesktopMediaSourceInstance) { | ||
const container = document.body.appendChild(document.createElement('div')) | ||
appGetDesktopMediaSourceInstance = new Vue(AppGetDesktopMediaSource).$mount(container) | ||
const AppGetDesktopMediaSourceCreator = Vue.extend(AppGetDesktopMediaSource) | ||
appGetDesktopMediaSourceInstance = new AppGetDesktopMediaSourceCreator({ propsData: { sources } }).$mount(container) | ||
} | ||
|
||
return appGetDesktopMediaSourceInstance.promptDesktopMediaSource() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters