问题
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