react-native-firework-sdk 2.17.4 → 2.18.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/gradle.properties +1 -1
- package/android/src/main/java/com/fireworksdk/bridge/components/storyblock/StoryBlockContainerView.kt +436 -30
- package/android/src/main/java/com/fireworksdk/bridge/models/FWPlayerButtonConfigurationDeserializer.kt +3 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWPlayerButtonConfigurationModel.kt +1 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWPlayerButtonConfigurationSerializer.kt +2 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModel.kt +3 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelDeserializer.kt +7 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/FWVideoPlayerConfigModelSerializer.kt +5 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/enums/FWVideoPlayerScrollDirection.kt +17 -0
- package/android/src/main/java/com/fireworksdk/bridge/models/enums/FWVideoPlayerVersion.kt +6 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWVideoFeedManager.kt +2 -2
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/models/FWLiveStreamInterface.kt +3 -0
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FWLiveStreamModule.kt +13 -2
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FireworkSDKModule.kt +3 -2
- package/android/src/main/java/com/fireworksdk/bridge/reactnative/utils/FWEventUtils.kt +31 -0
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWConfigUtil.kt +23 -2
- package/android/src/main/java/com/fireworksdk/bridge/utils/FWLanguageUtil.kt +11 -1
- package/ios/Components/StoryBlock.swift +15 -0
- package/ios/Components/StoryBlockConfiguration.swift +2 -0
- package/ios/Components/VideoFeed.swift +9 -0
- package/ios/Components/VideoPlayerConfiguration.swift +5 -0
- package/ios/Models/NativeToRN/FireworkEventName.swift +1 -0
- package/ios/Models/NativeToRN/FireworkSDK+Json.swift +33 -3
- package/ios/Modules/LiveStream/LiveStreamModule.m +4 -0
- package/ios/Modules/LiveStream/LiveStreamModule.swift +29 -1
- package/lib/commonjs/LiveStream.js +21 -1
- package/lib/commonjs/LiveStream.js.map +1 -1
- package/lib/commonjs/components/StoryBlock.js +4 -0
- package/lib/commonjs/components/StoryBlock.js.map +1 -1
- package/lib/commonjs/components/VideoFeed.js +2 -0
- package/lib/commonjs/components/VideoFeed.js.map +1 -1
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/FWEventName.js +1 -0
- package/lib/commonjs/models/FWEventName.js.map +1 -1
- package/lib/commonjs/models/LiveStreamStatus.js +32 -0
- package/lib/commonjs/models/LiveStreamStatus.js.map +1 -0
- package/lib/commonjs/models/ScrollDirection.js +2 -0
- package/lib/commonjs/models/ScrollDirection.js.map +1 -0
- package/lib/commonjs/models/VideoType.js +26 -0
- package/lib/commonjs/models/VideoType.js.map +1 -0
- package/lib/commonjs/modules/LiveStreamModule.js.map +1 -1
- package/lib/module/LiveStream.js +20 -1
- package/lib/module/LiveStream.js.map +1 -1
- package/lib/module/components/StoryBlock.js +4 -0
- package/lib/module/components/StoryBlock.js.map +1 -1
- package/lib/module/components/VideoFeed.js +2 -0
- package/lib/module/components/VideoFeed.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/FWEventName.js +1 -0
- package/lib/module/models/FWEventName.js.map +1 -1
- package/lib/module/models/LiveStreamStatus.js +28 -0
- package/lib/module/models/LiveStreamStatus.js.map +1 -0
- package/lib/module/models/ScrollDirection.js +2 -0
- package/lib/module/models/ScrollDirection.js.map +1 -0
- package/lib/module/models/VideoType.js +22 -0
- package/lib/module/models/VideoType.js.map +1 -0
- package/lib/module/modules/LiveStreamModule.js.map +1 -1
- package/lib/typescript/commonjs/src/LiveStream.d.ts +12 -1
- package/lib/typescript/commonjs/src/LiveStream.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/StoryBlock.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/VideoFeed.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +7 -4
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/FWEventName.d.ts +1 -0
- package/lib/typescript/commonjs/src/models/FWEventName.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/FWEvents.d.ts +14 -0
- package/lib/typescript/commonjs/src/models/FWEvents.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/FeedItemDetails.d.ts +12 -0
- package/lib/typescript/commonjs/src/models/FeedItemDetails.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/LiveStreamEventDetails.d.ts +23 -0
- package/lib/typescript/commonjs/src/models/LiveStreamEventDetails.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/LiveStreamStatus.d.ts +25 -0
- package/lib/typescript/commonjs/src/models/LiveStreamStatus.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/ScrollDirection.d.ts +2 -0
- package/lib/typescript/commonjs/src/models/ScrollDirection.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/models/StoryBlockConfiguration.d.ts +10 -0
- package/lib/typescript/commonjs/src/models/StoryBlockConfiguration.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/VideoPlaybackDetails.d.ts +12 -0
- package/lib/typescript/commonjs/src/models/VideoPlaybackDetails.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/VideoPlayerConfiguration.d.ts +5 -0
- package/lib/typescript/commonjs/src/models/VideoPlayerConfiguration.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/VideoType.d.ts +19 -0
- package/lib/typescript/commonjs/src/models/VideoType.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/LiveStreamModule.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/LiveStreamModule.d.ts.map +1 -1
- package/lib/typescript/module/src/LiveStream.d.ts +12 -1
- package/lib/typescript/module/src/LiveStream.d.ts.map +1 -1
- package/lib/typescript/module/src/components/StoryBlock.d.ts.map +1 -1
- package/lib/typescript/module/src/components/VideoFeed.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +7 -4
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/FWEventName.d.ts +1 -0
- package/lib/typescript/module/src/models/FWEventName.d.ts.map +1 -1
- package/lib/typescript/module/src/models/FWEvents.d.ts +14 -0
- package/lib/typescript/module/src/models/FWEvents.d.ts.map +1 -1
- package/lib/typescript/module/src/models/FeedItemDetails.d.ts +12 -0
- package/lib/typescript/module/src/models/FeedItemDetails.d.ts.map +1 -1
- package/lib/typescript/module/src/models/LiveStreamEventDetails.d.ts +23 -0
- package/lib/typescript/module/src/models/LiveStreamEventDetails.d.ts.map +1 -1
- package/lib/typescript/module/src/models/LiveStreamStatus.d.ts +25 -0
- package/lib/typescript/module/src/models/LiveStreamStatus.d.ts.map +1 -0
- package/lib/typescript/module/src/models/ScrollDirection.d.ts +2 -0
- package/lib/typescript/module/src/models/ScrollDirection.d.ts.map +1 -0
- package/lib/typescript/module/src/models/StoryBlockConfiguration.d.ts +10 -0
- package/lib/typescript/module/src/models/StoryBlockConfiguration.d.ts.map +1 -1
- package/lib/typescript/module/src/models/VideoPlaybackDetails.d.ts +12 -0
- package/lib/typescript/module/src/models/VideoPlaybackDetails.d.ts.map +1 -1
- package/lib/typescript/module/src/models/VideoPlayerConfiguration.d.ts +5 -0
- package/lib/typescript/module/src/models/VideoPlayerConfiguration.d.ts.map +1 -1
- package/lib/typescript/module/src/models/VideoType.d.ts +19 -0
- package/lib/typescript/module/src/models/VideoType.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/LiveStreamModule.d.ts +1 -0
- package/lib/typescript/module/src/modules/LiveStreamModule.d.ts.map +1 -1
- package/package.json +1 -1
- package/react_native_firework_sdk.podspec +1 -1
- package/src/LiveStream.ts +42 -2
- package/src/components/StoryBlock.tsx +5 -1
- package/src/components/VideoFeed.tsx +2 -0
- package/src/index.tsx +10 -0
- package/src/models/FWEventName.ts +1 -0
- package/src/models/FWEvents.ts +17 -0
- package/src/models/FeedItemDetails.ts +12 -0
- package/src/models/LiveStreamEventDetails.ts +24 -1
- package/src/models/LiveStreamStatus.ts +25 -0
- package/src/models/ScrollDirection.ts +1 -0
- package/src/models/StoryBlockConfiguration.ts +12 -0
- package/src/models/VideoPlaybackDetails.ts +13 -0
- package/src/models/VideoPlayerConfiguration.ts +6 -0
- package/src/models/VideoType.ts +19 -0
- package/src/modules/LiveStreamModule.ts +1 -0
|
@@ -165,4 +165,18 @@ export interface CustomClickCartIconEvent {
|
|
|
165
165
|
*/
|
|
166
166
|
video: VideoPlaybackDetails;
|
|
167
167
|
}
|
|
168
|
+
export interface CustomLinkInteractionClickEvent {
|
|
169
|
+
/**
|
|
170
|
+
* The link interaction title.
|
|
171
|
+
*/
|
|
172
|
+
title: string;
|
|
173
|
+
/**
|
|
174
|
+
* The link interaction url.
|
|
175
|
+
*/
|
|
176
|
+
url: string;
|
|
177
|
+
/**
|
|
178
|
+
* The livestream event details.
|
|
179
|
+
*/
|
|
180
|
+
info: LiveStreamEventDetails;
|
|
181
|
+
}
|
|
168
182
|
//# sourceMappingURL=FWEvents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FWEvents.d.ts","sourceRoot":"","sources":["../../../../../src/models/FWEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,sBAAsB,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,wBAAwB,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,uB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+
import type VideoType from './VideoType';
|
|
3
|
+
import type LiveStreamStatus from './LiveStreamStatus';
|
|
2
4
|
export default interface FeedItemDetails {
|
|
3
5
|
/**
|
|
4
6
|
* The index of the thumbnail tapped in the feed.
|
|
@@ -55,5 +57,15 @@ export default interface FeedItemDetails {
|
|
|
55
57
|
* The feed id for the item.
|
|
56
58
|
*/
|
|
57
59
|
feedId?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* The type of video.
|
|
62
|
+
*/
|
|
63
|
+
videoType?: VideoType | null;
|
|
64
|
+
/**
|
|
65
|
+
* The status of the livestream.
|
|
66
|
+
* When videoType is VideoType.Livestream, you could use
|
|
67
|
+
* this property to check the live stream status.
|
|
68
|
+
*/
|
|
69
|
+
liveStreamStatus?: LiveStreamStatus | null;
|
|
58
70
|
}
|
|
59
71
|
//# sourceMappingURL=FeedItemDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedItemDetails.d.ts","sourceRoot":"","sources":["../../../../../src/models/FeedItemDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"FeedItemDetails.d.ts","sourceRoot":"","sources":["../../../../../src/models/FeedItemDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,MAAM,CAAC,OAAO,WAAW,eAAe;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,wBAAwB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IAC9D;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC5C"}
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
+
import type VideoPlaybackDetails from './VideoPlaybackDetails';
|
|
2
|
+
import type VideoType from './VideoType';
|
|
3
|
+
import type LiveStreamStatus from './LiveStreamStatus';
|
|
1
4
|
export default interface LiveStreamEventDetails {
|
|
5
|
+
/**
|
|
6
|
+
* A unique identifier of the live stream.
|
|
7
|
+
*/
|
|
2
8
|
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The associated feed ID.
|
|
11
|
+
*/
|
|
3
12
|
feedId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The type of video.
|
|
15
|
+
*/
|
|
16
|
+
videoType?: VideoType;
|
|
17
|
+
/**
|
|
18
|
+
* The status of the livestream.
|
|
19
|
+
* When videoType is VideoType.Livestream, you could use
|
|
20
|
+
* this property to check the live stream status.
|
|
21
|
+
*/
|
|
22
|
+
liveStreamStatus?: LiveStreamStatus;
|
|
23
|
+
/**
|
|
24
|
+
* The video playback details.
|
|
25
|
+
*/
|
|
26
|
+
video?: VideoPlaybackDetails;
|
|
4
27
|
}
|
|
5
28
|
//# sourceMappingURL=LiveStreamEventDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveStreamEventDetails.d.ts","sourceRoot":"","sources":["../../../../../src/models/LiveStreamEventDetails.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,sBAAsB;
|
|
1
|
+
{"version":3,"file":"LiveStreamEventDetails.d.ts","sourceRoot":"","sources":["../../../../../src/models/LiveStreamEventDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,MAAM,CAAC,OAAO,WAAW,sBAAsB;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the live stream status.
|
|
3
|
+
* When videoType = VideoType.Livestream, you could use
|
|
4
|
+
* this property to check the live stream status.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum LiveStreamStatus {
|
|
7
|
+
/**
|
|
8
|
+
* Livestream is idle (not started yet)
|
|
9
|
+
*/
|
|
10
|
+
Idle = "idle",
|
|
11
|
+
/**
|
|
12
|
+
* Livestream is currently live
|
|
13
|
+
*/
|
|
14
|
+
Live = "live",
|
|
15
|
+
/**
|
|
16
|
+
* Livestream has completed
|
|
17
|
+
*/
|
|
18
|
+
Completed = "completed",
|
|
19
|
+
/**
|
|
20
|
+
* Livestream is in replay mode
|
|
21
|
+
*/
|
|
22
|
+
Replay = "replay"
|
|
23
|
+
}
|
|
24
|
+
export default LiveStreamStatus;
|
|
25
|
+
//# sourceMappingURL=LiveStreamStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LiveStreamStatus.d.ts","sourceRoot":"","sources":["../../../../../src/models/LiveStreamStatus.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,MAAM,WAAW;CAClB;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollDirection.d.ts","sourceRoot":"","sources":["../../../../../src/models/ScrollDirection.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,UAAU,CAAC"}
|
|
@@ -10,6 +10,7 @@ import type { VideoPlayerLogoConfiguration } from './VideoPlayerLogoConfiguratio
|
|
|
10
10
|
import type { VideoPlayerStyle } from './VideoPlayerStyle';
|
|
11
11
|
import type { StatusBarStyle } from './StatusBarStyle';
|
|
12
12
|
import type { PipPlacement } from './PipPlacement';
|
|
13
|
+
import type { ScrollDirection } from './ScrollDirection';
|
|
13
14
|
export interface StoryBlockConfiguration {
|
|
14
15
|
/**
|
|
15
16
|
* Sets the proportion of the video player to its container.
|
|
@@ -106,5 +107,14 @@ export interface StoryBlockConfiguration {
|
|
|
106
107
|
* Only supported on iOS.
|
|
107
108
|
*/
|
|
108
109
|
pipPlacement?: PipPlacement;
|
|
110
|
+
/**
|
|
111
|
+
* Specifies the scroll direction for the story block.
|
|
112
|
+
*/
|
|
113
|
+
scrollDirection?: ScrollDirection;
|
|
114
|
+
/**
|
|
115
|
+
* Specifies scroll enabled for vertical.
|
|
116
|
+
* This property only takes effect when scrollDirection is set to vertical.
|
|
117
|
+
*/
|
|
118
|
+
enableScrollForVertical?: boolean;
|
|
109
119
|
}
|
|
110
120
|
//# sourceMappingURL=StoryBlockConfiguration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoryBlockConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/models/StoryBlockConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,2BAA2B,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,8BAA8B,MAAM,kCAAkC,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"StoryBlockConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/models/StoryBlockConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,2BAA2B,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,KAAK,8BAA8B,MAAM,kCAAkC,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,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,CAAC,EAAE,wBAAwB,CAAC;IACpD;;OAEG;IACH,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;IAE1D;;;OAGG;IACH,uBAAuB,CAAC,EAAE,aAAa,CAAC;IAExC;;;OAGG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAE3C;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type VideoType from './VideoType';
|
|
2
|
+
import type LiveStreamStatus from './LiveStreamStatus';
|
|
1
3
|
export interface VideoPlayerSize {
|
|
2
4
|
width: number;
|
|
3
5
|
height: number;
|
|
@@ -44,5 +46,15 @@ export default interface VideoPlaybackDetails {
|
|
|
44
46
|
* The associated feed ID
|
|
45
47
|
*/
|
|
46
48
|
feedId?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* The type of video.
|
|
51
|
+
*/
|
|
52
|
+
videoType?: VideoType | null;
|
|
53
|
+
/**
|
|
54
|
+
* The status of the livestream.
|
|
55
|
+
* When videoType is VideoType.Livestream, you could use
|
|
56
|
+
* this property to check the live stream status.
|
|
57
|
+
*/
|
|
58
|
+
liveStreamStatus?: LiveStreamStatus | null;
|
|
47
59
|
}
|
|
48
60
|
//# sourceMappingURL=VideoPlaybackDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoPlaybackDetails.d.ts","sourceRoot":"","sources":["../../../../../src/models/VideoPlaybackDetails.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB;IAC3C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"VideoPlaybackDetails.d.ts","sourceRoot":"","sources":["../../../../../src/models/VideoPlaybackDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB;IAC3C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC5C"}
|
|
@@ -9,6 +9,7 @@ import type { ReplayBadgeConfiguration } from './ReplayBadgeConfiguration';
|
|
|
9
9
|
import type CountdownTimerConfiguration from './CountdownTimerConfiguration';
|
|
10
10
|
import type { StatusBarStyle } from './StatusBarStyle';
|
|
11
11
|
import type { PipPlacement } from './PipPlacement';
|
|
12
|
+
import type { ScrollDirection } from './ScrollDirection';
|
|
12
13
|
export default interface VideoPlayerConfiguration {
|
|
13
14
|
/**
|
|
14
15
|
* Sets the proportion of the video player to its container.
|
|
@@ -103,5 +104,9 @@ export default interface VideoPlayerConfiguration {
|
|
|
103
104
|
* Only supported on iOS.
|
|
104
105
|
*/
|
|
105
106
|
pipPlacement?: PipPlacement;
|
|
107
|
+
/**
|
|
108
|
+
* Specifies the scroll direction.
|
|
109
|
+
*/
|
|
110
|
+
scrollDirection?: ScrollDirection;
|
|
106
111
|
}
|
|
107
112
|
//# sourceMappingURL=VideoPlayerConfiguration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoPlayerConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/models/VideoPlayerConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,MAAM,kCAAkC,CAAC;AACnF,OAAO,KAAK,EA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AAe,CAAC;CACnC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the video type.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum VideoType {
|
|
5
|
+
/**
|
|
6
|
+
* Advertisement video
|
|
7
|
+
*/
|
|
8
|
+
Ad = "ad",
|
|
9
|
+
/**
|
|
10
|
+
* Regular video
|
|
11
|
+
*/
|
|
12
|
+
Video = "video",
|
|
13
|
+
/**
|
|
14
|
+
* Livestream video
|
|
15
|
+
*/
|
|
16
|
+
Livestream = "livestream"
|
|
17
|
+
}
|
|
18
|
+
export default VideoType;
|
|
19
|
+
//# sourceMappingURL=VideoType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoType.d.ts","sourceRoot":"","sources":["../../../../../src/models/VideoType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,UAAU,eAAe;CAC1B;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NativeEventEmitter, type NativeModule } from 'react-native';
|
|
2
2
|
interface ILiveStreamModule extends NativeModule {
|
|
3
3
|
init(): Promise<any>;
|
|
4
|
+
setCustomLinkInteractionClickEnabled(enabled: boolean): Promise<any>;
|
|
4
5
|
}
|
|
5
6
|
declare const LiveStreamModuleEventEmitter: NativeEventEmitter;
|
|
6
7
|
export { LiveStreamModuleEventEmitter };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveStreamModule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/LiveStreamModule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,YAAY,EAElB,MAAM,cAAc,CAAC;AAetB,UAAU,iBAAkB,SAAQ,YAAY;IAC9C,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"LiveStreamModule.d.ts","sourceRoot":"","sources":["../../../../../src/modules/LiveStreamModule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,YAAY,EAElB,MAAM,cAAc,CAAC;AAetB,UAAU,iBAAkB,SAAQ,YAAY;IAC9C,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACrB,oCAAoC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CACtE;AACD,QAAA,MAAM,4BAA4B,oBAA2C,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,CAAC;wBAEL,iBAAiB;AAApD,wBAAqD"}
|
package/package.json
CHANGED
package/src/LiveStream.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { NativeEventEmitter } from 'react-native';
|
|
2
2
|
import { FWEventName } from './models/FWEventName';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
3
|
+
import type {
|
|
4
|
+
LiveStreamChatEvent,
|
|
5
|
+
LiveStreamEvent,
|
|
6
|
+
CustomLinkInteractionClickEvent,
|
|
7
|
+
} from './models/FWEvents';
|
|
8
|
+
import LiveStreamModule, {
|
|
9
|
+
LiveStreamModuleEventEmitter,
|
|
10
|
+
} from './modules/LiveStreamModule';
|
|
5
11
|
import FWLoggerUtil from './utils/FWLoggerUtil';
|
|
6
12
|
|
|
7
13
|
export type onLiveStreamEventCallback = (
|
|
@@ -10,6 +16,9 @@ export type onLiveStreamEventCallback = (
|
|
|
10
16
|
export type onLiveStreamChatEventCallback = (
|
|
11
17
|
event: LiveStreamChatEvent
|
|
12
18
|
) => Promise<void> | void;
|
|
19
|
+
export type CustomLinkInteractionClickCallback = (
|
|
20
|
+
event: CustomLinkInteractionClickEvent
|
|
21
|
+
) => Promise<void> | void;
|
|
13
22
|
|
|
14
23
|
/**
|
|
15
24
|
* The entry class of live stream.
|
|
@@ -26,6 +35,28 @@ class LiveStream {
|
|
|
26
35
|
*/
|
|
27
36
|
public onLiveStreamChatEvent?: onLiveStreamChatEventCallback;
|
|
28
37
|
|
|
38
|
+
private _onCustomLinkInteractionClick?: CustomLinkInteractionClickCallback;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* This callback is triggered when the user clicks
|
|
42
|
+
* the link interaction in livestream.
|
|
43
|
+
*
|
|
44
|
+
* The host app can customize the click event processing logic of
|
|
45
|
+
* the link interaction by setting the callback.
|
|
46
|
+
*/
|
|
47
|
+
public get onCustomLinkInteractionClick():
|
|
48
|
+
| CustomLinkInteractionClickCallback
|
|
49
|
+
| undefined {
|
|
50
|
+
return this._onCustomLinkInteractionClick;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public set onCustomLinkInteractionClick(
|
|
54
|
+
value: CustomLinkInteractionClickCallback | undefined
|
|
55
|
+
) {
|
|
56
|
+
this._onCustomLinkInteractionClick = value;
|
|
57
|
+
LiveStreamModule.setCustomLinkInteractionClickEnabled(value != null);
|
|
58
|
+
}
|
|
59
|
+
|
|
29
60
|
private get eventEmitter(): NativeEventEmitter {
|
|
30
61
|
return LiveStreamModuleEventEmitter;
|
|
31
62
|
}
|
|
@@ -51,6 +82,15 @@ class LiveStream {
|
|
|
51
82
|
this.onLiveStreamChatEvent(event ?? {});
|
|
52
83
|
}
|
|
53
84
|
});
|
|
85
|
+
|
|
86
|
+
this.eventEmitter.addListener(
|
|
87
|
+
FWEventName.CustomLinkInteractionClick,
|
|
88
|
+
(event) => {
|
|
89
|
+
if (this._onCustomLinkInteractionClick) {
|
|
90
|
+
this._onCustomLinkInteractionClick(event ?? {});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
);
|
|
54
94
|
}
|
|
55
95
|
}
|
|
56
96
|
|
|
@@ -397,6 +397,9 @@ const StoryBlock: ForwardRefRenderFunction<
|
|
|
397
397
|
const statusBarHidden = storyBlockConfiguration?.statusBarHidden;
|
|
398
398
|
const statusBarStyle = storyBlockConfiguration?.statusBarStyle;
|
|
399
399
|
const pipPlacement = storyBlockConfiguration?.pipPlacement;
|
|
400
|
+
const scrollDirection = storyBlockConfiguration?.scrollDirection;
|
|
401
|
+
const enableScrollForVertical =
|
|
402
|
+
storyBlockConfiguration?.enableScrollForVertical;
|
|
400
403
|
|
|
401
404
|
let key = `gShareBaseURL:${gShareBaseURL}`;
|
|
402
405
|
if (Platform.OS === 'ios') {
|
|
@@ -468,7 +471,8 @@ const StoryBlock: ForwardRefRenderFunction<
|
|
|
468
471
|
key += `_statusBarHidden:${statusBarHidden}`;
|
|
469
472
|
key += `_statusBarStyle:${statusBarStyle}`;
|
|
470
473
|
key += `_pipPlacement:${pipPlacement}`;
|
|
471
|
-
|
|
474
|
+
key += `_scrollDirection:${scrollDirection}`;
|
|
475
|
+
key += `_enableScrollForVertical:${enableScrollForVertical}`;
|
|
472
476
|
return key;
|
|
473
477
|
};
|
|
474
478
|
|
|
@@ -486,6 +486,7 @@ class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
|
|
|
486
486
|
const statusBarHidden = videoPlayerConfiguration?.statusBarHidden;
|
|
487
487
|
const statusBarStyle = videoPlayerConfiguration?.statusBarStyle;
|
|
488
488
|
const pipPlacement = videoPlayerConfiguration?.pipPlacement;
|
|
489
|
+
const scrollDirection = videoPlayerConfiguration?.scrollDirection;
|
|
489
490
|
let key = `gShareBaseURL:${gShareBaseURL}`;
|
|
490
491
|
if (Platform.OS === 'ios') {
|
|
491
492
|
key += `_appLanguage:${appLanguage}`;
|
|
@@ -581,6 +582,7 @@ class VideoFeed extends React.Component<IVideoFeedProps, IVideoFeedState> {
|
|
|
581
582
|
key += `_statusBarHidden:${statusBarHidden}`;
|
|
582
583
|
key += `_statusBarStyle:${statusBarStyle}`;
|
|
583
584
|
key += `_pipPlacement:${pipPlacement}`;
|
|
585
|
+
key += `_scrollDirection:${scrollDirection}`;
|
|
584
586
|
|
|
585
587
|
return (
|
|
586
588
|
<FWVideoFeed
|
package/src/index.tsx
CHANGED
|
@@ -14,6 +14,7 @@ import type {
|
|
|
14
14
|
import FireworkSDK from './FireworkSDK';
|
|
15
15
|
import FWNavigator from './FWNavigator';
|
|
16
16
|
import type {
|
|
17
|
+
CustomLinkInteractionClickCallback,
|
|
17
18
|
onLiveStreamChatEventCallback,
|
|
18
19
|
onLiveStreamEventCallback,
|
|
19
20
|
} from './LiveStream';
|
|
@@ -36,6 +37,7 @@ import type {
|
|
|
36
37
|
CustomClickCartIconEvent,
|
|
37
38
|
CustomClickLinkButtonEvent,
|
|
38
39
|
CustomCTAClickEvent,
|
|
40
|
+
CustomLinkInteractionClickEvent,
|
|
39
41
|
CustomTapProductCardEvent,
|
|
40
42
|
LiveStreamChatEvent,
|
|
41
43
|
LiveStreamEvent,
|
|
@@ -113,7 +115,10 @@ import type {
|
|
|
113
115
|
} from './models/VideoPlayerLogoConfiguration';
|
|
114
116
|
import type { VideoPlayerStyle } from './models/VideoPlayerStyle';
|
|
115
117
|
import type { StatusBarStyle } from './models/StatusBarStyle';
|
|
118
|
+
import type { ScrollDirection } from './models/ScrollDirection';
|
|
116
119
|
import { PipPlacement } from './models/PipPlacement';
|
|
120
|
+
import { VideoType } from './models/VideoType';
|
|
121
|
+
import { LiveStreamStatus } from './models/LiveStreamStatus';
|
|
117
122
|
import VideoFeedUtil from './utils/VideoFeedUtil';
|
|
118
123
|
import type {
|
|
119
124
|
ClickProductCallback,
|
|
@@ -134,6 +139,7 @@ export {
|
|
|
134
139
|
LiveStream,
|
|
135
140
|
LiveStreamChatEventName,
|
|
136
141
|
LiveStreamEventName,
|
|
142
|
+
LiveStreamStatus,
|
|
137
143
|
LivestreamPlayerDesignVersion,
|
|
138
144
|
PipPlacement,
|
|
139
145
|
StoryBlock,
|
|
@@ -141,6 +147,7 @@ export {
|
|
|
141
147
|
VideoFeedUtil,
|
|
142
148
|
VideoPlaybackEventName,
|
|
143
149
|
VideoShopping,
|
|
150
|
+
VideoType,
|
|
144
151
|
};
|
|
145
152
|
export type {
|
|
146
153
|
AdBadgeConfiguration,
|
|
@@ -159,6 +166,8 @@ export type {
|
|
|
159
166
|
CustomClickLinkButtonEvent,
|
|
160
167
|
CustomCTAClickCallback,
|
|
161
168
|
CustomCTAClickEvent,
|
|
169
|
+
CustomLinkInteractionClickCallback,
|
|
170
|
+
CustomLinkInteractionClickEvent,
|
|
162
171
|
CustomTapProductCardCallback,
|
|
163
172
|
CustomTapProductCardEvent,
|
|
164
173
|
DataTrackingLevel,
|
|
@@ -238,4 +247,5 @@ export type {
|
|
|
238
247
|
VideoPlayerLogoOption,
|
|
239
248
|
VideoPlayerSize,
|
|
240
249
|
VideoPlayerStyle,
|
|
250
|
+
ScrollDirection,
|
|
241
251
|
};
|
|
@@ -9,6 +9,7 @@ export enum FWEventName {
|
|
|
9
9
|
UpdateProductDetails = 'fw:shopping:update-product-details',
|
|
10
10
|
LiveStream = 'fw:livestream',
|
|
11
11
|
LiveStreamChat = 'fw:livestream-chat',
|
|
12
|
+
CustomLinkInteractionClick = 'fw:livestream:custom-link-interaction-click',
|
|
12
13
|
ShareBaseURLUpdated = 'fw:share-base-url-updated',
|
|
13
14
|
VideoLaunchBehaviorUpdated = 'fw:video-launch-behavior-updated',
|
|
14
15
|
AdBadgeConfigurationUpdated = 'fw:ad-badge-configuration-updated',
|
package/src/models/FWEvents.ts
CHANGED
|
@@ -185,3 +185,20 @@ export interface CustomClickCartIconEvent {
|
|
|
185
185
|
*/
|
|
186
186
|
video: VideoPlaybackDetails;
|
|
187
187
|
}
|
|
188
|
+
|
|
189
|
+
export interface CustomLinkInteractionClickEvent {
|
|
190
|
+
/**
|
|
191
|
+
* The link interaction title.
|
|
192
|
+
*/
|
|
193
|
+
title: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The link interaction url.
|
|
197
|
+
*/
|
|
198
|
+
url: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The livestream event details.
|
|
202
|
+
*/
|
|
203
|
+
info: LiveStreamEventDetails;
|
|
204
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { VideoFeedSource } from '../models/VideoFeedSource';
|
|
2
|
+
import type VideoType from './VideoType';
|
|
3
|
+
import type LiveStreamStatus from './LiveStreamStatus';
|
|
2
4
|
|
|
3
5
|
export default interface FeedItemDetails {
|
|
4
6
|
/**
|
|
@@ -55,4 +57,14 @@ export default interface FeedItemDetails {
|
|
|
55
57
|
* The feed id for the item.
|
|
56
58
|
*/
|
|
57
59
|
feedId?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* The type of video.
|
|
62
|
+
*/
|
|
63
|
+
videoType?: VideoType | null;
|
|
64
|
+
/**
|
|
65
|
+
* The status of the livestream.
|
|
66
|
+
* When videoType is VideoType.Livestream, you could use
|
|
67
|
+
* this property to check the live stream status.
|
|
68
|
+
*/
|
|
69
|
+
liveStreamStatus?: LiveStreamStatus | null;
|
|
58
70
|
}
|
|
@@ -1,5 +1,28 @@
|
|
|
1
|
+
import type VideoPlaybackDetails from './VideoPlaybackDetails';
|
|
2
|
+
import type VideoType from './VideoType';
|
|
3
|
+
import type LiveStreamStatus from './LiveStreamStatus';
|
|
4
|
+
|
|
1
5
|
export default interface LiveStreamEventDetails {
|
|
2
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A unique identifier of the live stream.
|
|
8
|
+
*/
|
|
3
9
|
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The associated feed ID.
|
|
12
|
+
*/
|
|
4
13
|
feedId: string;
|
|
14
|
+
/**
|
|
15
|
+
* The type of video.
|
|
16
|
+
*/
|
|
17
|
+
videoType?: VideoType;
|
|
18
|
+
/**
|
|
19
|
+
* The status of the livestream.
|
|
20
|
+
* When videoType is VideoType.Livestream, you could use
|
|
21
|
+
* this property to check the live stream status.
|
|
22
|
+
*/
|
|
23
|
+
liveStreamStatus?: LiveStreamStatus;
|
|
24
|
+
/**
|
|
25
|
+
* The video playback details.
|
|
26
|
+
*/
|
|
27
|
+
video?: VideoPlaybackDetails;
|
|
5
28
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the live stream status.
|
|
3
|
+
* When videoType = VideoType.Livestream, you could use
|
|
4
|
+
* this property to check the live stream status.
|
|
5
|
+
*/
|
|
6
|
+
export enum LiveStreamStatus {
|
|
7
|
+
/**
|
|
8
|
+
* Livestream is idle (not started yet)
|
|
9
|
+
*/
|
|
10
|
+
Idle = 'idle',
|
|
11
|
+
/**
|
|
12
|
+
* Livestream is currently live
|
|
13
|
+
*/
|
|
14
|
+
Live = 'live',
|
|
15
|
+
/**
|
|
16
|
+
* Livestream has completed
|
|
17
|
+
*/
|
|
18
|
+
Completed = 'completed',
|
|
19
|
+
/**
|
|
20
|
+
* Livestream is in replay mode
|
|
21
|
+
*/
|
|
22
|
+
Replay = 'replay',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default LiveStreamStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ScrollDirection = 'horizontal' | 'vertical';
|
|
@@ -10,6 +10,7 @@ import type { VideoPlayerLogoConfiguration } from './VideoPlayerLogoConfiguratio
|
|
|
10
10
|
import type { VideoPlayerStyle } from './VideoPlayerStyle';
|
|
11
11
|
import type { StatusBarStyle } from './StatusBarStyle';
|
|
12
12
|
import type { PipPlacement } from './PipPlacement';
|
|
13
|
+
import type { ScrollDirection } from './ScrollDirection';
|
|
13
14
|
|
|
14
15
|
export interface StoryBlockConfiguration {
|
|
15
16
|
/**
|
|
@@ -112,4 +113,15 @@ export interface StoryBlockConfiguration {
|
|
|
112
113
|
* Only supported on iOS.
|
|
113
114
|
*/
|
|
114
115
|
pipPlacement?: PipPlacement;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Specifies the scroll direction for the story block.
|
|
119
|
+
*/
|
|
120
|
+
scrollDirection?: ScrollDirection;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Specifies scroll enabled for vertical.
|
|
124
|
+
* This property only takes effect when scrollDirection is set to vertical.
|
|
125
|
+
*/
|
|
126
|
+
enableScrollForVertical?: boolean;
|
|
115
127
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type VideoType from './VideoType';
|
|
2
|
+
import type LiveStreamStatus from './LiveStreamStatus';
|
|
3
|
+
|
|
1
4
|
export interface VideoPlayerSize {
|
|
2
5
|
width: number;
|
|
3
6
|
height: number;
|
|
@@ -45,4 +48,14 @@ export default interface VideoPlaybackDetails {
|
|
|
45
48
|
* The associated feed ID
|
|
46
49
|
*/
|
|
47
50
|
feedId?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The type of video.
|
|
53
|
+
*/
|
|
54
|
+
videoType?: VideoType | null;
|
|
55
|
+
/**
|
|
56
|
+
* The status of the livestream.
|
|
57
|
+
* When videoType is VideoType.Livestream, you could use
|
|
58
|
+
* this property to check the live stream status.
|
|
59
|
+
*/
|
|
60
|
+
liveStreamStatus?: LiveStreamStatus | null;
|
|
48
61
|
}
|
|
@@ -9,6 +9,7 @@ import type { ReplayBadgeConfiguration } from './ReplayBadgeConfiguration';
|
|
|
9
9
|
import type CountdownTimerConfiguration from './CountdownTimerConfiguration';
|
|
10
10
|
import type { StatusBarStyle } from './StatusBarStyle';
|
|
11
11
|
import type { PipPlacement } from './PipPlacement';
|
|
12
|
+
import type { ScrollDirection } from './ScrollDirection';
|
|
12
13
|
|
|
13
14
|
export default interface VideoPlayerConfiguration {
|
|
14
15
|
/**
|
|
@@ -108,4 +109,9 @@ export default interface VideoPlayerConfiguration {
|
|
|
108
109
|
* Only supported on iOS.
|
|
109
110
|
*/
|
|
110
111
|
pipPlacement?: PipPlacement;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Specifies the scroll direction.
|
|
115
|
+
*/
|
|
116
|
+
scrollDirection?: ScrollDirection;
|
|
111
117
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the video type.
|
|
3
|
+
*/
|
|
4
|
+
export enum VideoType {
|
|
5
|
+
/**
|
|
6
|
+
* Advertisement video
|
|
7
|
+
*/
|
|
8
|
+
Ad = 'ad',
|
|
9
|
+
/**
|
|
10
|
+
* Regular video
|
|
11
|
+
*/
|
|
12
|
+
Video = 'video',
|
|
13
|
+
/**
|
|
14
|
+
* Livestream video
|
|
15
|
+
*/
|
|
16
|
+
Livestream = 'livestream',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default VideoType;
|