x2RTC
  • RTC Pusher
  • RTC Player
  • News
  • Demo Online
/
English
0

Open source audio and video streaming platform, including Client/server

X2RTC is an open source Twilio Video or Agora alternative. Build live video and audio applications and features using a modern, end-to-end WebRTC stack. It also contain GB28181 monitoring platform, with RTSP, RTMP, WebRTC, H.323, SIP, SRT, SRT and so on

Start for free
Read the docs
            
/**
* Turn on the local camera
* 
* @param {(string | HTMLElement)} element
*/
async startCameraPreview(element: string | HTMLElement) {
if (!this.hasVideoTrack) {
    await this._startLocalVideo();
}
this._startLocalPreview(element);
// If there are any unpublished tracks, publish them
this._publishLocalTracks();
}

/**
*
*
*/
async stopCameraPreview() {
if (this.hasVideoTrack) {
    this._stopLocalPreview();
}
}

async startMicrophone() {
await this._startLocalAudio();
// If there are any unpublished tracks, publish them
this._publishLocalTracks();
}

stopMicrophone() {
if (this.hasAudioTrack) {
    this._stopLocalAudio();
}
}

getLocalAudioVolumeLevel() {
return this._localAudioTrack ? this._localAudioTrack.getVolumeLevel() : 0;
}

async muteLocalCamera(mute: boolean) {
// When the camera is on and there is no track
if (!mute && !this.hasVideoTrack) {
    await this._startLocalVideo();
    this._publishLocalTracks();
} else {
    this._muteLocalVideo(mute);
}
}

async muteLocalMicrophone(mute: boolean) {
// When the camera is on and there is no track
if (!mute && !this.hasAudioTrack) {
    await this._startLocalAudio();
    this._publishLocalTracks();
} else {
    this._muteLocalAudio(mute);
}
}

/**
* Starts to preview the local camera
*
* @param {(string | HTMLElement)} element
* @param {VideoPlayerConfig} [config]
*/
async startRemotePreview(userId: string, element: string | HTMLElement, config?: VideoPlayerConfig) {
const remoteUserTrack = this._remoteUsers.get(userId);

if (remoteUserTrack) {
    remoteUserTrack.videoTrack?.play(element, config);
}
}

            
          

X2RTC and Open source

What does X2RTC can do

  • Video conference
  • Live streaming
  • Security emergency
  • Online education
  • Tele medicine
  • IoT

Video conference

Scene Introduction

Build your own customized products based on RESTful API and SDK to help enterprises quickly realize communication needs such as large-scale live conferences, video conferences, remote training, and converged communication

Advantage

  • Excellent QoS policies ensure stable call experience in extremely weak network environments
  • Provide conference source code, a variety of meeting templates, a variety of meeting modes to help fast landing
  • Supports H.323 video terminals, surveillance devices, and telephones to join the meeting, and communicates with each other through different protocols

Product Feature

  • Easy Access

    Low device access cost, no need to integrate SDK, compatible with RTMP Or GB/T28181 national standard protocol docking, zero modification of existing equipment Create and quickly complete audio and video capability access

  • Diversified Deployment

    Support multiple deployment forms such as public cloud, private cloud, and hybrid cloud, The service supports ARM and X86 architectures, making it more user-friendlyUser, second level response, real-time data upload and analysis.

  • Quality Transparent

    Provide full cycle quality monitoring, traceability, and analysis of communication data Solutions, committed to helping users discover problems in a timely manner,Identify the cause and ultimately solve the problem to improve user experience

  • Product Portfolio

    Through an ultra flexible product portfolio and rich functional groups Parts/plugins that can provide users with services that meet various needs Real time interactive solution for scenario requirements, enabling interaction between people Real time interactive connection between people, people and things, and things and things

  • Customizable

    The API interface has high maturity and can quickly connect to existing systems, Can provide customized services according to customer needs

  • RTC+X

    Using RTC as the carrier, it can integrate H.323, video surveillance, SIP, and intercom Machines, etc. adopt the All in one design concept, allowing for different devices and protocols Interconnection

    PRODUCT

  • Server
  • Client

    COMPANY

  • About
  • License

© 2023 x2RTC. All rights reserved. 沪ICP备2023023638号-2