Simple janus client API. It aims to simplify janus client API.
- Video Room
- Video Room (example)
<script src="sjc.videoroom.js"></script>
videoroom = new VideoRoom("ws://localhost:8020");
Parameter:
- Room: integer
videoroom.createRoom(room);
Parameter:
- Room: integer
videoroom.joinRoom(room);
Parameter:
- displayName: string
videoroom.publish(displayName);
videoroom.unpublish();
Parameter:
- target: string
videoroom.string(target);
Called when user connected to janus signaling server.
Called when user joined to room.
Called when user has a local video (stream).
Called when user received a remote video (stream) after subscribing.
Called when user received a janus event.
Called when error occured.