@ray-js/adapter 1.7.60 → 1.7.62

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.
@@ -198,5 +198,17 @@ export interface IpcPlayerProps extends BaseProps, DiffLayer {
198
198
  index: string;
199
199
  coor: string;
200
200
  }) => void;
201
+ /**
202
+ * 滑动播放器手势上报, 需要转动云台
203
+ * @param event
204
+ * @param event.index 滑动的镜头
205
+ * @param event.direction 方向, 上下左右, 枚举值0、1、2、3
206
+ * @param event.status 1 开始, 0 结束
207
+ */
208
+ onSwipeAtVideoIndex?: (event: {
209
+ index: number;
210
+ direction: number;
211
+ status: number;
212
+ }) => void;
201
213
  }
202
214
  export declare const IpcPlayer: React.ComponentType<IpcPlayerProps>;
@@ -43,6 +43,7 @@ export declare const alias: {
43
43
  onSelectVideoIndex: string;
44
44
  onLayoutStatusChanged: string;
45
45
  onLocalizerViewLocated: string;
46
+ onSwipeAtVideoIndex: string;
46
47
  config: string;
47
48
  disableScroll: string;
48
49
  hoverClass: string;
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.props = exports.alias = void 0;
4
4
  const universal_1 = require("../universal");
5
- exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { className: 'class', animation: 'animation', style: 'style', id: 'id', deviceId: 'device-id', autoplay: 'autoplay', muted: 'muted', clarity: 'clarity', soundMode: 'sound-mode', orientation: 'orientation', objectFit: 'object-fit', autoPauseIfNavigate: 'auto-pause-if-navigate', autoPauseIfOpenNative: 'auto-pause-if-open-native', rotateZ: 'rotate-z', scalable: 'scalable', scaleMultiple: 'scale-multiple', type: 'type', ptzControllable: 'ptz-controllable', borderWidth: 'border-width', borderStyle: 'border-style', borderColor: 'border-color', borderRadius: 'border-radius', backgroundColor: 'background-color', onConnectchange: 'bind:connectchange', onPreviewchange: 'bind:previewchange', onInitdone: 'bind:initdone', onOnlinechange: 'bind:onlinechange', onZoomchange: 'bind:zoomchange', onVideotap: 'bind:videotap', onConnectChange: 'bind:connectchange', onPreviewChange: 'bind:previewchange', onInitDone: 'bind:initdone', onOnlineChange: 'bind:onlinechange', onZoomChange: 'bind:zoomchange', onVideoTap: 'bind:videotap', onError: 'bind:error', updateLayout: 'update-layout', onSessionDidDisconnected: 'bind:sessionDidDisconnected', onCameraPreviewFailure: 'bind:cameraPreviewFailure', onCameraNotifyWeakNetwork: 'bind:cameraNotifyWeakNetwork', onCreateViewSuccess: 'bind:createViewSuccess', onSelectVideoIndex: 'bind:selectVideoIndex', onLayoutStatusChanged: 'bind:layoutStatusChanged', onLocalizerViewLocated: 'bind:localizerViewLocated', config: 'config' });
5
+ exports.alias = Object.assign(Object.assign({}, universal_1.universalAlias), { className: 'class', animation: 'animation', style: 'style', id: 'id', deviceId: 'device-id', autoplay: 'autoplay', muted: 'muted', clarity: 'clarity', soundMode: 'sound-mode', orientation: 'orientation', objectFit: 'object-fit', autoPauseIfNavigate: 'auto-pause-if-navigate', autoPauseIfOpenNative: 'auto-pause-if-open-native', rotateZ: 'rotate-z', scalable: 'scalable', scaleMultiple: 'scale-multiple', type: 'type', ptzControllable: 'ptz-controllable', borderWidth: 'border-width', borderStyle: 'border-style', borderColor: 'border-color', borderRadius: 'border-radius', backgroundColor: 'background-color', onConnectchange: 'bind:connectchange', onPreviewchange: 'bind:previewchange', onInitdone: 'bind:initdone', onOnlinechange: 'bind:onlinechange', onZoomchange: 'bind:zoomchange', onVideotap: 'bind:videotap', onConnectChange: 'bind:connectchange', onPreviewChange: 'bind:previewchange', onInitDone: 'bind:initdone', onOnlineChange: 'bind:onlinechange', onZoomChange: 'bind:zoomchange', onVideoTap: 'bind:videotap', onError: 'bind:error', updateLayout: 'update-layout', onSessionDidDisconnected: 'bind:sessionDidDisconnected', onCameraPreviewFailure: 'bind:cameraPreviewFailure', onCameraNotifyWeakNetwork: 'bind:cameraNotifyWeakNetwork', onCreateViewSuccess: 'bind:createViewSuccess', onSelectVideoIndex: 'bind:selectVideoIndex', onLayoutStatusChanged: 'bind:layoutStatusChanged', onLocalizerViewLocated: 'bind:localizerViewLocated', onSwipeAtVideoIndex: 'bind:swipeAtVideoIndex', config: 'config' });
6
6
  exports.props = Object.values(exports.alias);
@@ -198,5 +198,17 @@ export interface IpcPlayerProps extends BaseProps, DiffLayer {
198
198
  index: string;
199
199
  coor: string;
200
200
  }) => void;
