Class KStream
- java.lang.Object
-
- org.apache.openmeetings.core.remote.AbstractStream
-
- org.apache.openmeetings.core.remote.KStream
-
- All Implemented Interfaces:
ISipCallbacks
public class KStream extends AbstractStream implements ISipCallbacks
-
-
Field Summary
-
Fields inherited from class org.apache.openmeetings.core.remote.AbstractStream
sid, uid
-
-
Constructor Summary
Constructors Constructor Description KStream(Client.StreamDesc sd, KRoom kRoom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIceCandidate(org.kurento.client.IceCandidate candidate, String uid)voidaddListener(String sid, String uid, String sdpOffer)voidbroadcastRestarted()protected booleancheckFlowOutEventForStopping(org.kurento.client.MediaType mediaType)Invoked in case stream stops to decide on if this stream is worth stopping.booleancontains(String uid)LonggetChunkId()DategetConnectedSince()org.kurento.client.MediaProfileSpecTypegetProfile()org.kurento.client.RecorderEndpointgetRecorder()LonggetRoomId()Client.StreamTypegetStreamType()RecordingChunk.TypegetType()voidonInviteOk(String sdp, Consumer<String> answerConsumer)voidonRegisterOk()voidpauseSharing()voidrelease(boolean remove)voidremove(Client c)voidstartBroadcast(Client.StreamDesc sd, String sdpOffer, Runnable then)voidstartRecord()voidstopBroadcast()voidstopRecord()StringtoString()-
Methods inherited from class org.apache.openmeetings.core.remote.AbstractStream
createPlayerEndpoint, createRecorderEndpoint, createRtpEndpoint, createWebRtcEndpoint, getSid, getUid, release
-
-
-
-
Constructor Detail
-
KStream
public KStream(Client.StreamDesc sd, KRoom kRoom)
-
-
Method Detail
-
startBroadcast
public void startBroadcast(Client.StreamDesc sd, String sdpOffer, Runnable then)
-
checkFlowOutEventForStopping
protected boolean checkFlowOutEventForStopping(org.kurento.client.MediaType mediaType)
Invoked in case stream stops to decide on if this stream is worth stopping. Stop broadcast in case: - If mediaType is anything other then MediaType.AUDIO - If type Audio stop in case it has no Video attached- Parameters:
mediaType- the MediaType that stopped flowing- Returns:
- true in case this stream should be dropped
-
broadcastRestarted
public void broadcastRestarted()
-
startRecord
public void startRecord()
-
stopRecord
public void stopRecord()
-
remove
public void remove(Client c)
-
stopBroadcast
public void stopBroadcast()
-
pauseSharing
public void pauseSharing()
-
release
public void release(boolean remove)
- Specified by:
releasein classAbstractStream
-
addIceCandidate
public void addIceCandidate(org.kurento.client.IceCandidate candidate, String uid)
-
getConnectedSince
public Date getConnectedSince()
-
getRoomId
public Long getRoomId()
-
getStreamType
public Client.StreamType getStreamType()
-
getProfile
public org.kurento.client.MediaProfileSpecType getProfile()
-
getRecorder
public org.kurento.client.RecorderEndpoint getRecorder()
-
getChunkId
public Long getChunkId()
-
getType
public RecordingChunk.Type getType()
-
contains
public boolean contains(String uid)
-
onRegisterOk
public void onRegisterOk()
- Specified by:
onRegisterOkin interfaceISipCallbacks
-
onInviteOk
public void onInviteOk(String sdp, Consumer<String> answerConsumer)
- Specified by:
onInviteOkin interfaceISipCallbacks
-
-