observ-mediastream

3.2.3 • Public • Published

observ-mediastream

An attempt at making a MediaStream represented simply using observables

NPM

unstable bitHound Score

Example Usage

var ObservStream = require('observ-mediastream');
var getUserMedia = require('getusermedia');
var stream = ObservStream();
 
stream(function(value) {
  console.log('captured changes: ', value);
});
 
getUserMedia({ audio: true, video: true }, function(err, s) {
  if (err) {
    return console.error('could not capture media stream: ', err);
  }
 
  setTimeout(function() {
    stream.muted.set(true);
  }, 1000);
 
  stream.set(s);
});
 

License(s)

Apache 2.0

Copyright 2015 National ICT Australia Limited (NICTA)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package Sidebar

Install

npm i observ-mediastream

Weekly Downloads

188

Version

3.2.3

License

Apache 2.0

Unpacked Size

5.96 kB

Total Files

6

Last publish

Collaborators

  • cathylill
  • damonoehlman
  • nathanoehlman