Package moe.kyokobot.koe.experimental
Interface MediaConnectionExperimental
- All Superinterfaces:
AutoCloseable,Closeable,MediaConnection
- All Known Implementing Classes:
MediaConnectionImpl
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsetVideoCodec(CodecInfo info) Sets the video codec using a codec info (convenience method).voidsetVideoCodec(CodecInstance videoCodec) Sets the video codec instance for this connection.voidsetVideoSender(VideoFrameProvider sender) voidStarts polling video frames.voidStops polling video frames.Methods inherited from interface moe.kyokobot.koe.MediaConnection
close, connect, disconnect, getAudioSender, getClient, getConnectionHandler, getGatewayConnection, getGuildId, getOptions, getVoiceServerInfo, reconnect, registerListener, setAudioCodec, setAudioCodec, setAudioSender, startAudioFramePolling, stopAudioFramePolling, unregisterListener, updateSpeakingState
-
Method Details
-
getVideoSender
-
setVideoSender
-
setVideoCodec
Sets the video codec instance for this connection.- Parameters:
videoCodec- the codec instance to use, or null to disable video
-
setVideoCodec
Sets the video codec using a codec info (convenience method). Creates a codec instance with default payload types.- Parameters:
info- the codec info to use
-
startVideoFramePolling
void startVideoFramePolling()Starts polling video frames. Called automatically after connecting if codec has been set. -
stopVideoFramePolling
void stopVideoFramePolling()Stops polling video frames.- See Also:
-