201
+ /**
202
+ * 滑动播放器手势上报, 需要转动云台
203
+ * @param event
204
+ * @param event.index 滑动的镜头
205
+ * @param event.direction 方向, 上下左右, 枚举值0、1、2、3
206
+ * @param event.status 1 开始, 0 结束
207
+ */
208
+ onSwipeAtVideoIndex?: (event: {
209
+ index: number;
210
+ direction: number;
211
+ status: number;
212
+ }) => void;
201
213
  }
202
214
  export declare const IpcPlayer: React.ComponentType<IpcPlayerProps>;
@@ -43,6 +43,7 @@ export declare const alias: {
43
43
  onSelectVideoIndex: string;
44
44
  onLayoutStatusChanged: string;
45
45
  onLocalizerViewLocated: string;
46
+ onSwipeAtVideoIndex: string;
46
47
  config: string;
47
48
  disableScroll: string;
48
49
  hoverClass: string;
@@ -1,3 +1,3 @@
1
1
  import { universalAlias } from '../universal';
2
- export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', style: 'style', id: 'id', deviceId: 'device-id', autoplay: 'autoplay', muted: 'muted', clarity: 'clarity', soundMode: 'sound-mode', orientation: 'orientation', objectFit: 'object-fit', autoPauseIfNavigate: 'auto-pause-if-navigate', autoPauseIfOpenNative: 'auto-pause-if-open-native', rotateZ: 'rotate-z', scalable: 'scalable', scaleMultiple: 'scale-multiple', type: 'type', ptzControllable: 'ptz-controllable', borderWidth: 'border-width', borderStyle: 'border-style', borderColor: 'border-color', borderRadius: 'border-radius', backgroundColor: 'background-color', onConnectchange: 'bind:connectchange', onPreviewchange: 'bind:previewchange', onInitdone: 'bind:initdone', onOnlinechange: 'bind:onlinechange', onZoomchange: 'bind:zoomchange', onVideotap: 'bind:videotap', onConnectChange: 'bind:connectchange', onPreviewChange: 'bind:previewchange', onInitDone: 'bind:initdone', onOnlineChange: 'bind:onlinechange', onZoomChange: 'bind:zoomchange', onVideoTap: 'bind:videotap', onError: 'bind:error', updateLayout: 'update-layout', onSessionDidDisconnected: 'bind:sessionDidDisconnected', onCameraPreviewFailure: 'bind:cameraPreviewFailure', onCameraNotifyWeakNetwork: 'bind:cameraNotifyWeakNetwork', onCreateViewSuccess: 'bind:createViewSuccess', onSelectVideoIndex: 'bind:selectVideoIndex', onLayoutStatusChanged: 'bind:layoutStatusChanged', onLocalizerViewLocated: 'bind:localizerViewLocated', config: 'config' });
2
+ export const alias = Object.assign(Object.assign({}, universalAlias), { className: 'class', animation: 'animation', style: 'style', id: 'id', deviceId: 'device-id', autoplay: 'autoplay', muted: 'muted', clarity: 'clarity', soundMode: 'sound-mode', orientation: 'orientation', objectFit: 'object-fit', autoPauseIfNavigate: 'auto-pause-if-navigate', autoPauseIfOpenNative: 'auto-pause-if-open-native', rotateZ: 'rotate-z', scalable: 'scalable', scaleMultiple: 'scale-multiple', type: 'type', ptzControllable: 'ptz-controllable', borderWidth: 'border-width', borderStyle: 'border-style', borderColor: 'border-color', borderRadius: 'border-radius', backgroundColor: 'background-color', onConnectchange: 'bind:connectchange', onPreviewchange: 'bind:previewchange', onInitdone: 'bind:initdone', onOnlinechange: 'bind:onlinechange', onZoomchange: 'bind:zoomchange', onVideotap: 'bind:videotap', onConnectChange: 'bind:connectchange', onPreviewChange: 'bind:previewchange', onInitDone: 'bind:initdone', onOnlineChange: 'bind:onlinechange', onZoomChange: 'bind:zoomchange', onVideoTap: 'bind:videotap', onError: 'bind:error', updateLayout: 'update-layout', onSessionDidDisconnected: 'bind:sessionDidDisconnected', onCameraPreviewFailure: 'bind:cameraPreviewFailure', onCameraNotifyWeakNetwork: 'bind:cameraNotifyWeakNetwork', onCreateViewSuccess: 'bind:createViewSuccess', onSelectVideoIndex: 'bind:selectVideoIndex', onLayoutStatusChanged: 'bind:layoutStatusChanged', onLocalizerViewLocated: 'bind:localizerViewLocated', onSwipeAtVideoIndex: 'bind:swipeAtVideoIndex', config: 'config' });
3
3
  export const props = Object.values(alias);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/adapter",
3
- "version": "1.7.60",
3
+ "version": "1.7.62",
4
4
  "description": "Ray adapter for tuya",
5
5
  "keywords": [
6
6
  "ray"
@@ -36,7 +36,7 @@
36
36
  "@ray-core/types": "^0.4.9"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/types": "1.7.60",
39
+ "@ray-js/types": "1.7.62",
40
40
  "concurrently": "^6.5.1"
41
41
  },
42
42
  "publishConfig": {
@@ -44,5 +44,5 @@
44
44
  "registry": "https://registry.npmjs.org"
45
45
  },
46
46
  "esnext": "./esm/index.js",
47
- "gitHead": "e208f84de7f8fba25e06f48badb474dc57f4ce92"
47
+ "gitHead": "c46d366f02bf27ae0a7f6d3a012b1e0cec3121b0"
48
48
  }