Skip to content

Commit

Permalink
Implement a mediarecorder widget (work in progress)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchereau committed Aug 3, 2017
1 parent e4684d7 commit 2038775
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/kidoju.widgets.mediarecorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
_drawVolumeMeter: function (meter) {
var that = this;
if (!this._meter) {
var div = $('<div style="width:100px;height:24px;margin: 0 .2em;"></div>').appendTo(this.toolbar);
var div = $('<div class="kj-mediarecorder-meter"></div>').width(METER.WIDTH).height(METER.HEIGHT).appendTo(this.toolbar);
var surface = drawing.Surface.create(div);
var rect = new geometry.Rect([0, 0], [METER.WIDTH, METER.HEIGHT]);
var frame = new drawing.Rect(rect).stroke('#c8c8c8', 1);
Expand Down
3 changes: 3 additions & 0 deletions src/styles/kidoju.widgets.mediarecorder.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
border-left: 0;
border-right: 0;
}
.kj-mediarecorder .k-toolbar .kj-mediarecorder-meter {
margin: 0 .2em;
}
3 changes: 3 additions & 0 deletions src/styles/kidoju.widgets.mediarecorder.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
border-top: 0;
border-left: 0;
border-right: 0;
.kj-mediarecorder-meter {
margin: 0 .2em;
}
}
}

0 comments on commit 2038775

Please sign in to comment.