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
/**
* 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);
}
}
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
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
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.
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
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
The API interface has high maturity and can quickly connect to existing systems, Can provide customized services according to customer needs
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
© 2023 x2RTC. All rights reserved. 沪ICP备2023023638号-2