mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: use plain openvidu-server HTTP
parent
ee2c3d009b
commit
80ed795c65
|
@ -9,7 +9,7 @@ import { OpenviduParamsService } from './services/openvidu-params.service';
|
|||
})
|
||||
export class AppComponent {
|
||||
|
||||
openviduURL = 'https://' + window.location.hostname + ':4443/';
|
||||
openviduURL = window.location.protocol + '//' + window.location.hostname + ':4443/';
|
||||
openviduSecret = 'MY_SECRET';
|
||||
|
||||
constructor(private router: Router, private openviduParamsService: OpenviduParamsService) { }
|
||||
|
|
|
@ -230,7 +230,11 @@ export class VideoComponent implements OnInit, OnDestroy {
|
|||
pubUnpubVideo() {
|
||||
const publisher: Publisher = <Publisher>this.streamManager;
|
||||
this.videoMuted = !this.videoMuted;
|
||||
publisher.publishVideo(!this.videoMuted);
|
||||
if (this.videoMuted === true) {
|
||||
publisher.publishVideo(false, true);
|
||||
} else {
|
||||
publisher.publishVideo(true);
|
||||
}
|
||||
this.pubSubVideoIcon = this.videoMuted ? 'videocam_off' : 'videocam';
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ export class OpenviduParamsService {
|
|||
|
||||
params: OpenviduParams =
|
||||
{
|
||||
openviduUrl: 'https://' + window.location.hostname + ':4443/',
|
||||
openviduUrl: window.location.protocol + '//' + window.location.hostname + ':4443/',
|
||||
openviduSecret: 'MY_SECRET'
|
||||
};
|
||||
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
|
||||
export const environment = {
|
||||
production: false,
|
||||
OPENVIDU_URL: 'https://localhost:4443',
|
||||
OPENVIDU_URL: 'http://localhost:4443',
|
||||
OPENVIDU_SECRET: 'MY_SECRET'
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue