How does Zoom launch their desktop app from Google Chrome?

不羁岁月 提交于 2021-02-04 19:42:26

问题


How does Zoom's website launch Zoom Meetings from Google Chrome? Can I do it using JavaScript? If so, how can I do it? Confirmation dialog box (Image)


回答1:


It's not done with JavaScript, but with plain HTML. The way it works is, you create an <a> with an href attribute with a protocol other than the ones a browser usually recognizes - that is, other than http, https, etc.

If the user has installed an application that recognizes the protocol, the browser will try to open that application.

Similarly to Zoom, for IRC links, you can see something like:

<a href="irc:(IRC INFO HERE)">Link</a>

If you click on that link, and your machine has software installed that recognizes the irc protocol, that application can be opened directly by clicking on the link (possibly asking you if you want to open it first).

There are lots of different protocols for many different applications. They're quite handy for getting info on a web browser to an application on the user's computer.

For Zoom in particular, there's documentation on how to use its protocols here:

https://marketplace.zoom.us/docs/guides/guides/client-url-schemes




回答2:


Making a link with a protocol registered to the zoom app on the operating system.



来源:https://stackoverflow.com/questions/63606813/how-does-zoom-launch-their-desktop-app-from-google-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!