Skip to content

Commit 5a3cb89

Browse files
committed
Updated text in VideoRoom demo that reminded deprecated syntax
1 parent 4f18728 commit 5a3cb89

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

html/videoroomtest.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ $(document).ready(function() {
109109
Janus.debug("Consent dialog should be " + (on ? "on" : "off") + " now");
110110
if(on) {
111111
// Darken screen and show hint
112-
$.blockUI({
112+
$.blockUI({
113113
message: '<div><img src="up_arrow.png"/></div>',
114114
css: {
115115
border: 'none',
@@ -457,20 +457,20 @@ function newRemoteFeed(id, display, audio, video) {
457457
Janus.log("Plugin attached! (" + remoteFeed.getPlugin() + ", id=" + remoteFeed.getId() + ")");
458458
Janus.log(" -- This is a subscriber");
459459
// We wait for the plugin to send us an offer
460-
var listen = { "request": "join", "room": myroom, "ptype": "subscriber", "feed": id, "private_id": mypvtid };
460+
var subscribe = { "request": "join", "room": myroom, "ptype": "subscriber", "feed": id, "private_id": mypvtid };
461461
// In case you don't want to receive audio, video or data, even if the
462462
// publisher is sending them, set the 'offer_audio', 'offer_video' or
463463
// 'offer_data' properties to false (they're true by default), e.g.:
464-
// listen["offer_video"] = false;
464+
// subscribe["offer_video"] = false;
465465
// For example, if the publisher is VP8 and this is Safari, let's avoid video
466466
if(video !== "h264" && Janus.webRTCAdapter.browserDetails.browser === "safari") {
467467
if(video)
468468
video = video.toUpperCase()
469469
toastr.warning("Publisher is using " + video + ", but Safari doesn't support it: disabling video");
470-
listen["offer_video"] = false;
470+
subscribe["offer_video"] = false;
471471
}
472472
remoteFeed.videoCodec = video;
473-
remoteFeed.send({"message": listen});
473+
remoteFeed.send({"message": subscribe});
474474
},
475475
error: function(error) {
476476
Janus.error(" -- Error attaching plugin...", error);
@@ -624,7 +624,7 @@ function newRemoteFeed(id, display, audio, video) {
624624
$('#novideo'+remoteFeed.rfindex).remove();
625625
$('#curbitrate'+remoteFeed.rfindex).remove();
626626
$('#curres'+remoteFeed.rfindex).remove();
627-
if(bitrateTimer[remoteFeed.rfindex] !== null && bitrateTimer[remoteFeed.rfindex] !== null)
627+
if(bitrateTimer[remoteFeed.rfindex] !== null && bitrateTimer[remoteFeed.rfindex] !== null)
628628
clearInterval(bitrateTimer[remoteFeed.rfindex]);
629629
bitrateTimer[remoteFeed.rfindex] = null;
630630
remoteFeed.simulcastStarted = false;

0 commit comments

Comments
 (0)