openvidu-filters: string based GStreamer filters added

This commit is contained in:
pabloFuente 2018-10-25 14:13:55 +02:00
parent ac92c346d5
commit 94820843e8
2 changed files with 5 additions and 5 deletions

View File

@ -202,7 +202,7 @@ function applyFilter() {
filter.type = 'GStreamerFilter';
filter.options = { "command": "videobox fill=black top=-30 bottom=-30 left=-30 right=-30" };
break;
/*case 'Text':
case 'Text':
filter.type = 'GStreamerFilter';
filter.options = { "command": 'textoverlay text="Embedded text!" valignment=top halignment=right font-desc="Cantarell 25" draw-shadow=false' };
break;
@ -213,7 +213,7 @@ function applyFilter() {
case 'Clock':
filter.type = 'GStreamerFilter';
filter.options = { "command": 'clockoverlay valignment=bottom halignment=right shaded-background=true font-desc="Sans, 20"' };
break;*/
break;
}
selectedStreamManager.stream.applyFilter(filter.type, filter.options)
.then(f => {

View File

@ -94,7 +94,7 @@
<label class="radio-inline">
<input type="radio" name="filter" value="Amplify">Audio amplify
</label>
<!--<label class="radio-inline">
<label class="radio-inline">
<input type="radio" name="filter" value="Text">Text
</label>
<label class="radio-inline">
@ -102,7 +102,7 @@
</label>
<label class="radio-inline">
<input type="radio" name="filter" value="Clock">Clock
</label>-->
</label>
</div>
</div>
<div id="filter-removed-opts">
@ -126,4 +126,4 @@
</body>
</html>
</html>