UNPKG

@pano.video/panortc-react-native-sdk

Version:
1,568 lines (1,200 loc) 48.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RtcPropertyAction = exports.RtcPoint = exports.RtcNetworkQuality = exports.RtcSnapshotVideoOption = exports.RtcAudioMixingConfig = exports.FeedbackInfo = exports.QuadTransformOption = exports.BuiltinTransformOption = exports.FaceBeautifyOption = exports.WBConvertConfig = exports.WBDocExtHtml = exports.WBDocContents = exports.WBStamp = exports.WBTextFormat = exports.WBColor = exports.RtcScreenSourceInfo = exports.RtcDeviceInfo = exports.RtcSystemStats = exports.RtcVideoRecvBweStats = exports.RtcVideoSendBweStats = exports.RtcVideoRecvStats = exports.RtcVideoSendStats = exports.RtcAudioRecvStats = exports.RtcAudioSendStats = exports.RtcAudioProfile = exports.RtcAudioLevel = exports.RtcVideoFormat = exports.RtcAudioFormat = exports.RtcRenderConfig = exports.RtcChannelConfig = exports.RtcEngineConfig = void 0; var _Enums = require("./Enums"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * @brief @~english The configurations class of the PanoRtcEngineKit object. * @~chinese PanoRtcEngineKit 对象的配置类。 */ class RtcEngineConfig { /** * @brief @~english The application ID applied from PANO. * @~chinese 从PANO申请的应用标识。 */ /** * @brief @~english The PANO server address. Format: <"domain name">[:port]. * @~chinese PANO服务器地址。格式:<"域名">[:端口] */ /** * @brief @~english Whether the video codec is enabled for hardware acceleration. Default: false. * @~chinese 视频编解码器是否启用硬件加速。默认值:false */ /** * @brief @~english The audio Scenario. Default: 0(voip). * @~chinese 音频场景。默认值:0(voip) */ constructor(appId, rtcServer = 'api.pano.video', videoCodecHwAcceleration = false, audioScenario = 0) { _defineProperty(this, "appId", void 0); _defineProperty(this, "rtcServer", void 0); _defineProperty(this, "videoCodecHwAcceleration", void 0); _defineProperty(this, "audioScenario", void 0); this.appId = appId; this.rtcServer = rtcServer; this.videoCodecHwAcceleration = videoCodecHwAcceleration; this.audioScenario = audioScenario; } } /** * @brief @~english The configurations class for joinning a channel. * @~chinese 用于加入频道的配置类。 */ exports.RtcEngineConfig = RtcEngineConfig; class RtcChannelConfig { /** * @brief @~english Channel working mode. Default: kPanoChannel1v1. * @~chinese 频道工作模式。默认值:kPanoChannel1v1。 */ /** * @brief @~english Channel service serviceFlags. Default: ChannelService.Media | ChannelService.Whiteboard | ChannelService.Message. * @~chinese 频道服务标志。默认值:ChannelService.Media | ChannelService.Whiteboard | ChannelService.Message。 */ /** * @brief @~english Whether to subscribe audio automatically. Default: true. * @~chinese 是否自动订阅所有音频。默认值:true。 */ /** * @brief @~english The user display name. It must compliance with the following rules: * - max length is 128 bytes. * - UTF8 string. * @~chinese 用户显示名字。必须符合以下规则: * - 最大长度是128字节; * - UTF8 字符串。 */ constructor(mode = _Enums.ChannelMode.OneOnOne, serviceFlags = [_Enums.ChannelService.Media, _Enums.ChannelService.Whiteboard, _Enums.ChannelService.Message], subscribeAudioAll = true, userName) { _defineProperty(this, "mode", void 0); _defineProperty(this, "serviceFlags", void 0); _defineProperty(this, "subscribeAudioAll", void 0); _defineProperty(this, "userName", void 0); this.mode = mode; this.serviceFlags = serviceFlags; this.subscribeAudioAll = subscribeAudioAll; this.userName = userName; } } /** * @brief @~english The configurations class of the video renderer. @~chinese 视频渲染器的配置类。 */ exports.RtcChannelConfig = RtcChannelConfig; class RtcRenderConfig { /** * @brief @~english The video profile. Default: Standard. * @~chinese 视频设定档。默认值:Standard。 */ /** * @brief @~english Enable Video Source Mirror. Default: false. * @~chinese 启用视频源镜像, 默认值: false。 */ /** * @brief @~english The video scaling mode. Default: VideoScalingMode.Fit. * @~chinese 视频缩放模式。默认值:VideoScalingMode.Fit。 */ /** * @brief @~english Whether to enable video mirroring. Default: false. * @~chinese 是否启用视频镜像。默认值:false。 */ constructor(profileType = _Enums.VideoProfileType.Standard, sourceMirror = false, scalingMode = _Enums.VideoScalingMode.Fit, mirror = false) { _defineProperty(this, "profileType", void 0); _defineProperty(this, "sourceMirror", void 0); _defineProperty(this, "scalingMode", void 0); _defineProperty(this, "mirror", void 0); this.profileType = profileType; this.sourceMirror = sourceMirror; this.scalingMode = scalingMode; this.mirror = mirror; } } /** * @brief @~english The audio format class. @~chinese 音频格式类。 */ exports.RtcRenderConfig = RtcRenderConfig; class RtcAudioFormat { /** * @brief @~english The audio type. Default: AudioType.PCM. * @~chinese 音频类型。默认值:AudioType.PCM。 */ /** * @brief @~english The number of audio channels. * @~chinese 音频通道数。 */ /** * @brief @~english The audio sample rate. * @~chinese 音频采样率。 */ /** * @brief @~english The bytes per audio frame. * @~chinese 音频每帧的字节数。 */ constructor(type = _Enums.AudioType.PCM, channels = 0, sampleRate = 0, bytesPerSample = 0) { _defineProperty(this, "type", void 0); _defineProperty(this, "channels", void 0); _defineProperty(this, "sampleRate", void 0); _defineProperty(this, "bytesPerSample", void 0); this.type = type; this.channels = channels; this.sampleRate = sampleRate; this.bytesPerSample = bytesPerSample; } } /** * @brief @~english The video format class. @~chinese 视频格式类。 */ exports.RtcAudioFormat = RtcAudioFormat; class RtcVideoFormat { /** * @brief @~english The video type. Default: VideoType.I420. * @~chinese 视频类型。默认值:VideoType.I420。 */ /** * @brief @~english The video width. * @~chinese 视频宽度。 */ /** * @brief @~english The video height. * @~chinese 视频高度。 */ /** * @~english @brief The count of video block array. * @details If the video type is VideoType.I420, the count should be 3. * @~chinese @brief 视频块数组的项目数。 * @details 如果视频类型为 VideoType.I420,则计数应为3。 */ /** * @~english @brief The video block offset array. Item type: number. * @details The offsets are for the first address of the video block. * @~chinese @brief 视频块偏移量数组。项目类型:number。 * @details 偏移量都是针对视频块首地址的。 */ /** * @brief @~english The video block stride array. Item type: number. * @~chinese 视频块步幅数组。项目类型:number。 */ /** * @brief @~english The video rotation degrees. Default: VideoRotation.Rotation0. * @~chinese 视频旋转角度。默认值:VideoRotation.Rotation0。 */ constructor(type = _Enums.VideoType.I420, width = 0, height = 0, count = 0, offset, stride, rotation = _Enums.VideoRotation.Rotation0) { _defineProperty(this, "type", void 0); _defineProperty(this, "width", void 0); _defineProperty(this, "height", void 0); _defineProperty(this, "count", void 0); _defineProperty(this, "offset", void 0); _defineProperty(this, "stride", void 0); _defineProperty(this, "rotation", void 0); this.type = type; this.width = width; this.height = height; this.count = count; this.offset = offset; this.stride = stride; this.rotation = rotation; } } /** * @brief @~english The statistics class of user audio level. @~chinese 音频接收统计类。 */ exports.RtcVideoFormat = RtcVideoFormat; class RtcAudioLevel { /** * @~english @brief The user ID of received audio. * @details The propertie is the user of the audio that has been subscribed. * @~chinese @brief 音频接收用户标识。 * @details 此属性是已被订阅音频的用户。 */ /** * @~english @brief The audio output strength level. Valid value range:[0, 32768]. * @details The propertie is the instantaneous value when callbacking statistics. * @~chinese @brief 音频输出强度级别。有效值范围:[0, 32768]。 * @details 此属性是回调统计时的瞬时值。 */ /** * @~english @brief The audio active flag. * @details The propertie is the instantaneous flag when callbacking statistics. * @~chinese @brief 音频活跃标志。 * @details 此属性是回调统计时的瞬时音频活跃标志。 * */ constructor(userId, level = 0, active = false) { _defineProperty(this, "userId", void 0); _defineProperty(this, "level", void 0); _defineProperty(this, "active", void 0); this.userId = userId; this.level = level; this.active = active; } } /** * @brief @~english Audio profile. @~chinese 音频配置。 */ exports.RtcAudioLevel = RtcAudioLevel; class RtcAudioProfile { /** * @~english @brief The audio sample rate. * @~chinese @brief 音频采样率。 */ /** * @~english @brief The audio channel. * @~chinese @brief 音频通道数。 */ /** * @~english @brief The audio quality Profile. * @~chinese @brief 音频质量。 */ constructor(sampleRate = _Enums.AudioSampleRate.Rate48KHz, channel = _Enums.AudioChannel.Mono, profileQuality = _Enums.AudioProfileQuality.Default) { _defineProperty(this, "sampleRate", void 0); _defineProperty(this, "channel", void 0); _defineProperty(this, "profileQuality", void 0); this.sampleRate = sampleRate; this.channel = channel; this.profileQuality = profileQuality; } } /** * @brief @~english The statistics class of sent audio. @~chinese 音频发送统计类。 */ exports.RtcAudioProfile = RtcAudioProfile; class RtcAudioSendStats { /** * @~english @brief The audio sent bytes. * @details The propertie is the total bytes after the audio is started. * @~chinese @brief 音频发送字节数。 * @details 此属性是音频开启之后的累计字节。 */ /** * @~english @brief The audio sent bitrate. Unit: bps. * @details The propertie is the instantaneous bitrate when callbacking statistics. * @~chinese @brief 音频发送比特率。单位:比特每秒。 * @details 此属性是回调统计时的瞬时比特率。 */ /** * @~english @brief The numnber of audio sent lost packets. * @details The propertie is the total packets after the audio is started. * @~chinese @brief 音频发送丢包数。 * @details 此属性是音频开启之后的累计包数。 */ /** * @~english @brief The audio sent loss ratio. * @details The propertie is the instantaneous ratio when callbacking statistics. * @~chinese @brief 音频发送丢包率。 * @details 此属性是回调统计时的瞬时比率。 */ /** * @~english @brief The audio round-trip time. * @details The propertie is the recent RTT value when callbacking statistics. * @~chinese @brief 音频往返时延。 * @details 此属性是回调统计时的最近往返时延值。 */ /** * @~english @brief The audio input strength level. Valid value range:[0, 32767]. * @details The propertie is the instantaneous value when callbacking statistics. * @~chinese @brief 音频输入强度级别。有效值范围:[0, 32767]。 * @details 此属性是回调统计时的瞬时值。 */ /** * @~english @brief The local audio input active detection * @details The propertie is the instantaneous value when callbacking statistics. * @~chinese @brief 本地用户(麦克风采集)说话检测。 * @details 此属性是回调统计时的瞬时值。 */ // true: active, false: inactive /** * @~english @brief The type of audio codec. * @details The propertie is the dynamic value during audio sending. * @~chinese @brief 音频编码器类型。 * @details 此属性是在音频发送期间是个动态值。 */ constructor(bytesSent, sendBitrate, packetsLost, lossRatio, rtt, inputLevel, inputActiveFlag, codecType) { _defineProperty(this, "bytesSent", void 0); _defineProperty(this, "sendBitrate", void 0); _defineProperty(this, "packetsLost", void 0); _defineProperty(this, "lossRatio", void 0); _defineProperty(this, "rtt", void 0); _defineProperty(this, "inputLevel", void 0); _defineProperty(this, "inputActiveFlag", void 0); _defineProperty(this, "codecType", void 0); this.bytesSent = bytesSent; this.sendBitrate = sendBitrate; this.packetsLost = packetsLost; this.lossRatio = lossRatio; this.rtt = rtt; this.inputLevel = inputLevel; this.inputActiveFlag = inputActiveFlag; this.codecType = codecType; } } /** * @brief @~english The statistics class of received audio. @~chinese 音频接收统计类。 */ exports.RtcAudioSendStats = RtcAudioSendStats; class RtcAudioRecvStats { /** * @~english @brief The user ID of received audio. * @details The propertie is the user of the audio that has been subscribed. * @~chinese @brief 音频接收用户标识。 * @details 此属性是已被订阅音频的用户。 */ /** * @~english @brief The audio received bytes. * @details The propertie is the total bytes after the audio is subscribed. * @~chinese @brief 音频接收字节数。 * @details 此属性是音频订阅之后的累计字节。 */ /** * @~english @brief The audio received bitrate. Unit: bps. * @details The propertie is the instantaneous bitrate when callbacking statistics. * @~chinese @brief 音频接收比特率。单位:比特每秒。 * @details 此属性是回调统计时的瞬时比特率。 */ /** * @~english @brief The numnber of audio received lost packets. * @details The propertie is the total packets after the audio is subscribed. * @~chinese @brief 音频接收丢包数。 * @details 此属性是音频订阅之后的累计包数。 */ /** * @~english @brief The audio received loss ratio. * @details The propertie is the instantaneous ratio when callbacking statistics. * @~chinese @brief 音频接收丢包率。 * @details 此属性是回调统计时的瞬时比率。 */ /** * @~english @brief The audio output strength level. Valid value range:[0, 32767]. * @details The propertie is the instantaneous value when callbacking statistics. * @~chinese @brief 音频输出强度级别。有效值范围:[0, 32767]。 * @details 此属性是回调统计时的瞬时值。 */ /** * @~english @brief The type of audio codec. * @details The propertie is the dynamic value during audio receiving. * @~chinese @brief 音频解码器类型。 * @details 此属性是在音频接收期间是个动态值。 */ constructor(userId, bytesRecv, recvBitrate, packetsLost, lossRatio, outputLevel, codecType) { _defineProperty(this, "userId", void 0); _defineProperty(this, "bytesRecv", void 0); _defineProperty(this, "recvBitrate", void 0); _defineProperty(this, "packetsLost", void 0); _defineProperty(this, "lossRatio", void 0); _defineProperty(this, "outputLevel", void 0); _defineProperty(this, "codecType", void 0); this.userId = userId; this.bytesRecv = bytesRecv; this.recvBitrate = recvBitrate; this.packetsLost = packetsLost; this.lossRatio = lossRatio; this.outputLevel = outputLevel; this.codecType = codecType; } } /** * @brief @~english The statistics class of sent video. @~chinese 视频发送统计类。 */ exports.RtcAudioRecvStats = RtcAudioRecvStats; class RtcVideoSendStats { /** * @~english @brief The stream ID of received video. * @~chinese @brief 视频流标识。 */ /** * @~english @brief The video sent bytes. * @details The propertie is the total bytes after the video is started. * @~chinese @brief 视频发送字节数。 * @details 此属性是视频开启之后的累计字节。 */ /** * @~english @brief The video sent bitrate. Unit: bps. * @details The propertie is the instantaneous bitrate when callbacking statistics. * @~chinese @brief 视频发送比特率。单位:比特每秒。 * @details 此属性是回调统计时的瞬时比特率。 */ /** * @~english @brief The numnber of video sent lost packets. * @details The propertie is the total packets after the video is started. * @~chinese @brief 视频发送丢包数。 * @details 此属性是视频开启之后的累计包数。 */ /** * @~english @brief The video sent loss ratio. * @details The propertie is the instantaneous ratio when callbacking statistics. * @~chinese @brief 视频发送丢包率。 * @details 此属性是回调统计时的瞬时比率。 */ /** * @~english @brief The with of video sent resolution. * @details The propertie is the dynamic value during video sending. * @~chinese @brief 视频发送分辨率的宽度值。 * @details 此属性是在视频发送期间是个动态值。 */ /** * @~english @brief The height of video sent resolution. * @details The propertie is the dynamic value during video sending. * @~chinese @brief 视频发送分辨率的高度值。 * @details 此属性是在视频发送期间是个动态值。 */ /** * @~english @brief The video sent frame rate. * @details The propertie is the dynamic value during video sending. * @~chinese @brief 视频发送帧率。 * @details 此属性是在视频发送期间是个动态值。 */ /** * @~english @brief The number of received PLI packets during video sending. * @details The propertie is the total packets after the video is started. * @~chinese @brief 视频发送期间接收到的PLI包数。 * @details 此属性是视频开启之后的累计包数。 */ /** * @~english @brief The video round-trip time. * @details The propertie is the recent RTT value when callbacking statistics. * @~chinese @brief 视频往返时延。 * @details 此属性是回调统计时的最近往返时延值。 */ /** * @~english @brief The type of video codec. * @details The propertie is the dynamic value during video sending. * @~chinese @brief 视频编码器类型。 * @details 此属性是在视频发送期间是个动态值。 */ constructor(streamId, bytesSent, sendBitrate, packetsLost, lossRatio, width, height, framerate, plisReceived, rtt, codecType) { _defineProperty(this, "streamId", void 0); _defineProperty(this, "bytesSent", void 0); _defineProperty(this, "sendBitrate", void 0); _defineProperty(this, "packetsLost", void 0); _defineProperty(this, "lossRatio", void 0); _defineProperty(this, "width", void 0); _defineProperty(this, "height", void 0); _defineProperty(this, "framerate", void 0); _defineProperty(this, "plisReceived", void 0); _defineProperty(this, "rtt", void 0); _defineProperty(this, "codecType", void 0); this.streamId = streamId; this.bytesSent = bytesSent; this.sendBitrate = sendBitrate; this.packetsLost = packetsLost; this.lossRatio = lossRatio; this.width = width; this.height = height; this.framerate = framerate; this.plisReceived = plisReceived; this.rtt = rtt; this.codecType = codecType; } } /** * @brief @~english The statistics class of received video. @~chinese 视频接收统计类。 */ exports.RtcVideoSendStats = RtcVideoSendStats; class RtcVideoRecvStats { /** * @~english @brief The user ID of received video. * @details The propertie is the user of the video that has been subscribed. * @~chinese @brief 视频接收用户标识。 * @details 此属性是已被订阅视频的用户。 */ /** * @~english @brief The stream ID of received video. * @~chinese @brief 视频流标识。 */ /** * @~english @brief The video received bytes. * @details The propertie is the total bytes after the video is subscribed. * @~chinese @brief 视频接收字节数。 * @details 此属性是视频订阅之后的累计字节。 */ /** * @~english @brief The video received bitrate. Unit: bps. * @details The propertie is the instantaneous bitrate when callbacking statistics. * @~chinese @brief 视频接收比特率。单位:比特每秒。 * @details 此属性是回调统计时的瞬时比特率。 */ /** * @~english @brief The numnber of video received lost packets. * @details The propertie is the total packets after the video is subscribed. * @~chinese @brief 视频接收丢包数。 * @details 此属性是视频订阅之后的累计包数。 */ /** * @~english @brief The video received loss ratio. * @details The propertie is the instantaneous ratio when callbacking statistics. * @~chinese @brief 视频接收丢包率。 * @details 此属性是回调统计时的瞬时比率。 */ /** * @~english @brief The width of video received resolution. * @details The propertie is the dynamic value during video receiving. * @~chinese @brief 视频接收分辨率的宽度值。 * @details 此属性是在视频接收期间是个动态值。 */ /** * @~english @brief The height of video received resolution. * @details The propertie is the dynamic value during video receiving. * @~chinese @brief 视频接收分辨率的高度值。 * @details 此属性是在视频接收期间是个动态值。 */ /** * @~english @brief The video received frame rate. * @details The propertie is the dynamic value during video receiving. * @~chinese @brief 视频接收帧率。 * @details 此属性是在视频接收期间是个动态值。 */ /** * @~english @brief The number of sent PLI packets during video receiving. * @details The propertie is the total packets after the video is subscribed. * @~chinese @brief 视频接收期间发送出的PLI包数。 * @details 此属性是视频订阅之后的累计包数。 */ /** * @~english @brief The type of video codec. * @details The propertie is the dynamic value during video receiving. * @~chinese @brief 视频解码器类型。 * @details 此属性是在视频接收期间是个动态值。 */ constructor(userId, streamId, bytesRecv, recvBitrate, packetsLost, lossRatio, width, height, framerate, plisSent, codecType) { _defineProperty(this, "userId", void 0); _defineProperty(this, "streamId", void 0); _defineProperty(this, "bytesRecv", void 0); _defineProperty(this, "recvBitrate", void 0); _defineProperty(this, "packetsLost", void 0); _defineProperty(this, "lossRatio", void 0); _defineProperty(this, "width", void 0); _defineProperty(this, "height", void 0); _defineProperty(this, "framerate", void 0); _defineProperty(this, "plisSent", void 0); _defineProperty(this, "codecType", void 0); this.userId = userId; this.streamId = streamId; this.bytesRecv = bytesRecv; this.recvBitrate = recvBitrate; this.packetsLost = packetsLost; this.lossRatio = lossRatio; this.width = width; this.height = height; this.framerate = framerate; this.plisSent = plisSent; this.codecType = codecType; } } /** * @typedef RtcScreenRecvStats * @~english @brief The statistics class of sent screen sharing. * @details The properties of this class are same as the RtcScreenRecvStats class. * @~chinese @brief 屏幕共享发送的统计类。 * @details 此类所有属性和 RtcScreenRecvStats 类相同。 */ exports.RtcVideoRecvStats = RtcVideoRecvStats; /** * @brief @~english The statistics class of bandwidth estimation of sent video. * @~chinese 视频发送带宽评估统计类。 */ class RtcVideoSendBweStats { /** * @~english @brief The evaluated bandwidth of sent video. * @details The propertie is the total bandwidth of video and screen sharing. * @~chinese @brief 视频发送的评估带宽。 * @details 此属性是视频和屏幕共享的总带宽。 */ /** * @~english @brief The encode bitrate of sent video. Unit: bps. * @details The propertie is the total encode bitrate of video and screen sharing. * @~chinese @brief 视频发送的编码比特率。单位:比特每秒。 * @details 此属性是视频和屏幕共享的总编码比特率。 */ /** * @~english @brief The transmit bitrate of sent video. Unit: bps. * @details The propertie is the total transmit bitrate of video and screen sharing. * @~chinese @brief 视频发送的传输比特率。单位:比特每秒。 * @details 此属性是视频和屏幕共享的总传输比特率。 */ /** * @~english @brief The retransmit bitrate of sent video. Unit: bps. * @details The propertie is the total retransmit bitrate of video and screen sharing. * @~chinese @brief 视频发送的重传比特率。单位:比特每秒。 * @details 此属性是视频和屏幕共享的总重传比特率。 */ constructor(bandwidth, encodeBitrate, transmitBitrate, retransmitBitrate) { _defineProperty(this, "bandwidth", void 0); _defineProperty(this, "encodeBitrate", void 0); _defineProperty(this, "transmitBitrate", void 0); _defineProperty(this, "retransmitBitrate", void 0); this.bandwidth = bandwidth; this.encodeBitrate = encodeBitrate; this.transmitBitrate = transmitBitrate; this.retransmitBitrate = retransmitBitrate; } } /** * @brief @~english The statistics class of bandwidth estimation of received video. * @~chinese 视频接收带宽评估统计类。 */ exports.RtcVideoSendBweStats = RtcVideoSendBweStats; class RtcVideoRecvBweStats { /** * @~english @brief The user ID of received video. * @details The propertie is the user of the video that has been subscribed. * @~chinese @brief 视频接收用户标识。 * @details 此属性是已被订阅视频的用户。 */ /** * @~english @brief The evaluated bandwidth of received video. * @details The propertie is the total bandwidth of video and screen sharing. * @~chinese @brief 视频接收的评估带宽。 * @details 此属性是视频和屏幕共享的总带宽。 */ constructor(userId, bandwidth) { _defineProperty(this, "userId", void 0); _defineProperty(this, "bandwidth", void 0); this.userId = userId; this.bandwidth = bandwidth; } } /** * @brief @~english The statistics class of system information. @~chinese 系统信息统计类。 */ exports.RtcVideoRecvBweStats = RtcVideoRecvBweStats; class RtcSystemStats { /** * @~english @brief The total cpu usage. Unit: percentage. * @~chinese @brief 总CPU负载。单位:百分比。 */ /** * @~english @brief The total physical memory. Unit: KByte. * @~chinese @brief 总物理内存。单位:千字节。 */ /** * @~english @brief The memory used by current process. Unit: KByte. * @~chinese @brief 当前进程使用内存。单位:千字节。 */ /** * @~english @brief The total memory usage. Unit: percentage. * @~chinese @brief 总内存负载。单位:百分比。 */ constructor(totalCpuUsage, totalPhysMemory, workingSetSize, memoryUsage) { _defineProperty(this, "totalCpuUsage", void 0); _defineProperty(this, "totalPhysMemory", void 0); _defineProperty(this, "workingSetSize", void 0); _defineProperty(this, "memoryUsage", void 0); this.totalCpuUsage = totalCpuUsage; this.totalPhysMemory = totalPhysMemory; this.workingSetSize = workingSetSize; this.memoryUsage = memoryUsage; } } /** * @brief @~english The device information class. @~chinese 设备信息类。 */ exports.RtcSystemStats = RtcSystemStats; class RtcDeviceInfo { /** * @brief @~english The device unque ID. @~chinese 设备唯一标识。 */ /** * @brief @~english The device display name. @~chinese 设备可显示名字。 */ constructor(deviceId, deviceName) { _defineProperty(this, "deviceId", void 0); _defineProperty(this, "deviceName", void 0); this.deviceId = deviceId; this.deviceName = deviceName; } } exports.RtcDeviceInfo = RtcDeviceInfo; /** * @brief @~english The screen source information class. @~chinese 屏幕源信息类。 */ class RtcScreenSourceInfo { /** * @brief @~english The screen source unque ID. @~chinese 屏幕源唯一标识。 */ /** * @brief @~english The screen source display name. @~chinese 屏幕源可显示名字。 */ constructor(sourceId, sourceName) { _defineProperty(this, "sourceId", void 0); _defineProperty(this, "sourceName", void 0); this.sourceId = sourceId; this.sourceName = sourceName; } } /** * @brief @~english The whiteboard color class. @~chinese 白板颜色类。 */ exports.RtcScreenSourceInfo = RtcScreenSourceInfo; class WBColor { /** * @brief @~english The red component, valid value range:[0.0, 1.0]. Default: 0.0. * @~chinese 红色成分,有效值范围:[0.0, 1.0]。默认值:0.0。 */ /** * @brief @~english The green component, valid value range:[0.0, 1.0]. Default: 0.0. * @~chinese 绿色成分,有效值范围:[0.0, 1.0]。默认值:0.0。 */ /** * @brief @~english The blue component, valid value range:[0.0, 1.0]. Default: 0.0. * @~chinese 蓝色成分,有效值范围:[0.0, 1.0]。默认值:0.0。 */ /** * @brief @~english The alpha component, valid value range:[0.0, 1.0]. Default: 1.0. * @~chinese 透明度成分,有效值范围:[0.0, 1.0]。默认值:1.0。 */ constructor(red = 0.0, green = 0.0, blue = 0.0, alpha = 1.0) { _defineProperty(this, "red", void 0); _defineProperty(this, "green", void 0); _defineProperty(this, "blue", void 0); _defineProperty(this, "alpha", void 0); this.red = red; this.green = green; this.blue = blue; this.alpha = alpha; } } /** * @brief @~english The whiteboard text format class. @~chinese 白板文本格式类。 */ exports.WBColor = WBColor; class WBTextFormat { /** * @brief @~english The font style, PanoWBFontStyle enum type. Default: WBFontStyle.Normal. * @~chinese 字体样式,PanoWBFontStyle 枚举类型。默认值:WBFontStyle.Normal。 */ /** * @brief @~english The font size, valid value range:[10, 96]. Default: 12. * @~chinese 字体大小,有效值范围:[10, 96]。默认值:12。 */ constructor(style = _Enums.WBFontStyle.Normal, size = 12) { _defineProperty(this, "style", void 0); _defineProperty(this, "size", void 0); this.style = style; this.size = size; } } /** @brief @~english The whiteboard stamp class. @~chinese 白板图章类。 */ exports.WBTextFormat = WBTextFormat; class WBStamp { /** * @brief @~english Stamp resource ID. * @~chinese 图章资源ID */ /** * @brief @~english Stamp resource local path. * @~chinese 图章资源本地路径 */ /** * @brief @~english stamp could be resized or not. Default: false. * @~chinese 图章是否可以改变大小。默认值:false。 */ constructor(stampId, path, resizable = false) { _defineProperty(this, "stampId", void 0); _defineProperty(this, "path", void 0); _defineProperty(this, "resizable", void 0); this.stampId = stampId; this.path = path; this.resizable = resizable; } } /** * @brief @~english Whiteboard doc content class. @~chinese 白板文件内容类。 * @note * @~english Use Pano whiteboard convert service result to fill urls and count * For H5 convert result, The first url is H5 file url, the second is file download url. * @~chinese 使用Pano白板转码服务结果填充urls和count参数 * 对H5转码结果,第一个参数为H5文件url,第二个参数为下载url。 */ exports.WBStamp = WBStamp; class WBDocContents { /** * @brief @~english Whiteboard file name * @~chinese 白板文件名称。 */ /** * @brief @~english url array (remote url only) * @~chinese url地址数组(仅支持远程url)。 */ /** * @brief @~english thumbnail url array (remote url only) * @~chinese thumbnail url地址数组(仅支持远程url)。 */ /** * @brief @~english upload doc ID. * @~chinese 上传文档的ID。 */ constructor(name, urls, thumbUrls, docId = '') { _defineProperty(this, "name", void 0); _defineProperty(this, "urls", void 0); _defineProperty(this, "thumbUrls", void 0); _defineProperty(this, "docId", void 0); this.name = name; this.urls = urls; this.thumbUrls = thumbUrls; this.docId = docId; } } /** * @brief @~english Whiteboard doc external Html content. @~chinese 白板文件外部Html内容。 * @note * @~english If need synchronize web contents, the web page must integrate PanoExternalHtml SDK. * @~chinese 如果需要同步网页内容,网页需要集成PanoExternalHtml SDK */ exports.WBDocContents = WBDocContents; class WBDocExtHtml { /** * @brief @~english Whiteboard file name * @~chinese 白板文件名称。 */ /** * @brief @~english url (remote url only) * @~chinese url地址(仅支持远程url)。 */ /** * @brief @~english thumbnail url array (remote url only) * @~chinese thumbnail url地址数组(仅支持远程url)。 */ constructor(name = '', url, thumbUrls) { _defineProperty(this, "name", void 0); _defineProperty(this, "url", void 0); _defineProperty(this, "thumbUrls", void 0); this.name = name; this.url = url; this.thumbUrls = thumbUrls; } } /** * @brief @~english The configurations class of whiteboard doc convert. * @~chinese 白板文件转码配置类。 */ exports.WBDocExtHtml = WBDocExtHtml; class WBConvertConfig { /** * @brief @~english Whiteboard doc convert type, WBConvertType enum type. Default: WBConvertType.JPG. * @~chinese 白板文件转码类型 WBConvertType 枚举类型。默认值:WBConvertType.JPG。 */ /** * @brief @~english Whether need thumbnails. Default: false. * @~chinese 是否需要缩略图。默认值:false。 */ constructor(type = _Enums.WBConvertType.JPG, needThumb = false) { _defineProperty(this, "type", void 0); _defineProperty(this, "needThumb", void 0); this.type = type; this.needThumb = needThumb; } } /** * @brief @~english The whiteboard file information class. * @~chinese 白板文件信息类。 */ exports.WBConvertConfig = WBConvertConfig; /** @brief @~english The face beautify option class. @~chinese 美颜选项类。 */ class FaceBeautifyOption { /** * @brief @~english Whether to enable face beautify. Default: false. * @~chinese 是否开启美颜。默认值:false */ /** * @brief @~english The intensity of face beautify, valid value range:[0.0, 1.0]. Default: 0.5. * @~chinese 美颜强度,有效值范围:[0.0, 1.0]。默认值:0.5。 */ constructor(enable = false, intensity = 0.5) { _defineProperty(this, "enable", void 0); _defineProperty(this, "intensity", void 0); this.enable = enable; this.intensity = intensity; } } /** * @brief @~english (Deprecated) The built-in video transform option class. @~chinese (已废弃)视频内嵌变换选项类。 */ exports.FaceBeautifyOption = FaceBeautifyOption; class BuiltinTransformOption { /** * @brief @~english Whether to enable built-in transform on video. Default: false. * @~chinese 是否开启视频内嵌变换。默认值:false */ /** * @brief @~english True to reset all parameters, false don't reset parameters. Default: false. * @~chinese true 重置所有的视频形变参数, false 不重置视频形变参数。默认值:false */ /** * @brief @~english scaling factor in X axis (1.0: no scaling). Default: 1.0. * @~chinese X轴缩放比例 (1.0:no scaling)。默认值:1.0。 */ /** * @brief @~english scaling factor in Y axis (1.0: no scaling). Default: 1.0. * @~chinese Y轴缩放比例 (1.0:no scaling)。默认值:1.0。 */ /** * @brief @~english Delta angle of the rotation (in radians) in X axis. Default: 0.0 * @~chinese X轴旋转角度的差值。默认值:0.0。 */ /** * @brief @~english Delta Angle of the rotation (in radians) in Y axis. Default: 0.0 * @~chinese Y轴旋转角度的差值。默认值:0.0。 */ /** * @brief @~english Delta Angle of the rotation (in radians) in Z axis. Default: 0.0 * @~chinese Z轴旋转角度的差值。默认值:0.0。 */ /** * @brief @~english Projection Depth along X axis. Default: 0.0. * @~chinese X轴的投影深度。 默认值:0.0。 */ /** * @brief @~english Projection Depth along Y axis. Default: 0.0. * @~chinese Y轴的投影深度。 默认值:0.0。 */ constructor(enable = false, bReset = false, xScaling = 1.0, yScaling = 1.0, xRotation = 0.0, yRotation = 0.0, zRotation = 0.0, xProjection = 0.0, yProjection = 0.0) { _defineProperty(this, "enable", void 0); _defineProperty(this, "bReset", void 0); _defineProperty(this, "xScaling", void 0); _defineProperty(this, "yScaling", void 0); _defineProperty(this, "xRotation", void 0); _defineProperty(this, "yRotation", void 0); _defineProperty(this, "zRotation", void 0); _defineProperty(this, "xProjection", void 0); _defineProperty(this, "yProjection", void 0); this.enable = enable; this.bReset = bReset; this.xScaling = xScaling; this.yScaling = yScaling; this.xRotation = xRotation; this.yRotation = yRotation; this.zRotation = zRotation; this.xProjection = xProjection; this.yProjection = yProjection; } } /** * @brief @~english The quadrilateral video transform option class. @~chinese 视频四边形变换选项类。 */ exports.BuiltinTransformOption = BuiltinTransformOption; class QuadTransformOption { /** * @brief @~english Whether to enable quadrilateral transform on video. Default: false. * @~chinese 是否开启视频四边形变换。默认值:false */ /** * @brief @~english True to reset all quadrilateral transform parameters, false don't reset quadrilateral transform parameters. Default: false. * @~chinese true 重置所有的视频四边形形变参数, false 不重置视频四边形形变参数。默认值:false */ /** * @brief @~english Vertex index of a quadrilateral. TopLeft: 0, TopRight: 1, BottomLeft: 2, BottomRight: 3 * @~chinese 四边形顶点索引。 左上角:0,右上角:1,左下角:2,右下角:3 */ /** * @brief @~english Delta of x axis, The origin (0,0) of the video is the top left, the whole size of video is 1x1, can be negative (top or left is out of view), and can be greater than 1 (bottom or right is out of view). * @~chinese X坐标轴的差值,视频的左上角为坐标系的原点(0,0),视频完整大小为1x1,可以为负值(左侧超出屏幕),可以为大于1的值(右侧超出屏幕) */ /** * @brief @~english Delta of y axis, The origin (0,0) of the video is the top left, the whole size of video is 1x1, can be negative (top or left is out of view), and can be greater than 1 (bottom or right is out of view). * @~chinese Y坐标轴的差值,视频的左上角为坐标系的原点(0,0),视频完整大小为1x1,可以为负值(左或上超出屏幕),可以为大于1的值(右或下超出屏幕) */ /** * @brief @~english Set Mirror mode for video transform (exchange left and right). Note: Set mirror mode to true when using front facing camera, false when using back facing camera. Reset doesn't reset this, but keeps last value. * @~chinese 设置视频变换为镜像模式(左右交换)。注意:使用前置摄像头时需要设置为true,使用后置摄像头时需要设置为false。重置参数时,并不会改变mirror的值,仍将保持上次的设置。 */ constructor(enable = false, bReset = false, index = _Enums.QuadIndex.TopLeft, xDeltaAxis = 0.0, yDeltaAxis = 0.0, bMirror = false) { _defineProperty(this, "enable", void 0); _defineProperty(this, "bReset", void 0); _defineProperty(this, "index", void 0); _defineProperty(this, "xDeltaAxis", void 0); _defineProperty(this, "yDeltaAxis", void 0); _defineProperty(this, "bMirror", void 0); this.enable = enable; this.bReset = bReset; this.index = index; this.xDeltaAxis = xDeltaAxis; this.yDeltaAxis = yDeltaAxis; this.bMirror = bMirror; } } /** * @brief @~english Feedback info class, user can send feedback to PANO. * @~chinese 用户反馈信息类,用于发送用户反馈。 */ exports.QuadTransformOption = QuadTransformOption; class FeedbackInfo { /** * @brief @~english Feedback type. Default: kPanoFeedbackGeneral. * @~chinese 反馈类型。默认值:kPanoFeedbackGeneral。 */ /** * @brief @~english Product name, max length 128 bytes. * @~chinese 产品名,最多128字节。 */ /** * @brief @~english Detail description of problem, max length 1024 bytes. * @~chinese 问题详细描述,最多1024字节。 */ /** * @brief @~english User contact, max length 128 bytes. * @~chinese 联系信息,最多128字节。 */ /** * @brief @~english User extra info, max length 256 bytes. * @~chinese 附加信息,最多256字节。 */ /** * @brief @~english Whether to upload logs. Default: false. * @~chinese 是否上传日志。默认值:false */ constructor(type, productName, detailDescription, contact, extraInfo, uploadLogs = false) { _defineProperty(this, "type", void 0); _defineProperty(this, "productName", void 0); _defineProperty(this, "detailDescription", void 0); _defineProperty(this, "contact", void 0); _defineProperty(this, "extraInfo", void 0); _defineProperty(this, "uploadLogs", void 0); this.type = type; this.productName = productName; this.detailDescription = detailDescription; this.contact = contact; this.extraInfo = extraInfo; this.uploadLogs = uploadLogs; } } /** * @brief @~english The configurations class of audio mixing. @~chinese 音频混音配置类。 */ exports.FeedbackInfo = FeedbackInfo; class RtcAudioMixingConfig { /** * @brief @~english Enable publish. Default: true * @~chinese 是否发送。默认值:true。 */ /** * @~english publish volume. 0~200. Default: 100. * @note There could be cracking sounds when the volume is larger than 100. * @~chinese 发送音量。0~200。默认值:100。 * @note 音量超过100后可能产生破音。 */ /** * @brief @~english Enable loopback. Default: true * @~chinese 是否发送。默认值:true。 */ /** * @~english loopback volume. 0~200. Default: 100. * @note There could be cracking sounds when the volume is larger than 100. * @~chinese 回放音量。0~200。默认值:100。 * @note 音量超过100后可能产生破音。 */ /** * @brief @~english Times to play. 0 means loop forever. Default: 1. * @~chinese 播放次数。0指无限循环。默认值:1。 */ /** * @brief @~english true: Replace microphone data. false: Mix with microphone data. Default: false. * @~chinese 是: 替换麦克风数据。否: 与麦克风数据混音。默认值:false */ constructor(enablePublish = true, publishVolume = 100, enableLoopback = true, loopbackVolume = 100, cycle = 1, replaceMicrophone = false) { _defineProperty(this, "enablePublish", void 0); _defineProperty(this, "publishVolume", void 0); _defineProperty(this, "enableLoopback", void 0); _defineProperty(this, "loopbackVolume", void 0); _defineProperty(this, "cycle", void 0); _defineProperty(this, "replaceMicrophone", void 0); this.enablePublish = enablePublish; this.publishVolume = publishVolume; this.enableLoopback = enableLoopback; this.loopbackVolume = loopbackVolume; this.cycle = cycle; this.replaceMicrophone = replaceMicrophone; } } /** * @brief @~english The option class of video snapshot. @~chinese 视频快照选项类。 */ exports.RtcAudioMixingConfig = RtcAudioMixingConfig; class RtcSnapshotVideoOption { /** * @brief @~english The format of snapshot. Default: kPanoImageFileJPEG. * @~chinese 快照格式。默认值:kPanoImageFileJPEG。 */ /** * @brief @~english Whether to mirror. Default: false. * @~chinese 是否镜像。默认值:false */ constructor(format = _Enums.ImageFileFormat.JPEG, mirror = false) { _defineProperty(this, "format", void 0); _defineProperty(this, "mirror", void 0); this.format = format; this.mirror = mirror; } } /** * @brief @~english Network quality report. @~chinese 网络质量报告。 */ exports.RtcSnapshotVideoOption = RtcSnapshotVideoOption; class RtcNetworkQuality { /** * @brief @~english Quality rating. Default: kPanoQualityUnavailable. * @~chinese 网络质量评分。默认值:kPanoQualityUnavailable。 */ /** * @brief @~english Uplink loss rate. Default: 0. * @~chinese 上行丢包率。默认值:0。 */ /** * @brief @~english Downlink loss rate. Default: 0. * @~chinese 下行丢包率。默认值:0。 */ /** * @brief @~english Round-Trip Time in millisecond. Default: 0. * @~chinese RTT延迟, 单位:毫秒。默认值:0。 */ constructor(rating = _Enums.QualityRating.Unavailable, txLoss = 0, rxLoss = 0, rtt = 0) { _defineProperty(this, "rating", void 0); _defineProperty(this, "txLoss", void 0); _defineProperty(this, "rxLoss", void 0); _defineProperty(this, "rtt", void 0); this.rating = rating; this.txLoss = txLoss; this.rxLoss = rxLoss; this.rtt = rtt; } } exports.RtcNetworkQuality = RtcNetworkQuality; class RtcPoint { constructor(x, y) { _defineProperty(this, "x", void 0); _defineProperty(this, "y", void 0); this.x = x; this.y = y; } } /** * @~english * @brief Property action type. * @~chinese * @brief 属性操作类型。 */ exports.RtcPoint = RtcPoint; class RtcPropertyAction { /** * @~english * @brief Action type. * @~chinese * @brief 操作类型。 */ /** * @~english * @brief The property name. * @~chinese * @brief 属性名字。 */ /** * @~english * @brief The property value. * @~chinese * @brief 属性值。 */ constructor(type, propName, propValue) { _defineProperty(this, "type", void 0); _defineProperty(this, "propName", void 0); _defineProperty(this, "propValue", void 0); this.type = type; this.propName = propName; this.propValue = propValue; } } exports.RtcPropertyAction = RtcPropertyAction; //# sourceMappingURL=Objects.js.map