Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Latest commit

 

History

History
43 lines (38 loc) · 1.24 KB

README.md

File metadata and controls

43 lines (38 loc) · 1.24 KB

otalk-media-controller

A module for tracking all media streams in an app, both local and remote.

Properties

  • useAudioWhenAvailable - {Boolean}
  • useVideoWhenAvailable - {Boolean}
  • detectSpeaking - {Boolean}
  • capturingAudio - {Boolean}
  • capturingVideo - {Boolean}
  • capturingScreen - {Boolean}
  • localStreams - {Collection}
  • localScreens - {Collection}
  • localVideoStreams - {Collection}
  • localAudioOnlyStreams - {Collection}
  • remoteStreams - {Collection}
  • remoteVideoStreams - {Collection}
  • remoteAudioOnlyStreams - {Collection}
  • claimedRemoteStreams - {Collection}
  • claimedRemoteVideoStreams - {Collection}
  • claimedRemoteAudioOnlyStreams - {Collection}
  • streams - {Collection}
  • preview - {Stream}
  • defaultOptionalAudioConstraints - {Array}
  • defaultOptionalVideoConstraints - {Array}

Methods

  • addLocalStream(stream, isScreen, opts)
  • addRemoteStream(stream, opts)
  • start(constraints, cb)
  • startScreenShare([constraints,] cb)
  • startPreview(constraints, cb)
  • stop(stream)
  • stopScreenShare(stream)
  • stopPreview()
  • acceptPreview()
  • muteAudio()
  • muteVideo()
  • playAudio()
  • playVideo()
  • ensureLocalStreams(constraints, cb)