@ray-js/adapter 1.7.50 → 1.7.52
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 +37 -0
- package/cjs/hostComponents/IpcPlayer/node.d.ts +3 -0
- package/cjs/hostComponents/IpcPlayer/node.js +1 -1
- package/esm/hostComponents/IpcPlayer/index.d.ts +37 -0
- package/esm/hostComponents/IpcPlayer/node.d.ts +3 -0
- package/esm/hostComponents/IpcPlayer/node.js +1 -1
- package/package.json +3 -3
|
@@ -161,5 +161,42 @@ export interface IpcPlayerProps extends BaseProps, DiffLayer {
|
|
|
161
161
|
* 异层组件创建成功回调
|
|
162
162
|
*/
|
|
163
163
|
onCreateViewSuccess?: () => void;
|
|
164
|
+
/**
|
|
165
|
+
* 选中视频索引事件,点击选中镜头后触发
|
|
166
|
+
* @param event
|
|
167
|
+
* @param event.index 镜头索引
|
|
168
|
+
* @param event.name 镜头名称
|
|
169
|
+
* @param event.supportPTZ 是否支持PTZ
|
|
170
|
+
* @param event.supportLocalizer 是否支持定位器
|
|
171
|
+
* @param event.supportZoom 是否支持缩放
|
|
172
|
+
*/
|
|
173
|
+
onSelectVideoIndex?: (event: {
|
|
174
|
+
index: number;
|
|
175
|
+
name: string;
|
|
176
|
+
supportPTZ: boolean;
|
|
177
|
+
supportLocalizer: boolean;
|
|
178
|
+
supportZoom: boolean;
|
|
179
|
+
[key: string]: any;
|
|
180
|
+
}) => void;
|
|
181
|
+
/**
|
|
182
|
+
* 布局状态改变事件
|
|
183
|
+
* @param event
|
|
184
|
+
* @param event.screenMode 屏幕模式 0: 短屏, 1: 全屏, 2: 横屏
|
|
185
|
+
* @param event.layoutStyle 布局样式 -1: 无效, 0: 画中画, 1: 平铺, 2: 宫格, 3: 缩略图
|
|
186
|
+
*/
|
|
187
|
+
onLayoutStatusChanged?: (event: {
|
|
188
|
+
screenMode: number;
|
|
189
|
+
layoutStyle: number;
|
|
190
|
+
}) => void;
|
|
191
|
+
/**
|
|
192
|
+
* 定位器定位事件
|
|
193
|
+
* @param event
|
|
194
|
+
* @param event.index 联动的球机index
|
|
195
|
+
* @param event.coor x、y 位置
|
|
196
|
+
*/
|
|
197
|
+
onLocalizerViewLocated?: (event: {
|
|
198
|
+
index: string;
|
|
199
|
+
coor: string;
|
|
200
|
+
}) => void;
|
|
164
201
|
}
|
|
165
202
|
export declare const IpcPlayer: React.ComponentType<IpcPlayerProps>;
|
|
@@ -40,6 +40,9 @@ export declare const alias: {
|
|
|
40
40
|
onCameraPreviewFailure: string;
|
|
41
41
|
onCameraNotifyWeakNetwork: string;
|
|
42
42
|
onCreateViewSuccess: string;
|
|
43
|
+
onSelectVideoIndex: string;
|
|
44
|
+
onLayoutStatusChanged: string;
|
|
45
|
+
onLocalizerViewLocated: string;
|
|
43
46
|
config: string;
|
|
44
47
|
disableScroll: string;
|
|
45
48
|
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', 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', config: 'config' });
|
|
6
6
|
exports.props = Object.values(exports.alias);
|
|
@@ -161,5 +161,42 @@ export interface IpcPlayerProps extends BaseProps, DiffLayer {
|
|
|
161
161
|
* 异层组件创建成功回调
|
|
162
162
|
*/
|
|
163
163
|
onCreateViewSuccess?: () => void;
|
|
164
|
+
/**
|
|
165
|
+
* 选中视频索引事件,点击选中镜头后触发
|
|
166
|
+
* @param event
|
|
167
|
+
* @param event.index 镜头索引
|
|
168
|
+
* @param event.name 镜头名称
|
|
169
|
+
* @param event.supportPTZ 是否支持PTZ
|
|
170
|
+
* @param event.supportLocalizer 是否支持定位器
|
|
171
|
+
* @param event.supportZoom 是否支持缩放
|
|
172
|
+
*/
|
|
173
|
+
onSelectVideoIndex?: (event: {
|
|
174
|
+
index: number;
|
|
175
|
+
name: string;
|
|
176
|
+
supportPTZ: boolean;
|
|
177
|
+
supportLocalizer: boolean;
|
|
178
|
+
supportZoom: boolean;
|
|
179
|
+
[key: string]: any;
|
|
180
|
+
}) => void;
|
|
181
|
+
/**
|
|
182
|
+
* 布局状态改变事件
|
|
183
|
+
* @param event
|
|
184
|
+
* @param event.screenMode 屏幕模式 0: 短屏, 1: 全屏, 2: 横屏
|
|
185
|
+
* @param event.layoutStyle 布局样式 -1: 无效, 0: 画中画, 1: 平铺, 2: 宫格, 3: 缩略图
|
|
186
|
+
*/
|
|
187
|
+
onLayoutStatusChanged?: (event: {
|
|
188
|
+
screenMode: number;
|
|
189
|
+
layoutStyle: number;
|
|
190
|
+
}) => void;
|
|
191
|
+
/**
|
|
192
|
+
* 定位器定位事件
|
|
193
|
+
* @param event
|
|
194
|
+
* @param event.index 联动的球机index
|
|
195
|
+
* @param event.coor x、y 位置
|
|
196
|
+
*/
|
|
197
|
+
onLocalizerViewLocated?: (event: {
|
|
198
|
+
index: string;
|
|
199
|
+
coor: string;
|
|
200
|
+
}) => void;
|
|
164
201
|
}
|
|
165
202
|
export declare const IpcPlayer: React.ComponentType<IpcPlayerProps>;
|
|
@@ -40,6 +40,9 @@ export declare const alias: {
|
|
|
40
40
|
onCameraPreviewFailure: string;
|
|
41
41
|
onCameraNotifyWeakNetwork: string;
|
|
42
42
|
onCreateViewSuccess: string;
|
|
43
|
+
onSelectVideoIndex: string;
|
|
44
|
+
onLayoutStatusChanged: string;
|
|
45
|
+
onLocalizerViewLocated: string;
|
|
43
46
|
config: string;
|
|
44
47
|
disableScroll: string;
|
|
45
48
|
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', 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', 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.52",
|
|
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.52",
|
|
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": "14ced414dd88e28032bde51c350b8dae60fe6892"
|
|
48
48
|
}
|