4.0.2 • Published 1 year ago

ember-cli-usermedia v4.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

ember-cli-usermedia

Ember addon providing cross browser access to getUserMedia

Compatibility

  • Ember.js v3.28 or above
  • Ember CLI v3.28 or above
  • Node.js v14 or above

Installation

  • ember install ember-cli-usermedia

Usage

To get a simple HTML5 autoplay video element that grabs the webcam use

{{user-media-src}}

To capture either video or audio use mediaConstraints. The value should be a valid constraints object for getUserMedia. The minimum requirement is the default of { video: true, audio: false }.

myConstraints: { video: true; audio: false; } // default

...

{{user-media-src mediaConstraints=myConstraints}}

To do something more sophisticated in markup, use the block form:

{{#user-media-src mediaConstraints=myConstraints as |media| }}
	<video class="webcam" autoplay=true src={{media.videoUrl}} />
	<!-- or -->
  <video class="webcam" autoplay=true srcObject={{media.videoStream}} />
{{/user-media-src}}

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

License

This project is licensed under the MIT License.

4.0.2

1 year ago

4.0.1

1 year ago

3.1.0

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago