Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/convoo/webrtc-stream

An element providing access to a user's getUserMedia stream.
https://github.com/convoo/webrtc-stream

Last synced: 8 days ago
JSON representation

An element providing access to a user's getUserMedia stream.

Awesome Lists containing this project

README

        

# webrtc-stream

[![Join the chat at https://gitter.im/convoo/webrtc-elements](https://badges.gitter.im/convoo/webrtc-elements.svg)](https://gitter.im/convoo/webrtc-elements?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

An element providing access to a user's getUserMedia stream.

View the demo at https://convoo.github.io/webrtc-stream/

## Dependencies

Element dependencies are managed via [Bower](http://bower.io/). You can
install that via:

npm install -g bower

Then, go ahead and download the element's dependencies:

bower install

## Deoming the Element

If you wish to work on this element locally, you can use
[Polyserve](https://github.com/PolymerLabs/polyserve) to keep the element's
bower dependencies in line. You can install it via:

npm install -g polyserve

And you can run it via:

polyserve

Once running, you can preview the element at
`http://localhost:8080/components/webrtc-stream/`, where `webrtc-stream` is the name of the directory containing it.

## Testing Your Element

Simply navigate to the `/test` directory of your element to run its tests. If
you are using Polyserve: `http://localhost:8080/components/webrtc-stream/test/`

### web-component-tester

The tests are compatible with [web-component-tester](https://github.com/Polymer/web-component-tester).
Install it via:

npm install -g web-component-tester

Then, you can run your tests on _all_ of your local browsers via:

wct

#### WCT Tips

`wct -l chrome` will only run tests in chrome.

`wct -p` will keep the browsers alive after test runs (refresh to re-run).

`wct test/some-file.html` will test only the files you specify.