openvidu-filters: more filters added

This commit is contained in:
pabloFuente 2018-09-26 19:35:59 +02:00
parent 87bb1af5dd
commit 14161516b2
2 changed files with 29 additions and 1 deletions

View File

@ -192,12 +192,28 @@ function applyFilter() {
break;
case 'Audioecho':
filter.type = 'GStreamerFilter';
filter.options = { "command": "audioecho delay=50000000 intensity=0.6 feedback=0.4" };
filter.options = { "command": "audioecho delay=40000000 intensity=0.7 feedback=0.4" };
break;
case 'Amplify':
filter.type = 'GStreamerFilter';
filter.options = { "command": "audioamplify amplification=1.7" };
break;
case 'Videobox':
filter.type = 'GStreamerFilter';
filter.options = { "command": "videobox fill=black top=-30 bottom=-30 left=-30 right=-30" };
break;
case 'Text':
filter.type = 'GStreamerFilter';
filter.options = { "command": 'textoverlay text="Embedded text!" valignment=top halignment=right font-desc="Cantarell 25" draw-shadow=false' };
break;
case 'Time':
filter.type = 'GStreamerFilter';
filter.options = { "command": 'timeoverlay valignment=bottom halignment=right font-desc="Sans, 20"' };
break;
case 'Clock':
filter.type = 'GStreamerFilter';
filter.options = { "command": 'clockoverlay valignment=bottom halignment=right shaded-background=true font-desc="Sans, 20"' };
break;
}
selectedStreamManager.stream.applyFilter(filter.type, filter.options)
.then(f => {

View File

@ -91,6 +91,18 @@
<label class="radio-inline">
<input type="radio" name="filter" value="Audioecho">Audio echo
</label>
<label class="radio-inline">
<input type="radio" name="filter" value="Amplify">Audio amplify
</label>
<label class="radio-inline">
<input type="radio" name="filter" value="Text">Text
</label>
<label class="radio-inline">
<input type="radio" name="filter" value="Time">Time
</label>
<label class="radio-inline">
<input type="radio" name="filter" value="Clock">Clock
</label>
</div>
</div>
<div id="filter-removed-opts">