diff --git a/openvidu-getaroom/web/app.js b/openvidu-getaroom/web/app.js index 07b37e91..a7d9108b 100644 --- a/openvidu-getaroom/web/app.js +++ b/openvidu-getaroom/web/app.js @@ -86,14 +86,14 @@ function joinRoom() { // --- 6) Get your own camera stream with the desired properties --- - publisher = OV.initPublisher('publisher', { + publisher = OV.initPublisher('videos', { audioSource: undefined, // The source of audio. If undefined default audio input videoSource: undefined, // The source of video. If undefined default video input publishAudio: true, // Whether to start publishing with your audio unmuted or not publishVideo: true, // Whether to start publishing with your video enabled or not resolution: '640x480', // The resolution of your video frameRate: 30, // The frame rate of your video - insertMode: 'APPEND', // How the video is inserted in target element 'video-container' + insertMode: 'PREPEND', // How the video is inserted in target element 'video-container' mirror: true // Whether to mirror your local video or not }); diff --git a/openvidu-getaroom/web/index.html b/openvidu-getaroom/web/index.html index 24c96443..0be4301b 100644 --- a/openvidu-getaroom/web/index.html +++ b/openvidu-getaroom/web/index.html @@ -71,9 +71,7 @@