@hyext/types-ext-sdk-hy 3.14.1 → 3.14.2-beta.2
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/index.d.ts +21 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3197,7 +3197,7 @@ type StopLocalServerParams = {
|
|
|
3197
3197
|
|
|
3198
3198
|
/**
|
|
3199
3199
|
* 震动参数
|
|
3200
|
-
* @property pattern -
|
|
3200
|
+
* @property pattern - 模式,其中偶数下标为停止时长(0位代表震动开始前的等待时长),奇数下标为震动时长,单位是毫秒
|
|
3201
3201
|
*/
|
|
3202
3202
|
type VibrateReq = {
|
|
3203
3203
|
pattern: number[];
|
|
@@ -7905,6 +7905,12 @@ namespace ui {
|
|
|
7905
7905
|
* @returns 调用结果
|
|
7906
7906
|
*/
|
|
7907
7907
|
function doNativeVideoComponentAction(params: DoNativeVideoComponentActionReq): Promise<void>;
|
|
7908
|
+
/**
|
|
7909
|
+
* 控制横屏视频区域挤压宽度
|
|
7910
|
+
* @param params - 调用参数
|
|
7911
|
+
* @returns 调用结果
|
|
7912
|
+
*/
|
|
7913
|
+
function zoomVideoByWidth(params: ZoomVideoByWidthReq): Promise<void>;
|
|
7908
7914
|
}
|
|
7909
7915
|
|
|
7910
7916
|
/**
|
|
@@ -8048,7 +8054,7 @@ type ShowVideoPopupReq = {
|
|
|
8048
8054
|
|
|
8049
8055
|
/**
|
|
8050
8056
|
* 原生视频组件信息
|
|
8051
|
-
* @property componentId - 视频组件唯一
|
|
8057
|
+
* @property componentId - 视频组件唯一ID
|
|
8052
8058
|
*/
|
|
8053
8059
|
type NativeVideoComponentRsp = {
|
|
8054
8060
|
componentId: string;
|
|
@@ -8114,7 +8120,7 @@ type CreateNativeVideoComponentReq = {
|
|
|
8114
8120
|
|
|
8115
8121
|
/**
|
|
8116
8122
|
* 更新原生视频组件参数
|
|
8117
|
-
* @property componentId - 视频组件唯一
|
|
8123
|
+
* @property componentId - 视频组件唯一ID
|
|
8118
8124
|
* @property [url] - 视频url
|
|
8119
8125
|
* @property [autoPlay] - 可选,是否自动播放,默认是否
|
|
8120
8126
|
* @property [mutePlay] - 可选,是否静音播放,默认是否
|
|
@@ -8132,7 +8138,7 @@ type UpdateNativeVideoComponentReq = {
|
|
|
8132
8138
|
|
|
8133
8139
|
/**
|
|
8134
8140
|
* 销毁原生视频组件参数
|
|
8135
|
-
* @property componentId - 视频组件唯一
|
|
8141
|
+
* @property componentId - 视频组件唯一ID
|
|
8136
8142
|
*/
|
|
8137
8143
|
type DestroyNativeVideoComponentReq = {
|
|
8138
8144
|
componentId: string;
|
|
@@ -8148,7 +8154,7 @@ type SetRecommendViewPointVisibilityReq = {
|
|
|
8148
8154
|
|
|
8149
8155
|
/**
|
|
8150
8156
|
* 原生视频组件通知信息
|
|
8151
|
-
* @property componentId - 原生视频组件
|
|
8157
|
+
* @property componentId - 原生视频组件ID
|
|
8152
8158
|
* @property eventName - 事件名
|
|
8153
8159
|
* @property message - 事件消息
|
|
8154
8160
|
*/
|
|
@@ -8173,14 +8179,22 @@ type OnNativeVideoComponentNoticeReq = {
|
|
|
8173
8179
|
|
|
8174
8180
|
/**
|
|
8175
8181
|
* 控制原生视频组件参数
|
|
8176
|
-
* @property action - 操作, play
|
|
8177
|
-
* @property componentId - 视频组件唯一
|
|
8182
|
+
* @property action - 操作, play-从头播放, pause-暂停播放, resume-继续播放
|
|
8183
|
+
* @property componentId - 视频组件唯一ID
|
|
8178
8184
|
*/
|
|
8179
8185
|
type DoNativeVideoComponentActionReq = {
|
|
8180
8186
|
action: string;
|
|
8181
8187
|
componentId: string;
|
|
8182
8188
|
};
|
|
8183
8189
|
|
|
8190
|
+
/**
|
|
8191
|
+
* 控制横屏视频区域挤压宽度参数
|
|
8192
|
+
* @property width - 视频区域右侧往左挤压的宽度,单位是px/pt
|
|
8193
|
+
*/
|
|
8194
|
+
type ZoomVideoByWidthReq = {
|
|
8195
|
+
width: number;
|
|
8196
|
+
};
|
|
8197
|
+
|
|
8184
8198
|
/**
|
|
8185
8199
|
* HY vidoe
|
|
8186
8200
|
*/
|