Class: palava.LocalPeer

Defined in: coffee/local_peer.coffee
Inherits: palava.Peer

Overview

A specialized peer representing the local user in the conference

Instance Method Summary

Inherited Method Summary

Methods inherited from palava.Peer

#hasAudio #isMuted #isReady #isLocal

Constructor Details

# (void) constructor(id, status, room)

Parameters:

  • id (String) Unique ID of the local peer in the conference
  • status (Object) An object conataining state which is exchanged through the palava machine (see palava.Peer for more informations)
  • room (palava.Room) The room in which the peer is present

Instance Method Details

# (MediaStream) getStream() Bound

Returns the local stream

Returns:

  • (MediaStream) — The local stream as defined by the WebRTC API

# (void) updateStatus(status) Bound

Updates the status of the local peer. The status is extended or updated with the given items.

Parameters:

  • status (Object) Object containing the new items

# (void) hasAudio() Bound

# (void) toggleMute() Bound

# (void) leave() Bound

Leave the room

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: