本文整理汇总了Java中javax.media.rtp.SendStream类的典型用法代码示例。如果您正苦于以下问题:Java SendStream类的具体用法?Java SendStream怎么用?Java SendStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SendStream类属于javax.media.rtp包,在下文中一共展示了SendStream类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setTrasmit
import javax.media.rtp.SendStream; //导入依赖的package包/类
/**
* Set transmit activity. If the active is true, the instance should trasmit.
* If it is set to false, the instance should pause transmit.
*
* @param active active state
*/
public void setTrasmit(boolean active) {
for (SendStream sendStream : sendStreams) {
try {
if (active) {
sendStream.start();
LOGGER.fine("START");
}
else {
sendStream.stop();
LOGGER.fine("STOP");
}
}
catch (IOException e) {
e.printStackTrace();
}
}
}
示例2: setTrasmit
import javax.media.rtp.SendStream; //导入依赖的package包/类
/**
* Set transmit activity. If the active is true, the instance should trasmit.
* If it is set to false, the instance should pause transmit.
*
* @param active active state
*/
public void setTrasmit(boolean active) {
for (SendStream sendStream : sendStreams) {
try {
if (active) {
sendStream.start();
LOGGER.debug("START");
}
else {
sendStream.stop();
LOGGER.debug("STOP");
}
}
catch (IOException e) {
e.printStackTrace();
}
}
}
示例3: setTrasmit
import javax.media.rtp.SendStream; //导入依赖的package包/类
/**
* Set transmit activity. If the active is true, the instance should trasmit.
* If it is set to false, the instance should pause transmit.
*
* @param active
*/
public void setTrasmit(boolean active) {
for (SendStream sendStream : sendStreams) {
try {
if (active) {
sendStream.start();
System.out.println("START");
} else {
sendStream.stop();
System.out.println("STOP");
}
}
catch (IOException e) {
e.printStackTrace();
}
}
}