@byteplus/react-native-live-pull 1.3.0-rc.9 → 1.3.2-rc.0
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/android/build.gradle +1 -1
- package/ios/pictureInpicture/PictureInPictureManager.m +84 -7
- package/package.json +5 -5
- package/react-native-velive-pull.podspec +10 -3
- package/lib/commonjs/index.js +0 -14546
- package/lib/module/index.js +0 -14535
- package/lib/typescript/codegen/android/api.d.ts +0 -318
- package/lib/typescript/codegen/android/callback.d.ts +0 -206
- package/lib/typescript/codegen/android/errorcode.d.ts +0 -174
- package/lib/typescript/codegen/android/external.d.ts +0 -1
- package/lib/typescript/codegen/android/index.d.ts +0 -6
- package/lib/typescript/codegen/android/keytype.d.ts +0 -749
- package/lib/typescript/codegen/android/types.d.ts +0 -31
- package/lib/typescript/codegen/ios/api.d.ts +0 -295
- package/lib/typescript/codegen/ios/callback.d.ts +0 -176
- package/lib/typescript/codegen/ios/errorcode.d.ts +0 -160
- package/lib/typescript/codegen/ios/external.d.ts +0 -1
- package/lib/typescript/codegen/ios/index.d.ts +0 -6
- package/lib/typescript/codegen/ios/keytype.d.ts +0 -695
- package/lib/typescript/codegen/ios/types.d.ts +0 -46
- package/lib/typescript/codegen/pack/api.d.ts +0 -367
- package/lib/typescript/codegen/pack/callback.d.ts +0 -255
- package/lib/typescript/codegen/pack/errorcode.d.ts +0 -187
- package/lib/typescript/codegen/pack/external.d.ts +0 -1
- package/lib/typescript/codegen/pack/index.d.ts +0 -6
- package/lib/typescript/codegen/pack/keytype.d.ts +0 -909
- package/lib/typescript/codegen/pack/types.d.ts +0 -68
- package/lib/typescript/component.d.ts +0 -15
- package/lib/typescript/core/api.d.ts +0 -114
- package/lib/typescript/core/appState.d.ts +0 -3
- package/lib/typescript/core/callback.d.ts +0 -53
- package/lib/typescript/core/env.d.ts +0 -38
- package/lib/typescript/core/errorcode.d.ts +0 -1
- package/lib/typescript/core/index.d.ts +0 -6
- package/lib/typescript/core/keytype.d.ts +0 -33
- package/lib/typescript/core/player.d.ts +0 -16
- package/lib/typescript/index.d.ts +0 -2
- package/lib/typescript/platforms/android/extends.d.ts +0 -39
- package/lib/typescript/platforms/android/pictureInpicture.d.ts +0 -26
- package/lib/typescript/platforms/ios/extends.d.ts +0 -43
- package/lib/typescript/platforms/ios/pictureInpicture.d.ts +0 -32
- package/lib/typescript/runtime/index.d.ts +0 -1
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export type int = number;
|
|
2
|
-
export type Context = unknown;
|
|
3
|
-
export type JSONObject = any;
|
|
4
|
-
export type id<T = any> = T;
|
|
5
|
-
export type BOOL = boolean;
|
|
6
|
-
export type bool = boolean;
|
|
7
|
-
export type long = number;
|
|
8
|
-
export type float = number;
|
|
9
|
-
export type int64_t = number;
|
|
10
|
-
export type double = number;
|
|
11
|
-
export type dispatch_queue_t = any;
|
|
12
|
-
export type NSString = string;
|
|
13
|
-
export type NSMutableString = string;
|
|
14
|
-
export type NSInteger = number;
|
|
15
|
-
export type NSUInteger = number;
|
|
16
|
-
export type NSNumber = number;
|
|
17
|
-
export type NSValue = number;
|
|
18
|
-
export type NSNull = null;
|
|
19
|
-
export type NSArray<T = any> = Array<T>;
|
|
20
|
-
export type NSMutableArray<T = any> = Array<T>;
|
|
21
|
-
export type NSObject<T = any> = T;
|
|
22
|
-
export type NSDictionary<K extends keyof any = any, V = any> = {
|
|
23
|
-
[P in K]: V;
|
|
24
|
-
};
|
|
25
|
-
export type NSMutableDictionary = Object;
|
|
26
|
-
export type NSDate = Date;
|
|
27
|
-
export type NSData = ArrayBuffer;
|
|
28
|
-
export type NSURL = string;
|
|
29
|
-
export type NSError = {
|
|
30
|
-
code: number;
|
|
31
|
-
domain: string;
|
|
32
|
-
};
|
|
33
|
-
export type NSTimeInterval = number;
|
|
34
|
-
export type UIImage = unknown;
|
|
35
|
-
export type CVPixelBufferRef = any;
|
|
36
|
-
export type CMSampleBufferRef = any;
|
|
37
|
-
export type CMTime = number;
|
|
38
|
-
export type GLuint = number;
|
|
39
|
-
export type CGFloat = number;
|
|
40
|
-
export type SInt64 = number;
|
|
41
|
-
export type intptr_t = any;
|
|
42
|
-
export type uint32_t = number;
|
|
43
|
-
export type uint8_t = number;
|
|
44
|
-
export type longlong = number;
|
|
45
|
-
export type String = string;
|
|
46
|
-
export type Boolean = boolean;
|
|
47
|
-
export type Void = void;
|
|
48
|
-
export type Integer = number;
|
|
49
|
-
export type Double = number;
|
|
50
|
-
export type List<T = any> = Array<T>;
|
|
51
|
-
export type list<T = any> = Array<T>;
|
|
52
|
-
export type ArrayList<T = any> = Array<T>;
|
|
53
|
-
export type Map<K extends keyof any = any, V = any> = Record<K, V>;
|
|
54
|
-
export type HashMap<K extends keyof any = any, V = any> = Record<K, V>;
|
|
55
|
-
export type Pair<K extends keyof any = any, V = any> = Record<K, V>;
|
|
56
|
-
export type set<T = any> = Set<T>;
|
|
57
|
-
export type map = Object;
|
|
58
|
-
export type struct = Object;
|
|
59
|
-
export type Bitmap = unknown;
|
|
60
|
-
export type EGLContext = unknown;
|
|
61
|
-
export type ByteArray = number;
|
|
62
|
-
export type ByteBuffer = ArrayBuffer;
|
|
63
|
-
export type Matrix = unknown;
|
|
64
|
-
export type SurfaceHolder = unknown;
|
|
65
|
-
export type Surface = unknown;
|
|
66
|
-
export type Runnable = unknown;
|
|
67
|
-
export type View = any;
|
|
68
|
-
export type Intent = unknown;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type VolcViewProps = {
|
|
3
|
-
viewId: string;
|
|
4
|
-
kind: 'SurfaceView' | 'UIView';
|
|
5
|
-
children?: any;
|
|
6
|
-
style?: any;
|
|
7
|
-
onViewLoad?: () => void;
|
|
8
|
-
};
|
|
9
|
-
export type NativeSurfaceViewComponentProps = Omit<VolcViewProps, 'onViewLoad'> & {
|
|
10
|
-
onLoad?: () => void;
|
|
11
|
-
};
|
|
12
|
-
export declare class NativeViewComponent extends React.Component<NativeSurfaceViewComponentProps> {
|
|
13
|
-
render(): React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { VeLivePlayer } from '../codegen/pack/api';
|
|
2
|
-
import type { VeLivePlayerObserver, PictureInPictureManagerListener } from './callback';
|
|
3
|
-
export { VeLivePlayerObserver };
|
|
4
|
-
declare module '../codegen/pack/api' {
|
|
5
|
-
interface VeLivePlayer {
|
|
6
|
-
/**
|
|
7
|
-
* {zh}
|
|
8
|
-
* @brief 开始悬浮窗
|
|
9
|
-
* @param aspectRatio 悬浮窗宽高比
|
|
10
|
-
* @param x 悬浮窗x坐标
|
|
11
|
-
* @param y 悬浮窗y坐标
|
|
12
|
-
* @order 1
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* {en}
|
|
16
|
-
* @brief Start picture in picture
|
|
17
|
-
* @param aspectRatio floating window aspect ratio
|
|
18
|
-
* @param x floating window x coordinate
|
|
19
|
-
* @param y floating window y coordinate
|
|
20
|
-
* @order 1
|
|
21
|
-
*/
|
|
22
|
-
startPictureInPicture(aspectRatio?: number, x?: number, y?: number): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* {zh}
|
|
25
|
-
* @brief 结束悬浮窗
|
|
26
|
-
* @order 2
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* {en}
|
|
30
|
-
* @brief Stop picture in picture
|
|
31
|
-
* @order 2
|
|
32
|
-
*/
|
|
33
|
-
stopPictureInPicture(): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* {zh}
|
|
36
|
-
* @brief 判断是否支持画中画
|
|
37
|
-
* @return 是否支持画中画
|
|
38
|
-
* @order 3
|
|
39
|
-
*/
|
|
40
|
-
/**
|
|
41
|
-
* {en}
|
|
42
|
-
* @brief Check if picture in picture is supported
|
|
43
|
-
* @return Whether picture in picture is supported
|
|
44
|
-
* @order 3
|
|
45
|
-
*/
|
|
46
|
-
isPictureInPictureSupported(): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* {zh}
|
|
49
|
-
* @brief 设置画中画监听器
|
|
50
|
-
* @param listener 画中画监听器
|
|
51
|
-
* @order 4
|
|
52
|
-
*/
|
|
53
|
-
/**
|
|
54
|
-
* {en}
|
|
55
|
-
* @brief Set picture in picture listener
|
|
56
|
-
* @param listener picture in picture listener
|
|
57
|
-
* @order 4
|
|
58
|
-
*/
|
|
59
|
-
setPictureInPictureListener(listener: PictureInPictureManagerListener): void;
|
|
60
|
-
/**
|
|
61
|
-
* {zh}
|
|
62
|
-
* @brief 启用画中画,当切出app后,会自动启动画中画
|
|
63
|
-
* @platform ios only
|
|
64
|
-
* @order 5
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* {en}
|
|
68
|
-
* @brief Enable picture in picture, when the app is switched out, the picture in picture will be automatically started
|
|
69
|
-
* @platform ios only
|
|
70
|
-
* @order 5
|
|
71
|
-
*/
|
|
72
|
-
enablePictureInPicture(): Promise<void>;
|
|
73
|
-
/**
|
|
74
|
-
* {zh}
|
|
75
|
-
* @brief 禁用画中画
|
|
76
|
-
* @platform ios only
|
|
77
|
-
* @order 6
|
|
78
|
-
*/
|
|
79
|
-
/**
|
|
80
|
-
* {en}
|
|
81
|
-
* @brief Disable picture in picture, when the app is switched out, the picture in picture does not automatically start
|
|
82
|
-
* @platform ios only
|
|
83
|
-
* @order 6
|
|
84
|
-
*/
|
|
85
|
-
disablePictureInPicture(): Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* {zh}
|
|
88
|
-
* @brief 设置是否忽略音频中断
|
|
89
|
-
* @param enable 是否忽略音频中断
|
|
90
|
-
* @order 7
|
|
91
|
-
*/
|
|
92
|
-
/**
|
|
93
|
-
* {en}
|
|
94
|
-
* @brief Set whether to ignore audio interruption
|
|
95
|
-
* @param enable Whether to ignore audio interruption
|
|
96
|
-
* @order 7
|
|
97
|
-
*/
|
|
98
|
-
setEnableIgnoreAudioInterruption(enable: boolean): void;
|
|
99
|
-
/**
|
|
100
|
-
* {zh}
|
|
101
|
-
* @brief 添加用户自定义的HTTP请求头
|
|
102
|
-
* @param headers 用户自定义的HTTP请求头
|
|
103
|
-
* @order 8
|
|
104
|
-
*/
|
|
105
|
-
/**
|
|
106
|
-
* {en}
|
|
107
|
-
* @brief Add user-defined HTTP request headers
|
|
108
|
-
* @param headers User-defined HTTP request headers
|
|
109
|
-
* @order 8
|
|
110
|
-
*/
|
|
111
|
-
addExtraHttpRequestHeadersByUser(headers: Record<string, string>): void;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
export { VeLivePlayer };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export type { VeLivePlayerObserver } from '../codegen/pack/callback';
|
|
2
|
-
/**
|
|
3
|
-
* {zh}
|
|
4
|
-
* @brief 悬浮窗管理器回调
|
|
5
|
-
* @order 1
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* {en}
|
|
9
|
-
* @brief Picture in picture manager callback
|
|
10
|
-
* @order 1
|
|
11
|
-
*/
|
|
12
|
-
export interface PictureInPictureManagerListener {
|
|
13
|
-
/**
|
|
14
|
-
* {zh}
|
|
15
|
-
* @brief 悬浮窗开始回调
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* {en}
|
|
19
|
-
* @brief Picture in picture start callback
|
|
20
|
-
*/
|
|
21
|
-
onStartPictureInPicture?(): void;
|
|
22
|
-
/**
|
|
23
|
-
* {zh}
|
|
24
|
-
* @brief 悬浮窗结束回调
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* {en}
|
|
28
|
-
* @brief Picture in picture stop callback
|
|
29
|
-
*/
|
|
30
|
-
onStopPictureInPicture?(): void;
|
|
31
|
-
/**
|
|
32
|
-
* {zh}
|
|
33
|
-
* @brief 悬浮窗点击回调
|
|
34
|
-
*/
|
|
35
|
-
/**
|
|
36
|
-
* {en}
|
|
37
|
-
* @brief Picture in picture click callback
|
|
38
|
-
*/
|
|
39
|
-
onClickPictureInPicture?(): void;
|
|
40
|
-
/**
|
|
41
|
-
* {zh}
|
|
42
|
-
* @brief 悬浮窗错误回调
|
|
43
|
-
* @param code 错误码 0: 成功, 1: 不支持, 2: 参数错误, 3: 已开启
|
|
44
|
-
* @param extraData 额外数据
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* {en}
|
|
48
|
-
* @brief Picture in picture error callback
|
|
49
|
-
* @param code error code 0: success, 1: not supported, 2: invalid params, 3: already opened
|
|
50
|
-
* @param extraData extra data
|
|
51
|
-
*/
|
|
52
|
-
onError?(code: number, extraData: any): void;
|
|
53
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
interface BaseLicenseConfig {
|
|
2
|
-
/** App ID,必填,从控制台应用管理获取。 */
|
|
3
|
-
AppID: string;
|
|
4
|
-
/** 必填, App 英文名,从控制台应用管理获取。 */
|
|
5
|
-
AppName: string;
|
|
6
|
-
/** App 版本号 */
|
|
7
|
-
AppVersion: string;
|
|
8
|
-
/** 必填,渠道号;业务自定义,如:小米应用商店 (xiaomi)、华为应用市场 (huawei) 等。 */
|
|
9
|
-
AppChannel: string;
|
|
10
|
-
/** 必填,License 路径。 */
|
|
11
|
-
LicenseUri: {
|
|
12
|
-
android: string;
|
|
13
|
-
ios: string;
|
|
14
|
-
};
|
|
15
|
-
openLog?: boolean;
|
|
16
|
-
UserUniqueID?: string;
|
|
17
|
-
}
|
|
18
|
-
interface AndroidLicenseConfig {
|
|
19
|
-
/** Android 应用唯一标识 */
|
|
20
|
-
PackageName?: string;
|
|
21
|
-
}
|
|
22
|
-
interface IOSLicenseConfig {
|
|
23
|
-
/** iOS 应用唯一标识 */
|
|
24
|
-
BundleID?: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @detail keytype
|
|
28
|
-
*/
|
|
29
|
-
export type LicenseConfig = BaseLicenseConfig & AndroidLicenseConfig & IOSLicenseConfig;
|
|
30
|
-
/**
|
|
31
|
-
* @detail api
|
|
32
|
-
* @param config Env 初始化配置。
|
|
33
|
-
*/
|
|
34
|
-
/** {en}
|
|
35
|
-
* @param config Env initialization configuration.
|
|
36
|
-
*/
|
|
37
|
-
export declare function initEnv(config: LicenseConfig): Promise<void>;
|
|
38
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { VeLivePlayerError, VeLivePlayerErrorCode, } from '../codegen/pack/errorcode';
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
declare module '../codegen/pack/keytype' {
|
|
2
|
-
interface VeLivePlayerStreamData {
|
|
3
|
-
|
|
4
|
-
/** {en}
|
|
5
|
-
* @brief A list of main stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
get mainStreamList(): VeLivePlayerStream[];
|
|
9
|
-
set mainStreamList(value: VeLivePlayerStream[]);
|
|
10
|
-
|
|
11
|
-
/** {en}
|
|
12
|
-
* @brief A list of backup stream addresses. See [VeLivePlayerStream](#VeLivePlayerStreamData-VeLivePlayerStream) for details.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
get backupStreamList(): VeLivePlayerStream[];
|
|
16
|
-
set backupStreamList(value: VeLivePlayerStream[]);
|
|
17
|
-
}
|
|
18
|
-
interface VeLivePlayerStatistics {
|
|
19
|
-
|
|
20
|
-
/** {en}
|
|
21
|
-
* @brief The video format.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
get format(): VeLivePlayerFormat;
|
|
25
|
-
|
|
26
|
-
/** {en}
|
|
27
|
-
* @brief The transmission protocol of the live stream.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
get protocol(): VeLivePlayerProtocol;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
export { VeLivePlayerAudioBufferType, VeLivePlayerAudioFrame, VeLivePlayerConfiguration, VeLivePlayerFillMode, VeLivePlayerFormat, VeLivePlayerLogLevel, VeLivePlayerMirror, VeLivePlayerPixelFormat, VeLivePlayerProtocol, VeLivePlayerResolution, VeLivePlayerResolutionSwitchReason, VeLivePlayerRotation, VeLivePlayerStatistics, VeLivePlayerStatus, VeLivePlayerStream, VeLivePlayerStreamData, VeLivePlayerStreamType, VeLivePlayerVideoBufferType, VeLivePlayerVideoFrame, } from '../codegen/pack/keytype';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { VeLivePlayer } from './api';
|
|
2
|
-
import { VeLivePlayerConfiguration } from './keytype';
|
|
3
|
-
/**
|
|
4
|
-
* @detail keytype
|
|
5
|
-
*/
|
|
6
|
-
export interface InitOptions extends Partial<VeLivePlayerConfiguration> {
|
|
7
|
-
viewId: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @detail api
|
|
11
|
-
* @param options 播放器初始化配置。
|
|
12
|
-
*/
|
|
13
|
-
/** {en}
|
|
14
|
-
* @param options Player initialization configuration.
|
|
15
|
-
*/
|
|
16
|
-
export declare function initPlayer(options: InitOptions): Promise<VeLivePlayer>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { NativeProxyService, NativeView } from '@vcloud-lux/hybrid-runtime';
|
|
2
|
-
export declare class SurfaceHolder {
|
|
3
|
-
}
|
|
4
|
-
export declare class NativeSurfaceView extends NativeView {
|
|
5
|
-
getHolder(): Promise<SurfaceHolder>;
|
|
6
|
-
}
|
|
7
|
-
export declare class ApplicationContext {
|
|
8
|
-
}
|
|
9
|
-
export declare class NativeVariables {
|
|
10
|
-
static getApplicationContext(): Promise<ApplicationContext>;
|
|
11
|
-
}
|
|
12
|
-
export declare class VeLivePlayerConfiguration extends NativeProxyService {
|
|
13
|
-
enableStatisticsCallback?: boolean;
|
|
14
|
-
enableLiveDNS?: boolean;
|
|
15
|
-
enableSei?: boolean;
|
|
16
|
-
enableHardwareDecode?: boolean;
|
|
17
|
-
networkTimeoutMs?: number;
|
|
18
|
-
retryIntervalTimeMs?: number;
|
|
19
|
-
retryMaxCount?: number;
|
|
20
|
-
statisticsCallbackInterval?: number;
|
|
21
|
-
}
|
|
22
|
-
export declare class Env {
|
|
23
|
-
static init(cfg: any): void;
|
|
24
|
-
static openAppLog(cfg: any): void;
|
|
25
|
-
static getApplicationContext(): ApplicationContext;
|
|
26
|
-
}
|
|
27
|
-
declare class ConfigBuilder {
|
|
28
|
-
setApplicationContext(appContext: ApplicationContext): ConfigBuilder;
|
|
29
|
-
setAppID(appId: string): ConfigBuilder;
|
|
30
|
-
setAppName(appId: string): ConfigBuilder;
|
|
31
|
-
setAppVersion(appVer: string): ConfigBuilder;
|
|
32
|
-
setAppChannel(appVer: string): ConfigBuilder;
|
|
33
|
-
setLicenseUri(appVer: string): ConfigBuilder;
|
|
34
|
-
build(): any;
|
|
35
|
-
}
|
|
36
|
-
export declare class Config {
|
|
37
|
-
static Builder: typeof ConfigBuilder;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { NativeProxyService } from '@vcloud-lux/hybrid-runtime';
|
|
2
|
-
import type { ApplicationContext, NativeSurfaceView } from './extends';
|
|
3
|
-
import * as $p_a from '../../codegen/android';
|
|
4
|
-
export declare class PictureInPictureManagerListener {
|
|
5
|
-
onStartPictureInPicture?(): void;
|
|
6
|
-
onStopPictureInPicture?(): void;
|
|
7
|
-
onClickPictureInPicture?(): void;
|
|
8
|
-
onError?(code: number, extraData: any): void;
|
|
9
|
-
}
|
|
10
|
-
export declare class android_PictureInPictureListener extends PictureInPictureManagerListener {
|
|
11
|
-
protected _instance: PictureInPictureManagerListener;
|
|
12
|
-
constructor(_instance: PictureInPictureManagerListener);
|
|
13
|
-
onStartPictureInPicture?(): void;
|
|
14
|
-
onStopPictureInPicture?(): void;
|
|
15
|
-
onClickPictureInPicture?(): void;
|
|
16
|
-
onError?(code: number, extraData: any): void;
|
|
17
|
-
}
|
|
18
|
-
export declare class PictureInPictureManager extends NativeProxyService {
|
|
19
|
-
static getInstance(): PictureInPictureManager;
|
|
20
|
-
isPictureInPictureSupported(): boolean;
|
|
21
|
-
setupConfig(aspectRatio: number, x: number, y: number): void;
|
|
22
|
-
setListener(listener: PictureInPictureManagerListener): void;
|
|
23
|
-
startPictureInPicture(aspectRatio?: number, x?: number, y?: number): Promise<void>;
|
|
24
|
-
stopPictureInPicture(): Promise<void>;
|
|
25
|
-
setupPlayer(player: $p_a.VeLivePlayer, context: ApplicationContext, surfaceView: NativeSurfaceView): void;
|
|
26
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { NativeView } from '../../runtime';
|
|
2
|
-
export declare class NativeUIView extends NativeView {
|
|
3
|
-
frame?: any;
|
|
4
|
-
bounds: any;
|
|
5
|
-
insertSubview(view: NativeUIView, atIndex: number): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
export declare class VeLivePlayerLogConfig {
|
|
8
|
-
}
|
|
9
|
-
export declare class TTSDKLogConfiguration {
|
|
10
|
-
enableConsole: boolean;
|
|
11
|
-
enableLogFile: boolean;
|
|
12
|
-
enable: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare class TTSDKConfiguration {
|
|
15
|
-
static defaultConfigurationWithAppID(appId: string, licenseName: string): TTSDKConfiguration;
|
|
16
|
-
licenseFilePath: string;
|
|
17
|
-
channel: string;
|
|
18
|
-
appName: string;
|
|
19
|
-
bundleID: string;
|
|
20
|
-
appVersion: string;
|
|
21
|
-
shouldInitAppLog: boolean;
|
|
22
|
-
serviceVendor: TTSDKServiceVendor;
|
|
23
|
-
logConfiguration: TTSDKLogConfiguration;
|
|
24
|
-
}
|
|
25
|
-
export declare class TTSDKManager {
|
|
26
|
-
static setCurrentUserUniqueID(id: string): void;
|
|
27
|
-
static setShouldReportToAppLog(val: boolean): void;
|
|
28
|
-
static setAppLogCustomData(val: Record<string, string>): void;
|
|
29
|
-
static startWithConfiguration(cfg: TTSDKConfiguration): void;
|
|
30
|
-
}
|
|
31
|
-
export declare class VeLivePlayerConfiguration {
|
|
32
|
-
enableStatisticsCallback: boolean;
|
|
33
|
-
statisticsCallbackInterval: number;
|
|
34
|
-
enableLiveDNS: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface VeLivePlayerObserverEvents {
|
|
37
|
-
onError(err: Error): void;
|
|
38
|
-
}
|
|
39
|
-
export declare enum TTSDKServiceVendor {
|
|
40
|
-
TTSDKServiceVendorCN = 1
|
|
41
|
-
}
|
|
42
|
-
export declare class UIView extends NativeUIView {
|
|
43
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { TVLManager, VeLivePlayerObserver } from '../../codegen/ios';
|
|
2
|
-
export declare class VeLivePictureInPictureManager {
|
|
3
|
-
static getInstance(): VeLivePictureInPictureManager;
|
|
4
|
-
isPictureInPictureSupported(): boolean;
|
|
5
|
-
setupPlayer(player: TVLManager): Promise<void>;
|
|
6
|
-
startPictureInPicture(): Promise<void>;
|
|
7
|
-
stopPictureInPicture(): Promise<void>;
|
|
8
|
-
enablePictureInPicture(): Promise<void>;
|
|
9
|
-
disablePictureInPicture(): Promise<void>;
|
|
10
|
-
destroyPictureInPicture(): Promise<void>;
|
|
11
|
-
setListener(listener: VeLivePictureInPictureManagerListener): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
export declare class VeLivePlayerMultiObserver {
|
|
14
|
-
static getInstance(): VeLivePlayerMultiObserver;
|
|
15
|
-
setupPlayer(player: TVLManager): Promise<void>;
|
|
16
|
-
addObserver(observerId: string, observer: VeLivePlayerObserver): Promise<void>;
|
|
17
|
-
removeObserver(observerId: string): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
export declare class VeLivePictureInPictureManagerListener {
|
|
20
|
-
onStartPictureInPicture?(): void;
|
|
21
|
-
onStopPictureInPicture?(): void;
|
|
22
|
-
onClickPictureInPicture?(): void;
|
|
23
|
-
onError$code$extraData?(code: number, extraData: any): void;
|
|
24
|
-
}
|
|
25
|
-
export declare class ios_PictureInPictureManagerListener extends VeLivePictureInPictureManagerListener {
|
|
26
|
-
protected _instance: VeLivePictureInPictureManagerListener;
|
|
27
|
-
constructor(_instance: VeLivePictureInPictureManagerListener);
|
|
28
|
-
onStartPictureInPicture?(): void;
|
|
29
|
-
onStopPictureInPicture?(): void;
|
|
30
|
-
onClickPictureInPicture?(): void;
|
|
31
|
-
onError$code$extraData?(code: number, extraData: any): void;
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@vcloud-lux/hybrid-runtime';
|