@hyext/types-ext-sdk-hy 3.14.1-beta.10 → 3.14.1-beta.13
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 +40 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -7847,6 +7847,17 @@ namespace ui {
|
|
|
7847
7847
|
* @returns 调用结果
|
|
7848
7848
|
*/
|
|
7849
7849
|
function setRecommendViewPointVisibility(params: SetRecommendViewPointVisibilityReq): Promise<void>;
|
|
7850
|
+
/**
|
|
7851
|
+
* 监听原生视频组件通知
|
|
7852
|
+
* @param params - 调用参数
|
|
7853
|
+
* @returns 调用结果
|
|
7854
|
+
*/
|
|
7855
|
+
function onNativeVideoComponentNotice(params: OnNativeVideoComponentNoticeReq): Promise<void>;
|
|
7856
|
+
/**
|
|
7857
|
+
* 取消监听原生视频组件通知
|
|
7858
|
+
* @returns 调用结果
|
|
7859
|
+
*/
|
|
7860
|
+
function offNativeVideoComponentNotice(): Promise<void>;
|
|
7850
7861
|
}
|
|
7851
7862
|
|
|
7852
7863
|
/**
|
|
@@ -8015,12 +8026,14 @@ type ComponentLayout = {
|
|
|
8015
8026
|
* @property url - 视频url
|
|
8016
8027
|
* @property autoPlay - 可选,是否自动播放,默认是否
|
|
8017
8028
|
* @property mutePlay - 可选,是否静音播放,默认是否
|
|
8029
|
+
* @property liveVodMode - 是否开启实时点播模式
|
|
8018
8030
|
* @property layout - 视频组件布局
|
|
8019
8031
|
*/
|
|
8020
8032
|
type CreateNativeVideoComponentReq = {
|
|
8021
8033
|
url: string;
|
|
8022
8034
|
autoPlay: boolean;
|
|
8023
8035
|
mutePlay: boolean;
|
|
8036
|
+
liveVodMode: boolean;
|
|
8024
8037
|
layout: ComponentLayout;
|
|
8025
8038
|
};
|
|
8026
8039
|
|
|
@@ -8030,6 +8043,7 @@ type CreateNativeVideoComponentReq = {
|
|
|
8030
8043
|
* @property url - 视频url
|
|
8031
8044
|
* @property autoPlay - 可选,是否自动播放,默认是否
|
|
8032
8045
|
* @property mutePlay - 可选,是否静音播放,默认是否
|
|
8046
|
+
* @property liveVodMode - 是否开启实时点播模式
|
|
8033
8047
|
* @property layout - 视频组件布局
|
|
8034
8048
|
*/
|
|
8035
8049
|
type UpdateNativeVideoComponentReq = {
|
|
@@ -8037,6 +8051,7 @@ type UpdateNativeVideoComponentReq = {
|
|
|
8037
8051
|
url: string;
|
|
8038
8052
|
autoPlay: boolean;
|
|
8039
8053
|
mutePlay: boolean;
|
|
8054
|
+
liveVodMode: boolean;
|
|
8040
8055
|
layout: ComponentLayout;
|
|
8041
8056
|
};
|
|
8042
8057
|
|
|
@@ -8056,6 +8071,31 @@ type SetRecommendViewPointVisibilityReq = {
|
|
|
8056
8071
|
visible: boolean;
|
|
8057
8072
|
};
|
|
8058
8073
|
|
|
8074
|
+
/**
|
|
8075
|
+
* 原生视频组件通知信息
|
|
8076
|
+
* @property componentId - 原生视频组件id
|
|
8077
|
+
* @property eventName - 事件名
|
|
8078
|
+
* @property message - 事件消息
|
|
8079
|
+
*/
|
|
8080
|
+
type NativeVideoComponentNotice = {
|
|
8081
|
+
componentId: string;
|
|
8082
|
+
eventName: string;
|
|
8083
|
+
message: string;
|
|
8084
|
+
};
|
|
8085
|
+
|
|
8086
|
+
/**
|
|
8087
|
+
* @param notice - 原生视频组件通知信息
|
|
8088
|
+
*/
|
|
8089
|
+
type NativeVideoComponentNoticeCallback = (notice: NativeVideoComponentNotice) => void;
|
|
8090
|
+
|
|
8091
|
+
/**
|
|
8092
|
+
* 监听原生视频组件通知参数
|
|
8093
|
+
* @property callback - 原生视频组件通知回调
|
|
8094
|
+
*/
|
|
8095
|
+
type OnNativeVideoComponentNoticeReq = {
|
|
8096
|
+
callback: NativeVideoComponentNoticeCallback;
|
|
8097
|
+
};
|
|
8098
|
+
|
|
8059
8099
|
/**
|
|
8060
8100
|
* HY vidoe
|
|
8061
8101
|
*/
|