Package moe.kyokobot.koe.gateway
Interface MediaValve
- All Known Implementing Classes:
MediaValveImpl
@NonExtendable
public interface MediaValve
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleEvent(JsonObject obj) Handle a voice gateway message.booleanWhether we're deafened, i.e., we are not receiving audio from any user.voidremoveUser(String userId) voidSend aOp.MEDIA_SINK_WANTSpayload to the gateway.voidsetDeafen(boolean deafen) Set whether to deafen ourselves.
-
Method Details
-
isDeafened
boolean isDeafened()Whether we're deafened, i.e., we are not receiving audio from any user. -
setDeafen
void setDeafen(boolean deafen) Set whether to deafen ourselves.You must call
sendToGateway()after calling this method to have any effect. -
sendToGateway
void sendToGateway()Send aOp.MEDIA_SINK_WANTSpayload to the gateway. -
handleEvent
Handle a voice gateway message. -
removeUser
-