【发布时间】:2012-01-30 15:48:57
【问题描述】:
我正在开发一个安全监控应用程序,我发现最好的方法是 Skype。
当发生可能的入侵时,应用程序会调用指定的 Skype ID,这可能是我的 Android 手机,我已完成所有图像处理工作。但我被这个 Skype API 卡住了,我写了这段代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SKYPE4COMLib;
namespace SkypeCall
{
class Program
{
static void Main(string[] args)
{
Skype skype;
skype = new Skype("Skype4COM.Skype", "Skype_");
Call call = skype.PlaceCall(SkypeID);
call.StartVideoSend();
}
}
}
这会发起语音通话,但在 call.StartVideoSend();显示错误
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in SkypeCall.exe
Additional information: CALL: Action failed
我什至尝试过this,但我猜那是旧 API,无法从中得到任何东西。 甚至发送commands 也不行。
如果有人能帮助我,我将不胜感激。
【问题讨论】: