如何使用 HTML 进行 Skype 通话?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3855650/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 04:45:05  来源:igfitidea点击:

How to use HTML to do a Skype call?

htmlskype

提问by Faili

I tried to insert the following snippet in my script. By clicking the link it should do a call to a Skype account. I've been looking for hours now, but can't figure out why it doesn't work.

我试图在我的脚本中插入以下代码段。通过单击该链接,它应该会呼叫一个 Skype 帐户。我一直在寻找几个小时,但不知道为什么它不起作用。

<pre><code>&lt;a href=&quot;callTo://USERNAME&quot;&gt;&lt;img src=&quot;http://goodies.skype.com/graphics/skypeme_btn_small_green.gif&quot; border=0&gt;&lt;/a&gt;</code></pre>

<pre><code>&lt;a href=&quot;callTo://USERNAME&quot;&gt;&lt;img src=&quot;http://goodies.skype.com/graphics/skypeme_btn_small_green.gif&quot; border=0&gt;&lt;/a&gt;</code></pre>

Is it accepted in any way or do I miss something here?

它以任何方式被接受还是我在这里错过了什么?

回答by ?ime Vidas

Try "callto" (with no uppercase letters).

试试“callto”(没有大写字母)。

<a href="callto://+***********">Link will initiate Skype to call my number!</a>

<a href="skype:********?call">Link will initiate Skype
   to call my Skype username!</a>

source: http://geek.michaelgrace.org/2010/03/create-html-link-that-starts-a-skype-call/

来源:http: //geek.michaelgrace.org/2010/03/create-html-link-that-starts-a-skype-call/

回答by OfficeYA

I have been fighting with the following link all day.

我整天都在与以下链接作斗争。

<a href="skype:USERNAME?chat">Start chat</a>

The problem that I had was with the USERNAMEpart

我遇到的问题是USERNAME部分

Finally, I just solved it.

最后,我刚刚解决了它。

My name on Skype web page was namebut the real name was name lastname. The link in my web page did makeSkype to load in my Android phone but, Skype failed to find the account to wich I wanted to call (name lastname).

我在 Skype 网页上的名字name但真实姓名是name lastname。我网页中的链接确实让Skype 加载到我的 Android 手机中,但是,Skype 未能找到我想要呼叫的帐户(姓氏)。

I tryed, and failed:

我尝试过,但失败了:

<a href="skype:name lastname?call">...
<a href="skype:name+lastname?call">...
<a href="skype:name%20lastname?call">...
<a href="skype:name-lastname?call">...
<a href="skype:name_lastname?call">...
<a href="skype:phonenumber?call">...

Then, the solution:

那么,解决办法:

<a href="skype:live:emailnamewithoutdomain?call">...

I just hope u find it usefull.

我只是希望你觉得它有用。

And, do not forget that u have a plenty of commands to add after the ?in the url (add,call,chat,and so on).

而且,不要忘记在? 在网址中(添加、通话、聊天等)。

回答by Raymond

Just for another option from their official website: https://www.skype.com/en/developer/create-contactme-buttons

只是从他们的官方网站的另一个选项:https: //www.skype.com/en/developer/create-contactme-buttons

It's nice and easy to use, can be used both for chat or/and call.

它很好且易于使用,可用于聊天或/和通话。

enter image description here

在此处输入图片说明