0.0.2 • Published 1 year ago

trtc-sm v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

TRTC 国密加密版本

开发

// 引入 TRTC 以及加密模块 [注意, 整个应用都需要使用该 TRTC 模块, 不可使用官方提供的TRTC]
import { TRTC, useClientCrypto } from 'trtc-sm'

// 初始化 TRTC, 配置功能. 具体参考官方文档
const client = TRTC.createClient({
  mode: this.mode,
  // mode: 'live',
  sdkAppId: SDKAPPID,
  userId: userID,
  userSig: userSig,
  useStringRoomId: useStringRoomID,
});

// 加密 [key 是后端提供的国密对称加密key]
useClientCrypto(client, key)
0.0.2

1 year ago

0.0.1

1 year ago