arctos-SDK For developsarctos-SDK For develops
Home
Okuma
arctos
Contact
  • English
  • 繁體中文
Home
Okuma
arctos
Contact
  • English
  • 繁體中文
  • Guide

    • get-started
  • Spec

    • Peer to Peer Direct
    • Relay based
  • Api

    • Overview
    • Auth
    • Task
    • Business
    • Room
  • Peer to Peer Direct

    • overview
    • installization
    • features

      • initial_setting
      • room
      • camera
      • conference
      • microphone
      • speaker
      • share_screen
      • paint_board
      • recording
      • layout
  • Relay based

    • overview
    • installization
    • features

      • initial_setting
      • camera
      • microphone
      • speaker
      • share_screen
      • paint_board
      • share_message
      • switch_template
      • video_filters

Join Chatting Room or Meeting Room

It's simple to publish the local participant's camera and/or microphone streams to the room.

Let's see how to initialize an arctos instance.

// wait for arctos-widget.js to load
window.addEventListener('ArctosLoad', async function (e) {
  // create an instance of Arctos
  var arctosSdkInstance = new Arctos({
    endpointUrl: 'https://[your-endpoint-url]/',
    endpointKey: '[your-endpoint-key]',
  });

  // create a session object
  await arctosSdkInstance.initSession({
    sessionId: '[task-number]',
    accessToken: '[your-access-token]',
  });

  // other code here
});

Then by calling arctos.initMeetingRoom method you can join a properly initialized session.
// create a meeting room
await arctosSdkInstance.initMeetingRoom({
  isDebug: false,
  recordingAutoStart: false,
  showPrejoin: false,
  showToolbar: false,
});

You must ask CMS Server for a user token. To do so:
  1. Initialize a Task in CMS Server

    • CreateBlankTask
  2. Create a [moderator/publisher] in this task in CMS Server

    • CreateTaskModerator
    • CreateTaskPublisher
  3. Push the accessToken to your client-side to use it on arctosSdkInstance.initSession() method.


The following url is a sample code for joining a meeting room.

Sample Code


Next
camera