--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
if (dataOnly !== undefined && dataOnly !== null) {
var media = {
audioRecv: true,
videoRecv: true,
audioSend: false,
videoSend: false,
data: true
};
} else {
var media = {
audioRecv: false,
videoRecv: false,
audioSend: useAudio,
videoSend: true,
data: true
};
}
this.pluginHandle.createOffer(
{
media: media,
success: function (jsep) {
// Got publisher, let's configure the feed
var configure = {'request': 'configure', 'audio': useAudio, 'video': true};
self.pluginHandle.send({'message': configure, 'jsep': jsep});
// Update button
$('#publish-btn').data('publishing', true);
},
error: function (error) {
console.log('WebRTC error');
console.log(error);
if (useAudio) {
// try again with no audio
} else {
self._error(error);
}
}
}
);
this.janus.attach(
{
plugin: 'janus.plugin.videoroom',
success: function (pluginHandle) {
remoteFeed = pluginHandle;
console.log('Plugin attached for subscriber');
var listen = { "request": "join", "room": self.options.room_id, "ptype": "listener", "feed": id };
remoteFeed.send({"message": listen});
},
error: this._error,
onmessage: function (msg, jsep) {
var event = msg["videoroom"];
if(event != undefined && event != null) {
if (event === 'attached') {
// Display the feed
remoteFeed.rfindex = self.feeds.length + 1;
remoteFeed.rfid = msg['id'];
remoteFeed.rfdisplay = msg['display'];
self.feeds[self.feeds.length + 1] = remoteFeed;
console.log("Successfully attached to feed " + remoteFeed.rfid + " (" + remoteFeed.rfdisplay + ") in room " + msg["room"]);
} else if (event === 'slow_link') {
if ($('.slow-link').is('hidden'))
$('.slow-link').removeClass('hidden').delay(2000).addClass('hidden');
}
}
if(jsep !== undefined && jsep !== null) {
remoteFeed.createAnswer(
{
jsep: jsep,
media: {audioSend: false, videoSend: false, data: true},
success: function (jsep) {
var body = {'request': 'start', 'room': self.options.room_id};
remoteFeed.send({'message': body, 'jsep': jsep});
},
error: function (error) {
self._error(JSON.stringify(error));
},
}
);
}
},To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
Yeah, well, it didn't look huge to me. I'll do better next time.
So I had a look at the Admin API, and the only difference I could spot is the selected-pair item. It is set to "2 <-> 1" when the listener can send data, "1 <-> 1" otherwise.
Could you give me more information about what it means, and how I could get a constant behaviour between Chrome and Firefox ? I don't really get how the same code can produce such a different result.Here are the handle info:First attempt:Emitter, firefox: http://pastebin.com/T10HUerPEmitter, CHROME: http://pastebin.com/hbwVk4bH
Il giorno venerdì 24 marzo 2017 16:00:53 UTC+1, Jérôme Bajou ha scritto:Yeah, well, it didn't look huge to me. I'll do better next time.If I scroll 3-4 times and I still don't see the end of it, it's huge :-PAnything that fills more than a screen makes it unreadable to me.
So I had a look at the Admin API, and the only difference I could spot is the selected-pair item. It is set to "2 <-> 1" when the listener can send data, "1 <-> 1" otherwise.Those numbers refer to the candidates Janus and the browser have negotiated. One doesn't mean the other is wrong. You may want to check if the same pair is what the browser is using as well (chrome://webrtc-internals), just in case they ended up using a different one for some reason.
Could you give me more information about what it means, and how I could get a constant behaviour between Chrome and Firefox ? I don't really get how the same code can produce such a different result.Here are the handle info:First attempt:Emitter, firefox: http://pastebin.com/T10HUerPEmitter, CHROME: http://pastebin.com/hbwVk4bHWhy two different host addresses? Is one private and one public? Is only one meant to be used? Try explicitly disabling one of the two in janus.cfg for ICE so that libnice only uses the one you want to be used:
Mar 24 16:46:26 ns1 kernel: iptables_INPUT_denied: IN=eth0 OUT= MAC=00:25:90:72:11:b4:10:bd:18:e4:50:40:08:00 SRC=94.66.124.93 DST=188.165.255.53 LEN=120 TOS=0x00 PREC=0x00 TTL=54 ID=59622 PROTO=UDP SPT=65312 DPT=38292 LEN=100
Mar 24 16:46:28 ns1 kernel: iptables_INPUT_denied: IN=eth0 OUT= MAC=00:25:90:72:11:b4:ec:30:91:e0:df:c0:08:00 SRC=94.66.124.93 DST=188.165.255.53 LEN=120 TOS=0x00 PREC=0x00 TTL=54 ID=2317 PROTO=UDP SPT=56957 DPT=42257 LEN=100
On Friday, March 24, 2017 at 5:31:01 PM UTC+2, Lorenzo Miniero wrote:
Il giorno venerdì 24 marzo 2017 16:00:53 UTC+1, Jérôme Bajou ha scritto:Yeah, well, it didn't look huge to me. I'll do better next time.If I scroll 3-4 times and I still don't see the end of it, it's huge :-PAnything that fills more than a screen makes it unreadable to me.Gotcha, depending on your resolution, it might look massive.So I had a look at the Admin API, and the only difference I could spot is the selected-pair item. It is set to "2 <-> 1" when the listener can send data, "1 <-> 1" otherwise.Those numbers refer to the candidates Janus and the browser have negotiated. One doesn't mean the other is wrong. You may want to check if the same pair is what the browser is using as well (chrome://webrtc-internals), just in case they ended up using a different one for some reason.I fail to see any refrence to selected-pair in the webRTC tab of firefox...
Could you give me more information about what it means, and how I could get a constant behaviour between Chrome and Firefox ? I don't really get how the same code can produce such a different result.Here are the handle info:First attempt:Emitter, firefox: http://pastebin.com/T10HUerPEmitter, CHROME: http://pastebin.com/hbwVk4bHWhy two different host addresses? Is one private and one public? Is only one meant to be used? Try explicitly disabling one of the two in janus.cfg for ICE so that libnice only uses the one you want to be used:The server has two public ips (failover), I disabled one, no much luck. I'm starting to think about an iptable issue. What port range should be opened for janus to work properly (UDP)?