Class MediaGatewayV5Connection
java.lang.Object
moe.kyokobot.koe.internal.gateway.AbstractMediaGatewayConnection
moe.kyokobot.koe.internal.gateway.MediaGatewayV5Connection
- All Implemented Interfaces:
MediaGatewayConnection
- Direct Known Subclasses:
MediaGatewayV8Connection
Adds the video sink wants opcode, used by the
MediaValve. Koe also announces video codecs from this version
on.-
Field Summary
Fields inherited from class moe.kyokobot.koe.internal.gateway.AbstractMediaGatewayConnection
allocator, bootstrap, channel, connectAttempt, connectFuture, connection, eventExecutor, resumable, sslContext, version, voiceServerInfo, websocketURI -
Constructor Summary
ConstructorsModifierConstructorDescriptionMediaGatewayV5Connection(MediaConnectionImpl connection, VoiceServerInfo voiceServerInfo) protectedMediaGatewayV5Connection(MediaConnectionImpl connection, VoiceServerInfo voiceServerInfo, int version) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<CodecInfo>codecs()@Nullable MediaValvegetValve()protected JsonObjectprotected voidCalled right after SELECT_PROTOCOL was sent, before announcing our streams.protected voidonReady()Called after READY was dispatched, right before selecting the protocol.protected voidonStreamsChanged(JsonObject payload) Called with the whole VIDEO payload, before the listeners are notified.protected voidonUserDisconnected(String userId) Called before the listeners are notified.protected JsonObjectMethods inherited from class moe.kyokobot.koe.internal.gateway.AbstractMediaGatewayConnection
close, getPing, handlePayload, handlePayload, heartbeatPayload, identify, isOpen, onClose, onSessionDescription, onUsersConnected, reconnect, resume, sendInternalBinPayload, sendInternalPayload, sendRaw, sendRawBin, start, stripPort80, stripScheme, updateSpeakingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface moe.kyokobot.koe.gateway.MediaGatewayConnection
sendMLSCommitWelcome, sendMLSInvalidCommitWelcome, sendMLSKeyPackage, sendSecureFramesReadyForTransition
-
Constructor Details
-
MediaGatewayV5Connection
-
MediaGatewayV5Connection
protected MediaGatewayV5Connection(MediaConnectionImpl connection, VoiceServerInfo voiceServerInfo, int version)
-
-
Method Details
-
getValve
- Specified by:
getValvein interfaceMediaGatewayConnection- Overrides:
getValvein classAbstractMediaGatewayConnection- Returns:
- The
MediaValveused by this connection, or null if this gateway version does not support it.
-
identifyPayload
- Overrides:
identifyPayloadin classAbstractMediaGatewayConnection
-
resumePayload
- Overrides:
resumePayloadin classAbstractMediaGatewayConnection
-
codecs
- Overrides:
codecsin classAbstractMediaGatewayConnection- Returns:
- the codecs announced when selecting the protocol
-
onReady
protected void onReady()Description copied from class:AbstractMediaGatewayConnectionCalled after READY was dispatched, right before selecting the protocol.- Overrides:
onReadyin classAbstractMediaGatewayConnection
-
onStreamsChanged
Description copied from class:AbstractMediaGatewayConnectionCalled with the whole VIDEO payload, before the listeners are notified.- Overrides:
onStreamsChangedin classAbstractMediaGatewayConnection
-
onUserDisconnected
Description copied from class:AbstractMediaGatewayConnectionCalled before the listeners are notified.- Overrides:
onUserDisconnectedin classAbstractMediaGatewayConnection
-
onProtocolSelected
protected void onProtocolSelected()Description copied from class:AbstractMediaGatewayConnectionCalled right after SELECT_PROTOCOL was sent, before announcing our streams.- Overrides:
onProtocolSelectedin classAbstractMediaGatewayConnection
-