videoPlaying event from 'onplaying' to 'oncanplay' (Firefox fix)

pull/20/head
pabloFuente 2017-10-10 15:54:04 +02:00
parent e2e32b18cd
commit 8b82a6b530
6 changed files with 17 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{
"name": "openvidu-browser",
"version": "1.1.1",
"version": "1.1.2",
"description": "OpenVidu Browser",
"author": "OpenVidu",
"license": "Apache-2.0",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -269,7 +269,7 @@ export class Stream {
if (this.local && !this.displayMyRemote()) {
this.video.muted = true;
this.video.onplaying = () => {
this.video.oncanplay = () => {
console.info("Local 'Stream' with id [" + this.getId() + "] video is now playing");
this.ee.emitEvent('video-is-playing', [{
element: this.video
@ -608,16 +608,16 @@ export class Stream {
let thumbnailId = videoElement.thumb;
let video = videoElement.video;
video.srcObject = this.wrStream;
video.onplaying = () => {
video.oncanplay = () => {
if (this.local && this.displayMyRemote()) {
console.info("Your own remote 'Stream' with id [" + this.getId() + "] video is now playing");
this.ee.emitEvent('remote-video-is-playing', [{
element: this.video
element: video
}]);
} else if (!this.local && !this.displayMyRemote()) {
console.info("Remote 'Stream' with id [" + this.getId() + "] video is now playing");
this.ee.emitEvent('video-is-playing', [{
element: this.video
element: video
}]);
}
//show(thumbnailId);