@realsee/live 0.4.0-alpha.4 → 0.4.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { JSBridgeProtocol } from '@realsee/jsbridge-x';
1
2
  import React from 'react';
2
3
  import { KeyframeTypes, LiveEventType, WebSocketEventType } from '../live/EventType';
3
4
  import { Live, LiveActionReactCallback } from '../live/Live';
@@ -25,6 +26,7 @@ export declare type LiveProviderPropTypes<Snapshot> = {
25
26
  */
26
27
  export interface LiveReact</* 帧数据 */ Snapshot> {
27
28
  live: Live<Snapshot>;
29
+ jsBridge: JSBridgeProtocol;
28
30
  /**
29
31
  * @description **LiveProvider** 基于 [React Context](https://reactjs.org/docs/context.html) 对 {@link Live }进行封装,你可以以 [React Hooks](https://reactjs.org/docs/hooks-intro.html) 的方式对 {@link Live } 实例进行操作、数据监听等。
30
32
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/live",
3
- "version": "0.4.0-alpha.4",
3
+ "version": "0.4.0-alpha.5",
4
4
  "description": "如视 Live SDK:基于如视 WebSocket 长链双工通信能力的前端封装,借助此 SDK 您可以快捷地实现具备同屏连线、实时语音的 VR 带看业务能力。",
5
5
  "main": "dist/realsee-live.cjs.js",
6
6
  "module": "dist/realsee-live.esm.js",