本文整理汇总了Java中org.red5.server.api.stream.StreamState.PAUSED属性的典型用法代码示例。如果您正苦于以下问题:Java StreamState.PAUSED属性的具体用法?Java StreamState.PAUSED怎么用?Java StreamState.PAUSED使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.red5.server.api.stream.StreamState
的用法示例。
在下文中一共展示了StreamState.PAUSED属性的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stop
/**
* Stop this server-side stream
*/
public void stop() {
if (state == StreamState.PLAYING || state == StreamState.PAUSED) {
if (liveJobName != null) {
scheduler.removeScheduledJob(liveJobName);
liveJobName = null;
}
if (vodJobName != null) {
scheduler.removeScheduledJob(vodJobName);
vodJobName = null;
}
if (msgIn != null) {
msgIn.unsubscribe(this);
msgIn = null;
}
if (nextRTMPMessage != null) {
nextRTMPMessage.getBody().release();
}
stopRecording();
setState(StreamState.STOPPED);
}
}
示例2: stop
/**
* Stop this server-side stream
*/
public void stop() {
if (state == StreamState.PLAYING || state == StreamState.PAUSED) {
if (liveJobName != null) {
scheduler.removeScheduledJob(liveJobName);
liveJobName = null;
}
if (vodJobName != null) {
scheduler.removeScheduledJob(vodJobName);
vodJobName = null;
}
if (msgIn != null) {
msgIn.unsubscribe(this);
msgIn = null;
}
if (nextRTMPMessage != null) {
nextRTMPMessage.getBody().release();
}
setState(StreamState.STOPPED);
}
}
示例3: seek
/** {@inheritDoc} */
public void seek(int position) {
// seek only allowed when playing or paused
if (state == StreamState.PLAYING || state == StreamState.PAUSED) {
sendVODSeekCM(msgIn, position);
}
}
示例4: close
/** {@inheritDoc} */
public void close() {
if (state == StreamState.PLAYING || state == StreamState.PAUSED) {
stop();
}
if (msgOut != null) {
msgOut.unsubscribe(this);
}
notifyBroadcastClose();
setState(StreamState.CLOSED);
}
示例5: seek
/** {@inheritDoc} */
public void seek(int position) {
// seek only allowed when playing or paused
if (state == StreamState.PLAYING || state == StreamState.PAUSED) {
sendVODSeekCM(msgIn, position);
}
}
示例6: close
/** {@inheritDoc} */
public void close() {
if (state == StreamState.PLAYING || state == StreamState.PAUSED) {
stop();
}
if (msgOut != null) {
msgOut.unsubscribe(this);
}
recordPipe.unsubscribe((IProvider) this);
notifyBroadcastClose();
setState(StreamState.CLOSED);
}
示例7: isPaused
public boolean isPaused() {
return state == StreamState.PAUSED;
}
示例8: isPaused
/** {@inheritDoc} */
public boolean isPaused() {
return state == StreamState.PAUSED;
}
示例9: isPaused
public boolean isPaused() {
return state == StreamState.PAUSED;
}
示例10: isPaused
/** {@inheritDoc} */
public boolean isPaused() {
return state == StreamState.PAUSED;
}