LogoLogo
WebsiteGuide & TutorialBlogBook a Demo
1.0.0
1.0.0
  • Acquire Developers Hub
  • Acquire
    • Acquire Build Requirement
      • Requirement For Acquire
      • Acquire Speedtest
  • JS API
    • JS Live Chat API
      • Description
      • Installation
      • Visitor
      • Thread
      • Conversation
      • User Verification
    • Quick Link Support
      • One Click Button
      • Social Media Share
    • Backend JS SDK
      • Setup Backend JS SDK
      • Demo Backend SDK
    • Advanced
      • Widget UI
      • Reference
  • Co Browse APIs
    • Acquire Co Browse
      • Co Browse API
  • Acquire API Events
    • WebRTC Related Events
  • iOS
    • SDK Setup Guide
      • Getting Started
      • Integration Guide (Core)
      • Integration Guide (Lite)
      • Manual Setup iOS
      • Acquire Account ID
    • SDK Configuration Example
    • iOS Cobrowse
    • Theme Setting
    • iOS Push Notifications
    • Verify your users
  • Android
    • Getting Started
      • Integration Guide (Core)
      • Integration Guide (Lite)
      • Start using Acquire
    • Acquire APIs
    • Acquire Delegates
    • Custom UI/widget
    • Cross Platform Integrations
  • Webhook API
    • Webhooks Basic
      • Introduction
      • Webhook Integrate Steps
      • Webhook Format
    • Webhook Events
      • On Chat Start
      • On Chat Accept
      • On Chat Message
      • On Chat Close
  • REST APIs
    • OAuth
      • Authorization
      • Tracklog
    • Profiles API
      • Profile List
      • Thread
      • Feedback
      • Profile Details
      • Message
      • Tags
      • Profile Agents
      • Campaigns
      • Profile Add Update
      • Profile Delete
      • Profile Visit History
      • Sender Emails
    • Chat
      • Chat Notes
    • Analytics
      • Chat Statistics
      • Team Analytics
      • Conversion Rate
      • Chat Tag
      • Co browsing
    • Agent
      • Agents List
      • Agent add
      • Edit / Get-agent
      • Update
    • Trigger
      • Triggers List
      • Triggers Detail
    • Operating Hours
      • Save Operating Hours
      • Get Operating Hours
    • Cobrowse
  • Chatbot API
    • Chat Bot
      • Integrate Your Chatbot
      • Dialog Flow V1 Chat-Bot
      • Dialog Flow V2 Chat-Bot
      • Dialog Flow Fulfillment & Custom Response
      • IBM Watson Integration
      • Amazon Lex Bot
      • Azure's QnA Maker
      • Webhook Calling & User Verification
      • Webhook For Reset Password
  • Knowledge Base APIs
    • Help Docs Setup
      • Get FAQ Categories
      • Get Setup Details
      • Get Side List
      • Get Article
      • Get Recent Article
      • Get Categorized Articles
      • Get Suggestion
  • Errors
    • API Error Handling
      • HTTP Responses
Powered by GitBook
On this page
  1. Acquire API Events

WebRTC Related Events

Acquire WebRTC related event in you can use multiple events and manage custom easily. When you connect video or voice call after all events call. RTC Event in chat start after just call 'rtcroom-incall' api. This api in given user's response true or false and default response given false. User receive voice or video call after this API response given true.

WebRTC Related Events

rtcroom-incall: true/false

Acquire WebRTC event type 'cobrowse-request' users request send after call and this API given user's response true or false. if you want to use video or voice call connect and disconnect after action then use this event.

<script>
    window.acquire = window.acquire || [];
    window.acquire.push(function(app){
        app.on("rtcroom-incall", function (rtcroom_incall) {
            console.log("rtcroom-incall", rtcroom_incall);
			// response true/false
        });
    });
</script>

rtcroom

Event 'rtcroom' in two type parameter using first RTCRoom object, and second RTCRoomUser object. This event will given rtcroom object whenever gets ready and RTCRoomUser which is current's user's object and is responsible for making calls and picking calls.

<script>
    window.acquire.push(function(app){
        app.on("rtcroom", function (rtcroom,rtcroom_user) {
            console.log("rtcroom", rtcroom);
            //console only for example
            console.log("rtcroom1", rtcroom_user);
        });
    });
</script>

RTCRoomUser Object

'rtcroom' event in second object RTCRoomUser Object available. This object in video or voice call status event available.

Status three type in divided. first 'standby' mode by default available or second status type 'incall' video or voice call before joined available and last status type 'joined' user call receive time available.

status() : Status user's video or voice call track and position check. Status three type in divide.

  • standby: This event before call and by default available in object.

  • incall : This event is user's in call video or voice but before call join available.

  • joined : User video and voice call joined after available this event type.

If you want to track call position then use this event status and manage your action.

video_mute();

'video_mute();' in pass true then video call mute and pass false then video call unmute. You can use your action on this event easily.

audio_mute();

'audio_mute();' in pass true then audio/voice call mute and pass false then audio/voice call unmute this is working same as video_mute. You can use your action on this event easily.

stopRTCCall();

If you want to disconnect audio or video call then use this function by API and disconnect your call.

PreviousCo Browse APINextSDK Setup Guide

Last updated 6 years ago