Skip to content

Commit

Permalink
Add responsive and update bower version (#1)
Browse files Browse the repository at this point in the history
Add responsive and fullbleed options from live-video
  • Loading branch information
sbeleidy committed May 29, 2016
1 parent ef32f86 commit 78478ce
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webrtc-video",
"version": "0.0.2",
"version": "0.0.3",
"authors": [
"Will in China <email.will.in.china@gmail.com>",
"Saad Elbeleidy <sbeleidy90@gmail.com>"
Expand Down
6 changes: 5 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<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>Responsive</label><input type="checkbox" checked="{{responsive::change}}"><br>
<label>Fullbleed</label><input type="checkbox" checked="{{fullbleed::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>
Expand Down Expand Up @@ -60,7 +62,9 @@
volume="{{volume}}"
css-filter="{{filter}}"
canvas-filter="{{canvasFilter}}"
maintain-aspect-ratio="{{ar}}"></webrtc-video>
maintain-aspect-ratio="{{ar}}"
responsive="{{responsive}}"
fullbleed="{{fullbleed}}"></webrtc-video>

</template>
</dom-module>
Expand Down
20 changes: 19 additions & 1 deletion webrtc-video.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
css-filter="{{cssFilter}}"
canvas-filter="{{canvasFilter}}"
fps = {{fps}}
maintain-aspect-ratio="{{maintainAspectRatio}}"></live-video>
maintain-aspect-ratio="{{maintainAspectRatio}}"
responsive="{{responsive}}"
fullbleed="{{fullbleed}}"></live-video>
</template>

<script>
Expand Down Expand Up @@ -155,6 +157,22 @@
notify: true,
reflectToAttribute: true
},
/**
* `responsive` determines whether the video element changes size depending on its parent element
*/
responsive: {
type:Boolean,
notify: true,
reflectToAttribute: true
},
/**
* `fullbleed` determines whether the video element takes up the full size of the parent
*/
fullbleed: {
type:Boolean,
notify: true,
reflectToAttribute: true
},
}
});
</script>
Expand Down

0 comments on commit 78478ce

Please sign in to comment.