当前位置: 首页>>代码示例>>Java>>正文


Java SendStream类代码示例

本文整理汇总了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();
        }

    }
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:25,代码来源:AudioChannel.java

示例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();
        }

    }
}
 
开发者ID:bejayoharen,项目名称:java-bells,代码行数:25,代码来源:AudioChannel.java

示例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();
        }

    }
}
 
开发者ID:visit,项目名称:spark-svn-mirror,代码行数:24,代码来源:VideoChannel.java


注:本文中的javax.media.rtp.SendStream类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。