@24i/bigscreen-sdk 1.0.24-alpha.2414 → 1.0.24-alpha.2421

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/bigscreen-sdk",
3
- "version": "1.0.24-alpha.2414",
3
+ "version": "1.0.24-alpha.2421",
4
4
  "description": "SmartApps BIGscreen SDK monorepo",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -40,7 +40,7 @@
40
40
  "@24i/appstage-shared-analytics": "1.0.17-alpha.60",
41
41
  "@24i/appstage-shared-events-manager": "1.0.11",
42
42
  "@24i/appstage-shared-perf-utils": "1.0.11",
43
- "@24i/bigscreen-players-engine-base": "1.0.2",
43
+ "@24i/bigscreen-players-engine-base": "1.0.3",
44
44
  "@24i/smartapps-datalayer": "3.0.10-alpha.1014",
45
45
  "@sentry/browser": "7.35.0",
46
46
  "@sentry/types": "7.35.0",
@@ -11,6 +11,5 @@ export const mapBuffering = (
11
11
  action: triggerName,
12
12
  event_trigger: triggerName,
13
13
  thing_id: getAssetId(payload.sceneId),
14
- source_channel_id: payload.channelId,
15
14
  source_page: payload.sceneName,
16
15
  });
@@ -16,7 +16,6 @@ export interface CorePayload {
16
16
  duration?: number;
17
17
  id?: string;
18
18
  percentOfPlayback?: number;
19
- channelId?: string;
20
19
  }
21
20
 
22
21
  export interface SessionInfo {
@@ -68,9 +67,7 @@ export type SceneViewResult = CoreResult & {
68
67
  source_page: string;
69
68
  thing_id: string;
70
69
  };
71
- export type BufferingResult = SceneViewResult & {
72
- source_channel_id?: string;
73
- };
70
+ export type BufferingResult = SceneViewResult;
74
71
 
75
72
  export type ScrollResult = SceneViewResult & {
76
73
  percent_scrolled: string;
@@ -26,5 +26,11 @@ export const mockJavaScriptBridge: IJavaScriptBridge = {
26
26
  bridgeJavaScriptToAndroid_GetTotalTime: () => Date.now(),
27
27
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
28
28
  bridgeJavaScriptToAndroid_SeekTo: (milliseconds: number) => {},
29
+ bridgeJavaScriptToAndroid_getCurrentSubtitleTrack: () => '{}',
30
+ bridgeJavaScriptToAndroid_getCurrentAudioTrack: () => '{}',
31
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
32
+ bridgeJavaScriptToAndroid_SetTrack: (track: string) => {},
33
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
34
+ bridgeJavaScriptToAndroid_SetAudioTrack: (track: string) => {},
29
35
  },
30
36
  };
@@ -51,6 +51,22 @@ interface JavaScriptBridge {
51
51
  * It seeks the video to specified milliseconds
52
52
  */
53
53
  bridgeJavaScriptToAndroid_SeekTo: (milliseconds: number) => void;
54
+ /**
55
+ * It return current text track
56
+ */
57
+ bridgeJavaScriptToAndroid_getCurrentSubtitleTrack: () => string;
58
+ /**
59
+ * It returns current audio track
60
+ */
61
+ bridgeJavaScriptToAndroid_getCurrentAudioTrack: () => string;
62
+ /**
63
+ * It sets text track to be shown.
64
+ */
65
+ bridgeJavaScriptToAndroid_SetTrack: (track: string) => void;
66
+ /**
67
+ * It sets audio track to be used.
68
+ */
69
+ bridgeJavaScriptToAndroid_SetAudioTrack: (track: string) => void;
54
70
  }
55
71
 
56
72
  export type DeviceInfo = {
@@ -26,5 +26,11 @@ export const mockJavaScriptBridge: IJavaScriptBridge = {
26
26
  bridgeJavaScriptToAndroid_GetTotalTime: () => Date.now(),
27
27
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
28
28
  bridgeJavaScriptToAndroid_SeekTo: (milliseconds: number) => {},
29
+ bridgeJavaScriptToAndroid_getCurrentSubtitleTrack: () => '{}',
30
+ bridgeJavaScriptToAndroid_getCurrentAudioTrack: () => '{}',
31
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
32
+ bridgeJavaScriptToAndroid_SetTrack: (track: string) => {},
33
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
34
+ bridgeJavaScriptToAndroid_SetAudioTrack: (track: string) => {},
29
35
  },
30
36
  };
@@ -28,19 +28,15 @@ export class PlayPauseButton extends Component<Props> {
28
28
  }
29
29
 
30
30
  onPlaying = () => {
31
- if (isFocused(this.playButton)) {
32
- runAsync(() => { // Needs to be async to allow pause button to be displayed first
33
- this.pauseButton.current!.focus();
34
- });
35
- }
31
+ runAsync(() => { // Needs to be async to allow pause button to be displayed first
32
+ if (isFocused(this.playButton)) this.pauseButton.current!.focus();
33
+ });
36
34
  };
37
35
 
38
36
  onPause = () => {
39
- if (isFocused(this.pauseButton)) {
40
- runAsync(() => { // Needs to be async to allow play button to be displayed first
41
- this.playButton.current!.focus();
42
- });
43
- }
37
+ runAsync(() => { // Needs to be async to allow play button to be displayed first
38
+ if (isFocused(this.pauseButton)) this.playButton.current!.focus();
39
+ });
44
40
  };
45
41
 
46
42
  focus(options?: FocusOptions) {