本文整理汇总了Java中javax.media.rtp.SessionAddress类的典型用法代码示例。如果您正苦于以下问题:Java SessionAddress类的具体用法?Java SessionAddress怎么用?Java SessionAddress使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SessionAddress类属于javax.media.rtp包,在下文中一共展示了SessionAddress类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initRTP
import javax.media.rtp.SessionAddress; //导入依赖的package包/类
public void initRTP(int port) throws UnknownHostException,
IOException, InvalidSessionAddressException {
rtpManager = RTPManager.newInstance();
rtpManager.addReceiveStreamListener(this);
rtpManager.initialize(new SessionAddress(InetAddress
.getByName(sipHandler.getLocalHost()), port));
}
开发者ID:davidrudder23,项目名称:OpenNotification,代码行数:8,代码来源:SipCall.java
示例2: addTarget
import javax.media.rtp.SessionAddress; //导入依赖的package包/类
public void addTarget( int localPort, RTPManager mgr, String ip, int port) {
try {
SessionAddress addr= new SessionAddress( InetAddress.getByName( ip),
new Integer( port).intValue());
mgr.addTarget( addr);
tx.addTargetToList( localPort + "", ip, port + "");
} catch( Exception e) {
e.printStackTrace();
}
}
开发者ID:champtar,项目名称:fmj-sourceforge-mirror,代码行数:13,代码来源:AVTransmitter.java
示例3: removeTarget
import javax.media.rtp.SessionAddress; //导入依赖的package包/类
public void removeTarget( String ip, String port) {
try {
SessionAddress addr= new SessionAddress( InetAddress.getByName( ip),
new Integer( port).intValue());
for (int i= 0; i < rtpMgrs.length; i++) {
rtpMgrs[ i].removeTarget( addr, "target removed from transmitter.");
}
} catch( Exception e) {
e.printStackTrace();
}
}
开发者ID:champtar,项目名称:fmj-sourceforge-mirror,代码行数:13,代码来源:AVTransmitter.java
示例4: startReceiver
import javax.media.rtp.SessionAddress; //导入依赖的package包/类
private void startReceiver(String remoteHost, int localPort)
throws InvalidSessionAddressException, IOException,
UnknownHostException {
BrokerFactory.getLoggingBroker().logDebug(
"Starting conversation on " + localMediaPort+" to "+remoteHost+":"+localPort);
SessionAddress remoteAddress = new SessionAddress(InetAddress
.getByName(remoteHost), localPort);
rtpManager.addTarget(remoteAddress);
}
开发者ID:davidrudder23,项目名称:OpenNotification,代码行数:10,代码来源:SipOutboundCall.java
示例5: startReceiver
import javax.media.rtp.SessionAddress; //导入依赖的package包/类
private void startReceiver(int port) throws InvalidSessionAddressException,
IOException, UnknownHostException {
BrokerFactory.getLoggingBroker().logDebug(
"Starting conversation on " + localMediaPort);
SessionAddress remoteAddress = new SessionAddress(InetAddress
.getByName(sipHandler.getRemoteHost()), port);
rtpManager.addTarget(remoteAddress);
}
开发者ID:davidrudder23,项目名称:OpenNotification,代码行数:10,代码来源:SipInboundCall.java
示例6: handlePacket
import javax.media.rtp.SessionAddress; //导入依赖的package包/类
@Override
public Packet handlePacket(Packet packet, SessionAddress sessionaddress)
{
return null;
}
开发者ID:Metaswitch,项目名称:fmj,代码行数:6,代码来源:RTPReceiver.java
注:本文中的javax.media.rtp.SessionAddress类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论