本文整理汇总了Java中com.csipsimple.pjsip.player.IPlayerHandler类的典型用法代码示例。如果您正苦于以下问题:Java IPlayerHandler类的具体用法?Java IPlayerHandler怎么用?Java IPlayerHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPlayerHandler类属于com.csipsimple.pjsip.player包,在下文中一共展示了IPlayerHandler类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stopPlaying
import com.csipsimple.pjsip.player.IPlayerHandler; //导入依赖的package包/类
/**
* Stop eventual player for a given call.
*
* @param callId the call id corresponding to player previously created with
* {@link #playWaveFile(String, int, int)}
* @throws SameThreadException virtual exception to be sure we are calling
* this from correct thread
*/
public void stopPlaying(int callId) throws SameThreadException {
List<IPlayerHandler> players = callPlayers.get(callId, null);
if (players != null) {
for (IPlayerHandler player : players) {
player.stopPlaying();
}
callPlayers.delete(callId);
}
}