OpenVidu.js updated. Minor style changes

This commit is contained in:
pabloFuente 2017-07-24 11:18:29 +02:00
parent e231024acc
commit 0c880a7538
6 changed files with 23 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -112,8 +112,10 @@ export class AppComponent {
}
leaveSession() {
// Disconnect from session and empty all properties
// --- 6) Leave the session by calling 'disconnect' method over the Session object ---
if (this.OV) { this.session.disconnect(); };
// Empty all properties...
this.remoteStreams = [];
this.localStream = null;
this.session = null;

View File

@ -5,7 +5,7 @@
<title>openvidu-insecure-angular</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
<!-- Bootstrap -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
<head>
<title>openvidu-insecure-js</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
<!-- Bootstrap -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
@ -54,7 +54,7 @@
<h1 id="session-title"></h1>
<input class="btn btn-large btn-danger" type="button" id="buttonLeaveSession" onmouseup="leaveSession()" value="Leave session">
</div>
<div id="main-video" class="col-md-6"><p></p><video id="main-video-element" autoplay src=""></video></div>
<div id="main-video" class="col-md-6"><p></p><video autoplay src=""></video></div>
<div id="video-container" class="col-md-6"></div>
</div>
</div>

View File

@ -24,8 +24,8 @@ function joinSession() {
session.on('streamCreated', function (event) {
// Subscribe to the Stream to receive it
// HTML video will be appended to element with 'subscriber' id
var subscriber = session.subscribe(event.stream, 'subscriber');
// HTML video will be appended to element with 'video-container' id
var subscriber = session.subscribe(event.stream, 'video-container');
// When the HTML video has been appended to DOM...
subscriber.on('videoElementCreated', function (event) {