-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
212 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
{ | ||
"name": "webrtc-video", | ||
"version": "1.0.7", | ||
"version": "0.0.1", | ||
"authors": [ | ||
"Anonymous <anonymous@example.com>" | ||
"Will in China <email.will.in.china@gmail.com>", | ||
"Saad Elbeleidy <sbeleidy90@gmail.com>" | ||
], | ||
"description": "An element providing a solution to no problem in particular.", | ||
"description": "An element displaying video from a user's stream", | ||
"keywords": [ | ||
"web-component", | ||
"polymer", | ||
"seed" | ||
"seed", | ||
"webrtc", | ||
"getUserMedia" | ||
], | ||
"main": "webrtc-video.html", | ||
"license": "http://polymer.github.io/LICENSE.txt", | ||
"homepage": "https://github.com/<USERNAME>/seed-element/", | ||
"license": "MIT", | ||
"homepage": "https://github.com/convoo/webrtc-video", | ||
"ignore": [ | ||
"/.*", | ||
"/test/" | ||
], | ||
"dependencies": { | ||
"polymer": "Polymer/polymer#^1.2.0" | ||
"polymer": "Polymer/polymer#^1.2.0", | ||
"webrtc-stream": "^0.0.1", | ||
"live-video": "^0.0.2" | ||
}, | ||
"devDependencies": { | ||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0", | ||
"web-component-tester": "^4.0.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,70 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> | ||
<title>webrtc-video Demo</title> | ||
<script src="../../webcomponentsjs/webcomponents-lite.min.js"></script> | ||
<link rel="import" href="../webrtc-video.html"> | ||
</head> | ||
<body unresolved> | ||
</head> | ||
<body unresolved> | ||
<dom-module id="demo"> | ||
<template is="dom-bind" id="demo-template"> | ||
<p>An example of <code><webrtc-video></code>:</p> | ||
<webrtc-video></webrtc-video> | ||
</template> | ||
<template is="dom-bind" id="demo-template"> | ||
|
||
<div style="padding: 10px; margin:5px;"> | ||
You can edit the <webrtc-video> element by updating the following inputs:<br> | ||
<label>Debug</label><input type="checkbox" checked="{{debug::change}}"><br> | ||
<label>Canvas</label><input type="checkbox" checked="{{canvas::change}}"><br> | ||
<label>Mute</label><input type="checkbox" checked="{{mute::change}}"><br> | ||
<label>Disable</label><input type="checkbox" checked="{{disable::change}}"><br> | ||
<label>Mirror</label><input type="checkbox" checked="{{mirror::change}}"><br> | ||
<label>Maintain Aspect Ratio</label><input type="checkbox" checked="{{ar::change}}"><br> | ||
<label>Width</label><input type="number" value="{{width::input}}" min="0"><br> | ||
<label>Height</label><input type="number" value="{{height::input}}" min="0"><br> | ||
<label>Volume</label><input type="range" min="0" max="1" step="0.05" value="{{volume::change}}"><br> | ||
<label>CSS Filter</label> | ||
<select value="{{filter::change}}"> | ||
<option value="">None</option> | ||
<option value="grayscale">Grayscale</option> | ||
<option value="blur">Blur</option> | ||
<option value="sepia">Sepia</option> | ||
<option value="tint">Tint</option> | ||
<option value="inkwell">Inkwell</option> | ||
<option value="hue-rotate">Hue Rotate</option> | ||
<option value="invert">Invert</option> | ||
<option value="saturate">Saturate</option> | ||
<option value="sharpen">Sharpen</option> | ||
</select><br> | ||
|
||
<label>Canvas Filter</label> | ||
<select value="{{canvasFilter::change}}"> | ||
<option value="">None</option> | ||
<option value="grayscale">Grayscale</option> | ||
<option value="blur">Blur</option> | ||
<option value="sepia">Sepia</option> | ||
<option value="tint">Tint</option> | ||
<option value="inkwell">Inkwell</option> | ||
<option value="hue-rotate">Hue Rotate</option> | ||
<option value="invert">Invert</option> | ||
<option value="saturate">Saturate</option> | ||
<option value="sharpen">Sharpen</option> | ||
</select><br> | ||
</div> | ||
|
||
<webrtc-video | ||
debug="{{debug}}" | ||
canvas= "{{canvas}}" | ||
mute="{{mute}}" | ||
disable="{{disable}}" | ||
mirror="{{mirror}}" | ||
width="{{width}}" | ||
height="{{height}}" | ||
volume="{{volume}}" | ||
css-filter="{{filter}}" | ||
canvas-filter="{{canvasFilter}}" | ||
maintain-aspect-ratio="{{ar}}"></webrtc-video> | ||
|
||
</template> | ||
</dom-module> | ||
</body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters