mirror of https://github.com/OpenVidu/openvidu.git
videoPlaying event from 'onplaying' to 'oncanplay' (Firefox fix)
parent
e2e32b18cd
commit
8b82a6b530
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "openvidu-browser",
|
"name": "openvidu-browser",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"description": "OpenVidu Browser",
|
"description": "OpenVidu Browser",
|
||||||
"author": "OpenVidu",
|
"author": "OpenVidu",
|
||||||
"license": "Apache-2.0",
|
"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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -269,7 +269,7 @@ export class Stream {
|
||||||
|
|
||||||
if (this.local && !this.displayMyRemote()) {
|
if (this.local && !this.displayMyRemote()) {
|
||||||
this.video.muted = true;
|
this.video.muted = true;
|
||||||
this.video.onplaying = () => {
|
this.video.oncanplay = () => {
|
||||||
console.info("Local 'Stream' with id [" + this.getId() + "] video is now playing");
|
console.info("Local 'Stream' with id [" + this.getId() + "] video is now playing");
|
||||||
this.ee.emitEvent('video-is-playing', [{
|
this.ee.emitEvent('video-is-playing', [{
|
||||||
element: this.video
|
element: this.video
|
||||||
|
@ -608,16 +608,16 @@ export class Stream {
|
||||||
let thumbnailId = videoElement.thumb;
|
let thumbnailId = videoElement.thumb;
|
||||||
let video = videoElement.video;
|
let video = videoElement.video;
|
||||||
video.srcObject = this.wrStream;
|
video.srcObject = this.wrStream;
|
||||||
video.onplaying = () => {
|
video.oncanplay = () => {
|
||||||
if (this.local && this.displayMyRemote()) {
|
if (this.local && this.displayMyRemote()) {
|
||||||
console.info("Your own remote 'Stream' with id [" + this.getId() + "] video is now playing");
|
console.info("Your own remote 'Stream' with id [" + this.getId() + "] video is now playing");
|
||||||
this.ee.emitEvent('remote-video-is-playing', [{
|
this.ee.emitEvent('remote-video-is-playing', [{
|
||||||
element: this.video
|
element: video
|
||||||
}]);
|
}]);
|
||||||
} else if (!this.local && !this.displayMyRemote()) {
|
} else if (!this.local && !this.displayMyRemote()) {
|
||||||
console.info("Remote 'Stream' with id [" + this.getId() + "] video is now playing");
|
console.info("Remote 'Stream' with id [" + this.getId() + "] video is now playing");
|
||||||
this.ee.emitEvent('video-is-playing', [{
|
this.ee.emitEvent('video-is-playing', [{
|
||||||
element: this.video
|
element: video
|
||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
//show(thumbnailId);
|
//show(thumbnailId);
|
||||||
|
|
Loading…
Reference in New Issue