JMF在applet的应用问题及SIP库在applet上的使用问题
上个问题没解决,又有新问题
1 JMF的问题
环境:
1.windows xp +jbuilderx
2.服务器linux+apache
用户端windows xp+IE+jmf-2.1.1e.exe(安装后重启过,看环境变量中classpath中有jmf)
代码:
public void init() {
Vector captureDevices = null;
captureDevices = CaptureDeviceManager.getDeviceList(null);
int adsize=captureDevices.size();
System.err.println("capture device size="+adsize);
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
测试结果:
1.在jbuilderx下测试,返回adsize=2,有capture device
2.把jar放到服务器上,jar中有jmf库,用appletviewer测试,adsize=0,没有capture device测到
2 SIP库的问题
环境:
1.windows xp +jbuilderx
2.服务器linux+apache
用户端windows xp+IE+jmf-2.1.1e.exe(安装后重启过,看环境变量中classpath中有jmf)
代码:
AppletUtils.showProperties();
sipStack = sipFactory.createSipStack(AppletUtils.getProperties());
测试结果:
1.在jbuilderx下测试,正常运行
2.把jar放到服务器上,jar中有sip库,但有错误提示,提示中所指的SIP stack在JAR中有
错误显示为:
1322 [thread applet-net/java/sip/communicator/gui/PhoneFrame.class] ERROR sip.SipManager - Could not could not create SipStack!
javax.sip.PeerUnavailableException: The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has been set.
at javax.sip.SipFactory.createStack(Unknown Source)
at javax.sip.SipFactory.createSipStack(Unknown Source)
at net.java.sip.communicator.sip.SipManager.start(SipManager.java:237)
我重新检查过,在jar中gov.nist.javax.sip.SipStackImpl.class存在