mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: default filter from pitch to videobalance
parent
59d95ea0c5
commit
926dea1fec
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
|
@ -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: []
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue