Issues while adding janus to a hybrid ionic app.

448 views
Skip to first unread message

Roy Reuvers

unread,
Jul 11, 2017, 10:06:17 AM7/11/17
to meetecho-janus
My college and I are trying to port the videoroom demo to an Ionic (hybrid) App. 
Everything seems to work fine on the web but when we try it on a mobile phone we face the following issue(s).

It is possible to show your own/local stream but this stream does not get send to other participants until you rotate your phone/change your orientation.
Also it is possible to receive streams from other's but when we try to attach it to an element nothing happens.

I wonder if someone already tried to port janus to a hybrid app and if anyone faced the issue mentioned above.

Thanks in advance,

Joost and Roy

Firas Abd Alrahman

unread,
Jul 11, 2017, 12:20:23 PM7/11/17
to Roy Reuvers, meetecho-janus
Welcome Roy,
I already implemented janus on cordova project, everything working fine under crosswalk, and I think if you have android 7 you don't need crosswalk internal browser, but you need to think about old android users.

Everything you say about orientation because browser maybe [maybe] reload the page after changing orientation so your code [maybe] not running well the first time or can be anything else, but it is not related to Janus, it is javascript issues, you need to debug and fix.

I never tested Iphone yet, I read some articles that it is working ( you need crosswalk and another cordova plugin there as iphone has bad webrtc support by default in their internal browser... )

Please note that crosswalk needed for old android versions (4.2-6) and another note that intel stopped crosswalk support some months ago, so latest (very latest) chromium features not supported well ( new web api features ) but mostly you don't need these features at all.

Good Luck!






Roy Reuvers

unread,
Jul 14, 2017, 4:30:55 AM7/14/17
to meetecho-janus
Thanks for the reaction, it was really useful. 
We did add crosswalk and now it works on older android devices. 
Also we found the issue that caused the problems. 
We forced the usage of the h264 codec in our videoroom application, after we changed to the vp8 codec everything worked fine.
Let's hope Apple will add vp8 support before they launch.

Bala Krishna

unread,
Jan 11, 2018, 7:11:06 AM1/11/18
to meetecho-janus
Hey I am facing issue playing rtsp stream in Cordova app. Any help regarding plugins and stuff?

joost vermeulen

unread,
Jan 15, 2018, 4:55:03 AM1/15/18
to meetecho-janus

We changed our framework to react-native, and are using the react-native-webrtc module in our app. It works like a charm.

Anand Setlur

unread,
Jan 24, 2018, 2:08:31 PM1/24/18
to meetecho-janus
@joost
Are you using Webview, for all the remaining web content and react-native only for the webrtc-video rendering  portion? or did you switch all of your hybrid gui code to the react-native gui?

joost vermeulen

unread,
Jan 25, 2018, 3:29:09 AM1/25/18
to meetecho-janus
I changed my whole app to react native framework, from Ionic. It's also faster because in the end its all compiled to native code.

There are several repos woring with janus available at github:

Op woensdag 24 januari 2018 20:08:31 UTC+1 schreef Anand Setlur:

Lorenzo Miniero

unread,
Jan 25, 2018, 4:45:27 AM1/25/18
to meetecho-janus
I didn't know about the first project, good to know there's more efforts in that direction!
Is those projects Android only or iOS too? I'd like to add both of them to the mobile resources:

L. 

joost vermeulen

unread,
Jan 26, 2018, 2:29:20 AM1/26/18
to meetecho-janus
Both repos can work with Android & iOS.
React native is a great framework to accomplish cross platform webrtc support and it's also blazing fast.
It's basically a bridge wich is compiling written javascript code to native languages (Java, Objective-C/Swift).
We use it in our applications and if you installed react-native-webrtc package, you can just use the janus videoroom example from janus-gateway repo with some little modifications. 
I recommand adding them to the resources page!

Op donderdag 25 januari 2018 10:45:27 UTC+1 schreef Lorenzo Miniero:

Lorenzo Miniero

unread,
Jan 26, 2018, 5:21:47 AM1/26/18
to meetecho-janus

Anand Setlur

unread,
Jan 26, 2018, 9:41:31 AM1/26/18
to meetecho-janus
The WorldViews repository also has a modified version of jangouts capable of interfacing with a 360 degree video feed -- Interesting

https://github.com/WorldViews/jangouts

On Friday, January 26, 2018 at 4:21:47 AM UTC-6, Lorenzo Miniero wrote:
Reply all
Reply to author
Forward
0 new messages