B4J Code Snippet [BANano] Implementing Collaboration with TogetherJS

Hi

So I found this snippy interesting thing from Mozilla called TogetherJS that enables online collaboration and decided to implement on our internal BANano based app. Works like a charm.

Voice - check
Text - check

For more details, see here.

Implementation

On AppStart

B4X:
BANano.Header.AddJavascriptFile("https://togetherjs.com/togetherjs-min.js")

Then on your page code, add a button / anchor on your page

B4X:
Sub btnCollab_click(e As BANanoEvent)
    e.PreventDefault
    Dim theObject As Object = Sender
    banano.RunJavascriptMethod("TogetherJS", Array(theObject))
End Sub

You specify your avatar, can invite others to join and can chat and share screens. By the way, this gif was recorded with my f.lux on.

TogetherJS.gif
 
Top