Skip to content

Commit

Permalink
removed unneeded background colors on rec. animations and fixed a bug…
Browse files Browse the repository at this point in the history
… perventing animations showing from non template embedded recorders
  • Loading branch information
iShineGuy authored and iShineGuy committed Feb 11, 2018
1 parent d643b41 commit 5d939d0
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 54 deletions.
6 changes: 4 additions & 2 deletions amd/src/anim_fbars.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ define(['jquery','core/log'], function($, log) {

analyser.core.getByteFrequencyData(dataArray);

canvasCtx.fillStyle = 'rgb(0, 0, 0)';
canvasCtx.fillRect(0, 0, cwidth, cheight);
//filling is rubbish, we just clear it
//canvasCtx.fillStyle = 'rgb(0, 0, 0)';
//canvasCtx.fillRect(0, 0, cwidth, cheight);
canvasCtx.clearRect(0, 0, cwidth,cheight);

var barWidth = (cwidth / bufferLength) * 2.5;
var barHeight;
Expand Down
6 changes: 4 additions & 2 deletions amd/src/anim_hwave.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ define(['jquery','core/log'], function($, log) {

analyser.core.getByteTimeDomainData(dataArray);

canvasCtx.fillStyle = 'rgb(200, 200, 200)';
canvasCtx.fillRect(0, 0, cwidth, cheight);
//filling is rubbish, we just clear it
//canvasCtx.fillStyle = 'rgb(200, 200, 200)';
//canvasCtx.fillRect(0, 0, cwidth, cheight);
canvasCtx.clearRect(0, 0, cwidth,cheight);

canvasCtx.lineWidth = 2;
canvasCtx.strokeStyle = 'rgb(0, 0, 0)';
Expand Down
6 changes: 4 additions & 2 deletions amd/src/poodll_goldmediaskin.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,16 @@ define(['jquery','jqueryui','core/log','filter_poodll/utils_amd', 'filter_poodll
rprogress.init(ip.controlbar.playcanvas);

//init recording anim
var recanim=ripple;
var recanim = null;
switch(ip.config.recanim) {
case 'hwave': recanim=hwave.clone();break;
case 'fbars': recanim=fbars.clone();break;
case 'ripple': recanim=ripple.clone();break;
case 'words': recanim=words.clone();break;
default: ip.config.recanim = 'ripple'; var recanim=ripple.clone();

}
log.debug('recanim=' + ip.config.recanim);
// log.debug('recanim=' + ip.config.recanim);
recanim.init(ip.audioanalyser,ip.controlbar.playcanvas.get(0));


Expand Down
86 changes: 38 additions & 48 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,43 +44,6 @@ Removing CSS from distro
One Button Recorder
*/

.poodll_mediarecorderholder_gold .poodll_preview_gold{
height: 100px;
width: 100px;
border: none;
border-radius: 50%;
z-index: 2;
position: absolute;
left: 135px;
top: 22px;
cursor: pointer;
}
.poodll_mediarecorderholder_gold{
position:relative;
}

.poodll_mediarecorderholder_gold .settingsicon{
position: absolute;
bottom: 75px;
right: 250px;
}
.poodll_mediarecorderholder_gold .settingsicon button{
border: none !important;
background: transparent !important;
}
.poodll_mediarecorderholder_gold .settingsicon button i{
font-size: 18px !important;
color: #333 !important;
}
.poodll_mediarecorderholder_gold .settingsicon button:focus{
border: none;
background: transparent;
}
.poodll_mediarecorderholder_gold .settingsicon button i:hover{
cursor: pointer;
}


/*end*/


Expand Down Expand Up @@ -254,6 +217,43 @@ Base Media skin Setting Integration
src: url('https://fonts.googleapis.com/css?family=Indie+Flower');
}


.poodll_mediarecorderholder_gold .poodll_preview_gold{
height: 100px;
width: 100px;
border: none;
border-radius: 50%;
z-index: 2;
position: absolute;
left: 135px;
top: 22px;
cursor: pointer;
}
.poodll_mediarecorderholder_gold{
position:relative;
}

.poodll_mediarecorderholder_gold .settingsicon{
position: absolute;
bottom: 75px;
right: 250px;
}
.poodll_mediarecorderholder_gold .settingsicon button{
border: none !important;
background: transparent !important;
}
.poodll_mediarecorderholder_gold .settingsicon button i{
font-size: 18px !important;
color: #333 !important;
}
.poodll_mediarecorderholder_gold .settingsicon button:focus{
border: none;
background: transparent;
}
.poodll_mediarecorderholder_gold .settingsicon button i:hover{
cursor: pointer;
}

.poodll_mediarecorder_audio .poodll_mediarecorderbox_gold{
text-align: center;
}
Expand Down Expand Up @@ -329,17 +329,6 @@ Base Media skin Setting Integration
pointer-events: none;
}


/*********************************************END****************************************/





/*
One button
*/

.poodll_status_gold{
display: none;
}
Expand All @@ -353,6 +342,7 @@ Base Media skin Setting Integration
.poodll_mediarecorderholder_gold .poodll_mediarecorderbox_gold button:focus {
outline-style: none;
}
/*********************************************END****************************************/

/*
Expand Down

0 comments on commit 5d939d0

Please sign in to comment.