openvidu-getaroom: style publisher's video

This commit is contained in:
pabloFuente 2019-06-05 10:08:35 +02:00
parent 9a8007aac2
commit 00252652ea
2 changed files with 2 additions and 4 deletions

View File

@ -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
});

View File

@ -71,9 +71,7 @@
<!-- Session page template -->
<div id="session" hidden>
<div id="videos" class="row no-margin">
<div id="publisher"></div>
</div>
</div>