Janus Gateway only work with Web RTC ? Can it be configure to work with flash audio video?

874 views
Skip to first unread message

Justin Patel

unread,
Nov 26, 2014, 10:34:33 PM11/26/14
to meetech...@googlegroups.com
Hello,

As we are planning to use Janus for webinar, we may have few client which do not use web rtc enabled browser, in that case can Janus be integrated with flash audio and video ?

Lorenzo Miniero

unread,
Nov 27, 2014, 4:43:30 AM11/27/14
to meetech...@googlegroups.com
Not at the moment, if you want support for Flash you'll need to integrate this yourself. We have plans to start working on this but not in the near future. A more or less simple approach that doesn't need much coding could be to redirect the incoming video from publishers in the videoroom plugin to an external ffmpeg/gstreamer pipeline that translates the RTP to RTMP/codecs a flash media server expects.

Lorenzo

Justin Patel

unread,
Nov 27, 2014, 5:26:00 AM11/27/14
to meetech...@googlegroups.com
Do you think this can be done by just simple writing plugin for janus? or we have to have new server for this ?

Lorenzo Miniero

unread,
Nov 27, 2014, 5:29:10 AM11/27/14
to meetech...@googlegroups.com
You probably don't need a new plugin for that, you can just extend the videoroom one with the feature you want.

Lorenzo

Justin Patel

unread,
Nov 27, 2014, 6:05:00 AM11/27/14
to meetech...@googlegroups.com
Thank you for fast reply.

I have small question..

If we write java applate plugin for desktop share, can this be transfer with data channel ? and record it ?





On Thursday, November 27, 2014 9:04:33 AM UTC+5:30, Justin Patel wrote:

Lorenzo Miniero

unread,
Nov 27, 2014, 6:06:36 AM11/27/14
to meetech...@googlegroups.com
At the moment the data channels support in Janus is limited to strings, no generic data.

Lorenzo

Justin Patel

unread,
Nov 27, 2014, 6:13:28 AM11/27/14
to meetech...@googlegroups.com
can this be change? or extended ?


On Thursday, November 27, 2014 9:04:33 AM UTC+5:30, Justin Patel wrote:

Lorenzo Miniero

unread,
Nov 27, 2014, 6:14:21 AM11/27/14
to meetech...@googlegroups.com
Further work on data channels is planned not sure when this will happen though.

L.

Justin Patel

unread,
Nov 27, 2014, 7:41:24 AM11/27/14
to meetech...@googlegroups.com
Can we pass webrtc stream to amezone?


On Thursday, November 27, 2014 9:04:33 AM UTC+5:30, Justin Patel wrote:

Lorenzo Miniero

unread,
Nov 27, 2014, 7:56:09 AM11/27/14
to meetech...@googlegroups.com
I don'tknow what that is. :-)

L.

Gatecrasher777

unread,
Nov 27, 2014, 9:02:25 AM11/27/14
to meetech...@googlegroups.com
 
Why would you want ugly old Flash? It is so yesteryear, and doesn't work on many mobile devices.

If you want Webrtc support for Internet Explorer or Safari browsers use the Temasys plugin.  If you use their adapter.js file in your project it will prompt to install the plugin where needed.

If you want Webrtc support for ios devices, your site visitors can use Bowser from the Apple Store.

 


Message has been deleted

Oscar Vadillo

unread,
May 31, 2016, 9:19:46 AM5/31/16
to meetecho-janus
Did anyone used Temasys plugin with Janus gateway? It works?

Lorenzo Miniero

unread,
May 31, 2016, 9:23:24 AM5/31/16
to meetecho-janus
I didn't test it personally, but I know of people who used it successfully. In general, I don't see why it shouldn't, as Janus can talk to whatever uses WebRTC. You may need to edit janus.js (if you're not the WebRTC part yourself) to use a different adapter, though.

L.

Oscar Vadillo

unread,
May 31, 2016, 12:07:33 PM5/31/16
to meetecho-janus
I replaced it with Tamesys adapter.js: https://github.com/Temasys/AdapterJS

But it doesn't work, for example Echo test demo fails receiving the stream on the event 'onlocalstream'. (Attach screenshoots)



Any idea?
Thanks in advanced
Regards

Lorenzo Miniero

unread,
May 31, 2016, 1:04:53 PM5/31/16
to Oscar Vadillo, meetecho-janus

You'll probably have to change the calls to getUserMedia in janus.js, as we don't use what our adapter defines: unless the Temasys plugin defines navigator.mediaDevices.getUserMedia?

That said, I have no idea what the error message in Spanish says. Besides, adapter and janus.js aside, our JavaScript code in the demos is probably something Internet Explorer will never like. I guess you'll have to change parts of that too, e.g., disabling all calls to console.log which IIRC doesn't exist on IE.

PS: also check if attachMediaStream is defined in the plugin adapter, as that's what we use to display the video.

L.

--
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-janu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oscar Vadillo

unread,
May 31, 2016, 1:19:15 PM5/31/16
to meetecho-janus, oscar.v...@gmail.com
Thanks Lorenzo, Temasys plugin defines navigator.mediaDevices.getUserMedia and attachMediaStream.

Sorry for the spanish message. That means: "SCRIPT28: Out of stack space".

Lorenzo Miniero

unread,
May 31, 2016, 2:30:11 PM5/31/16
to meetecho-janus, oscar.v...@gmail.com
Just checked line 182 of echotest.js and it seems harmless, though:


There's a

    if($('#myvideo').length === 0) {

Is that the line in your version as well, or do you have a modified version of the source?

L.

Oscar Vadillo

unread,
May 31, 2016, 2:46:40 PM5/31/16
to meetecho-janus, oscar.v...@gmail.com
I am using the original version, maybe I put some alert at top, but nothing important sentence.

I think that the problem is with the method JSON.stringify in IE11. If I comment all lines with JSON.stringify it works, but in janus.js MUST use the stringify method for communicate with the gateway.


It isn't a problem about Janus but I will let know you when I resolved it.

Thanks Lorenzo

Lorenzo Miniero

unread,
May 31, 2016, 3:09:01 PM5/31/16
to meetecho-janus, oscar.v...@gmail.com
IE doesn't have any stringify support? That's weird... looking around there seems to be a script you can use to do that though: http://www.json.org/js.html

L.

Oscar Vadillo

unread,
May 31, 2016, 3:31:54 PM5/31/16
to meetecho-janus, oscar.v...@gmail.com
JSON.stringify does not support plugin objects.
This is not specific to the Temasys plugin; It's just that stringify doesn't know what a plugin object is.
Best case scenario it will fail on entering the function, worst case it will try and return the kind of errors you are facing now.

At the moment we don't have an elegant solution to this issue and don't want to release and maintain a bad solution.
We also don't see this as blocking issue because there are a lot of ways around (one can build a tree without JSON.stringify)

For these reasons, we don't plan on publishing a solution in the close future.


So I think that I will edit janus.js, replacing JSON.stringify method by one-by-one properties...
Reply all
Reply to author
Forward
0 new messages