Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pano.video/panortc-electron-sdk

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pano.video/panortc-electron-sdk

panortc-electron-sdk

  • 1.3.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
4
Weekly downloads
 
Created
Source

PanoRtc-Electron-SDK

Installing

npm install @pano.video/panortc-electron-sdk

RtcEngine 连接步骤

连接步骤可以参考 sample     VUE sample

RtcEngine 接口文档

连接步骤:

  1. 获取PanoRtc接口类: const {RtcEngine} = require('@pano.video/panortc-electron-sdk')
  2. 创建PanoRtc接口对象: var rtcEngine = new RtcEngine();
  3. 获取 PanoToken
  4. 调用 rtcEngine.initialize , 初始化 PanoRtcEngine
  5. 调用 rtcEngine.joinChannel , 使用第二步获取的 panoToken 和会议 channelId 等参数加入会议,可以设置 serviceFlags 类型控制只加入音视频频道、白板频道或者二者都加入
  6. 监听到 channelJoinConfirm 事件后即可开始通信

示例代码:


const {
  RtcEngine,
  QResult, 
  ChannelMode,
  AudioAecType,
  kChannelServiceMedia
} = require('@pano.video/panortc-electron-sdk')

var rtcEngine = new RtcEngine();

rtcEngine.on('channelJoinConfirm', (result) => {
  console.log(`join channel ${result}`)
})
rtcEngine.initialize(appId, { // engine options, 可不填
  panoServer: 'api.pano.video', 
  videoHwAccel: false, 
  audioAecType: AudioAecType.Default, 
  audioScenario: 0
})
rtcEngine.joinChannel(token, channelId, userId, { // channel options, 可不填
  channelMode: ChannelMode.Mode_Meeting,
  subscribeAudioAll: true, // subscribe user audio automatically
  userName: 'xxxx'
})

Keywords

FAQs

Package last updated on 08 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc