openvidu-testapp: default filter from pitch to videobalance

pull/105/head
pabloFuente 2018-08-02 14:11:51 +02:00
parent 59d95ea0c5
commit 926dea1fec
3 changed files with 6 additions and 6 deletions

View File

@ -52,10 +52,10 @@ export class FilterDialogComponent {
stream: Stream; stream: Stream;
filterType = 'GStreamerFilter'; filterType = 'GStreamerFilter';
filterOptions = '{"command": "pitch pitch=1.2 tempo=1.0"}'; filterOptions = '{"command": "videobalance saturation=0.0"}';
filterMethod = 'setElementProperty'; filterMethod = 'setElementProperty';
filterParams = '{"propertyName":"pitch","propertyValue":"0.8"}'; filterParams = '{"propertyName":"saturation","propertyValue":"1.0"}';
response: string; response: string;

View File

@ -26,8 +26,8 @@ export class PublisherPropertiesDialogComponent {
audioDevices = []; audioDevices = [];
videoDevices = []; videoDevices = [];
filter: Filter = { type: 'GStreamerFilter', options: { 'command': 'pitch pitch=0.8 tempo=1.0' } }; filter: Filter = { type: 'GStreamerFilter', options: { 'command': 'videobalance saturation=0.0' } };
stringOptions = "{\"command\":\"pitch pitch=0.8 tempo=1.0\"}"; stringOptions = '{"command":"videobalance saturation=0.0"}';
constructor(public dialogRef: MatDialogRef<PublisherPropertiesDialogComponent>, constructor(public dialogRef: MatDialogRef<PublisherPropertiesDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: PublisherProperties) { @Inject(MAT_DIALOG_DATA) public data: PublisherProperties) {
@ -76,7 +76,7 @@ export class PublisherPropertiesDialogComponent {
} }
} }
try { try {
this.filter.options = JSON.parse(this.stringOptions); this.filter.options = JSON.parse(this.stringOptions);
} catch (e) { } catch (e) {
console.error('Invalid JSON object in "Filter options" field'); console.error('Invalid JSON object in "Filter options" field');
} }

View File

@ -125,7 +125,7 @@ export class OpenviduInstanceComponent implements OnInit, OnChanges, OnDestroy {
videoMinRecvBandwidth: 300, videoMinRecvBandwidth: 300,
videoMaxSendBandwidth: 600, videoMaxSendBandwidth: 600,
videoMinSendBandwidth: 300, videoMinSendBandwidth: 300,
allowedFilters: ['GStreamerFilter'] allowedFilters: []
} }
}; };