@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.
- package/cjs/hostComponents/IpcPlayer/index.d.ts +12 -0
- package/cjs/hostComponents/IpcPlayer/node.d.ts +1 -0
- package/cjs/hostComponents/IpcPlayer/node.js +1 -1
- package/esm/hostComponents/IpcPlayer/index.d.ts +12 -0
- package/esm/hostComponents/IpcPlayer/node.d.ts +1 -0
- package/esm/hostComponents/IpcPlayer/node.js +1 -1
- package/package.json +3 -3
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -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.
|
|
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.
|
|
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": "
|
|
47
|
+
"gitHead": "c46d366f02bf27ae0a7f6d3a012b1e0cec3121b0"
|
|
48
48
|
}
|