B4J Code Snippet [BANano] Implementing Collaboration with TogetherJS

Discussion in 'B4J Code Snippets' started by Mashiane, Jun 19, 2019.

  1. Mashiane

    Mashiane Expert Licensed User

    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

    Code:
    BANano.Header.AddJavascriptFile("https://togetherjs.com/togetherjs-min.js")
    Then on your page code, add a button / anchor on your page

    Code:
    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
     
    joulongleu likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice