diff --git a/openvidu-filters/web/app.js b/openvidu-filters/web/app.js
index 5b1177bf..22de67b9 100644
--- a/openvidu-filters/web/app.js
+++ b/openvidu-filters/web/app.js
@@ -198,6 +198,10 @@ function applyFilter() {
filter.type = 'GStreamerFilter';
filter.options = { "command": "audioamplify amplification=1.7" };
break;
+ case 'Pitch':
+ filter.type = 'GStreamerFilter';
+ filter.options = { "command": "pitch pitch=1.2" };
+ break;
case 'Videobox':
filter.type = 'GStreamerFilter';
filter.options = { "command": "videobox fill=black top=-30 bottom=-30 left=-30 right=-30" };
@@ -214,6 +218,10 @@ function applyFilter() {
filter.type = 'GStreamerFilter';
filter.options = { "command": 'clockoverlay valignment=bottom halignment=right shaded-background=true font-desc="Sans, 20"' };
break;
+ case 'Chroma':
+ filter.type = 'GStreamerFilter';
+ filter.options = { "command": 'chromahold target-r=0 target-g=0 target-b=255 tolerance=90' };
+ break;
}
selectedStreamManager.stream.applyFilter(filter.type, filter.options)
.then(f => {
@@ -221,10 +229,10 @@ function applyFilter() {
f.execMethod(
"setOverlayedImage",
{
- "uri": "https://cdn.pixabay.com/photo/2013/07/12/14/14/derby-148046_960_720.png",
- "offsetXPercent": "-0.2F",
+ "uri": "https://cdn.pixabay.com/photo/2017/09/30/09/29/cowboy-hat-2801582_960_720.png",
+ "offsetXPercent": "-0.1F",
"offsetYPercent": "-0.8F",
- "widthPercent": "1.3F",
+ "widthPercent": "1.5F",
"heightPercent": "1.0F"
});
}
diff --git a/openvidu-filters/web/index.html b/openvidu-filters/web/index.html
index c6a769a5..54265af6 100644
--- a/openvidu-filters/web/index.html
+++ b/openvidu-filters/web/index.html
@@ -72,6 +72,7 @@
diff --git a/openvidu-filters/web/style.css b/openvidu-filters/web/style.css
index 702a9872..ef4c1562 100644
--- a/openvidu-filters/web/style.css
+++ b/openvidu-filters/web/style.css
@@ -43,13 +43,6 @@ nav i.fa:hover {
padding-bottom: 80px;
}
-/*vertical-center {
- position: relative;
- top: 30%;
- left: 50%;
- transform: translate(-50%, -50%);
-}*/
-
.horizontal-center {
margin: 0 auto;
}
@@ -140,10 +133,6 @@ a:hover .demo-logo {
text-align: center;
margin-top: 3em;
margin-bottom: 3em;
- /*position: relative;
- top: 20%;
- left: 50%;
- transform: translate(-50%, -50%);*/
}
#img-div img {
@@ -245,11 +234,12 @@ video {
#filter-btns {
display: none;
float: left;
+ width: 100%;
}
#filter-radio-btns {
- margin-left: 20px;
- display: inherit;
+ margin-top: 20px;
+ display: block;
}
#filter-applied-opts {
@@ -266,26 +256,40 @@ video {
margin: 10px 0 30px 0;
}
+#info-msg {
+ margin-top: 20px;
+ color: #7b7b7b;
+ text-align: center;
+}
+
/* xs ans md screen resolutions*/
@media screen and (max-width: 991px) and (orientation: portrait) {
#join-dialog {
max-width: inherit;
}
+
#img-div img {
height: 10%;
}
+
#img-div {
margin-top: 2em;
margin-bottom: 2em;
}
- .container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header {
+
+ .container-fluid>.navbar-collapse,
+ .container-fluid>.navbar-header,
+ .container>.navbar-collapse,
+ .container>.navbar-header {
margin-right: 0;
margin-left: 0;
}
+
.navbar-header i.fa {
font-size: 30px;
}
+
.navbar-header a.nav-icon {
padding: 7px 3px 7px 3px;
}
@@ -296,6 +300,7 @@ video {
margin-top: 1em;
margin-bottom: 1em;
}
+
#join-dialog {
max-width: inherit;
}
@@ -453,10 +458,14 @@ video {
}
@-webkit-keyframes sk-circleBounceDelay {
- 0%, 80%, 100% {
+
+ 0%,
+ 80%,
+ 100% {
-webkit-transform: scale(0);
transform: scale(0);
}
+
40% {
-webkit-transform: scale(1);
transform: scale(1);
@@ -464,10 +473,14 @@ video {
}
@keyframes sk-circleBounceDelay {
- 0%, 80%, 100% {
+
+ 0%,
+ 80%,
+ 100% {
-webkit-transform: scale(0);
transform: scale(0);
}
+
40% {
-webkit-transform: scale(1);
transform: scale(1);