vdocipher-rn-bridge 2.0.1 → 2.1.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.
Files changed (59) hide show
  1. package/VdoCastButton.tsx +22 -0
  2. package/VdoCastMiniController.tsx +21 -0
  3. package/VdoPlayerView.tsx +64 -0
  4. package/android/build.gradle +5 -3
  5. package/android/src/main/java/com/vdocipher/rnbridge/AudioFocusManager.java +7 -2
  6. package/android/src/main/java/com/vdocipher/rnbridge/PlayerViewRegistry.java +21 -0
  7. package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoCastButtonManagerImpl.java +40 -0
  8. package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoCastMiniControllerManagerImpl.java +12 -0
  9. package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoPlayerUIView.java +85 -59
  10. package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoPlayerUIViewManagerImpl.java +18 -0
  11. package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoPlayerView.java +450 -103
  12. package/android/src/main/java/com/vdocipher/rnbridge/ReactVdoPlayerViewManagerImpl.java +30 -1
  13. package/android/src/main/java/com/vdocipher/rnbridge/TrackSelectionModuleImpl.java +13 -28
  14. package/android/src/main/java/com/vdocipher/rnbridge/Utils.java +36 -0
  15. package/android/src/main/java/com/vdocipher/rnbridge/VdoCastButtonView.java +59 -0
  16. package/android/src/main/java/com/vdocipher/rnbridge/VdoCastMiniControllerView.java +83 -0
  17. package/android/src/main/java/com/vdocipher/rnbridge/VdoDownloadModuleImpl.java +15 -3
  18. package/android/src/main/java/com/vdocipher/rnbridge/VdoEventEmitter.java +15 -2
  19. package/android/src/main/java/com/vdocipher/rnbridge/VdoPlayerModuleImpl.java +8 -10
  20. package/android/src/main/java/com/vdocipher/rnbridge/VdoPlayerSettingsModuleImpl.java +5 -0
  21. package/android/src/main/java/com/vdocipher/rnbridge/VdocipherRnBridgeModuleImpl.java +12 -0
  22. package/android/src/main/java/com/vdocipher/rnbridge/VdocipherRnBridgePackage.java +3 -1
  23. package/android/src/main/res/layout/vdo_cast_mini_controller.xml +9 -0
  24. package/android/src/main/res/values/vdo_cast_arrays.xml +9 -0
  25. package/android/src/newarch/java/com/vdocipher/rnbridge/ReactVdoCastButtonManager.java +44 -0
  26. package/android/src/newarch/java/com/vdocipher/rnbridge/ReactVdoCastMiniControllerManager.java +37 -0
  27. package/android/src/newarch/java/com/vdocipher/rnbridge/ReactVdoPlayerUIViewManager.java +12 -0
  28. package/android/src/newarch/java/com/vdocipher/rnbridge/ReactVdoPlayerViewManager.java +30 -0
  29. package/android/src/newarch/java/com/vdocipher/rnbridge/VdoPlayerModule.java +5 -0
  30. package/android/src/newarch/java/com/vdocipher/rnbridge/VdoPlayerSettingsModule.java +5 -0
  31. package/android/src/oldarch/java/com/vdocipher/rnbridge/ReactVdoCastButtonManager.java +27 -0
  32. package/android/src/oldarch/java/com/vdocipher/rnbridge/ReactVdoCastMiniControllerManager.java +19 -0
  33. package/android/src/oldarch/java/com/vdocipher/rnbridge/ReactVdoPlayerUIViewManager.java +4 -0
  34. package/android/src/oldarch/java/com/vdocipher/rnbridge/ReactVdoPlayerViewManager.java +13 -0
  35. package/android/src/oldarch/java/com/vdocipher/rnbridge/VdoPlayerModule.java +5 -0
  36. package/android/src/oldarch/java/com/vdocipher/rnbridge/VdoPlayerSettingsModule.java +5 -0
  37. package/downloads.ts +4 -1
  38. package/index.ts +4 -0
  39. package/ios/RCTVdoPlayerUIView.swift +38 -11
  40. package/ios/RCTVdoPlayerUIViewComponentView.mm +1 -0
  41. package/ios/RCTVdoPlayerView.swift +5 -2
  42. package/ios/RCTVdoPlayerViewComponentView.mm +1 -0
  43. package/ios/VdoCipherRNView.h +1 -0
  44. package/ios/VdoCipherRNView.swift +142 -19
  45. package/ios/VdoEventEmitter.swift +2 -0
  46. package/ios/VdoPlaybackProperties.h +1 -0
  47. package/ios/VdoPlaybackProperties.swift +5 -0
  48. package/ios/VdoPlayerCommandDispatch.h +4 -0
  49. package/ios/VdoPlayerSettings.swift +5 -0
  50. package/ios/VdocipherRnBridgeViewManager.mm +12 -0
  51. package/ios/VdocipherRnBridgeViewManager.swift +5 -1
  52. package/package.json +3 -1
  53. package/specs/NativeVdoPlayer.ts +1 -0
  54. package/specs/NativeVdoPlayerSettings.ts +2 -0
  55. package/specs/RCTVdoCastButtonNativeComponent.ts +11 -0
  56. package/specs/RCTVdoCastMiniControllerNativeComponent.ts +9 -0
  57. package/specs/RCTVdoPlayerUIViewNativeComponent.ts +13 -0
  58. package/specs/RCTVdoPlayerViewNativeComponent.ts +19 -0
  59. package/type.ts +51 -1
@@ -60,6 +60,8 @@ RCT_EXPORT_METHOD(enableAdaptiveVideo:(nonnull NSNumber *)reactTag) { [self disp
60
60
  RCT_EXPORT_METHOD(setVideoQuality:(nonnull NSNumber *)reactTag track:(NSString *)track) { [self dispatchCommand:@"setVideoQuality" toTag:reactTag args:@[track]]; }
61
61
  RCT_EXPORT_METHOD(setScreenFocused:(nonnull NSNumber *)reactTag) { [self dispatchCommand:@"setScreenFocused" toTag:reactTag args:@[]]; }
62
62
  RCT_EXPORT_METHOD(setScreenBlurred:(nonnull NSNumber *)reactTag) { [self dispatchCommand:@"setScreenBlurred" toTag:reactTag args:@[]]; }
63
+ RCT_EXPORT_METHOD(mute:(nonnull NSNumber *)reactTag) { [self dispatchCommand:@"mute" toTag:reactTag args:@[]]; }
64
+ RCT_EXPORT_METHOD(unmute:(nonnull NSNumber *)reactTag) { [self dispatchCommand:@"unmute" toTag:reactTag args:@[]]; }
63
65
 
64
66
  @end
65
67
 
@@ -103,6 +105,8 @@ RCT_EXPORT_METHOD(setCaptionLanguage:(nonnull NSNumber *)reactTag caption:(NSStr
103
105
  RCT_EXPORT_METHOD(disableCaptions:(nonnull NSNumber *)reactTag) { [self dispatchCommand:@"disableCaptions" toTag:reactTag args:@[]]; }
104
106
  RCT_EXPORT_METHOD(enableAdaptiveVideo:(nonnull NSNumber *)reactTag) { [self dispatchCommand:@"enableAdaptiveVideo" toTag:reactTag args:@[]]; }
105
107
  RCT_EXPORT_METHOD(setVideoQuality:(nonnull NSNumber *)reactTag track:(NSString *)track) { [self dispatchCommand:@"setVideoQuality" toTag:reactTag args:@[track]]; }
108
+ RCT_EXPORT_METHOD(mute:(nonnull NSNumber *)reactTag) { [self dispatchCommand:@"mute" toTag:reactTag args:@[]]; }
109
+ RCT_EXPORT_METHOD(unmute:(nonnull NSNumber *)reactTag) { [self dispatchCommand:@"unmute" toTag:reactTag args:@[]]; }
106
110
 
107
111
  @end
108
112
 
@@ -139,6 +143,13 @@ RCT_EXPORT_METHOD(getPlaybackPropertiesV2: (RCTResponseSenderBlock) callback)
139
143
  callback(@[playbackProperties]);
140
144
  }
141
145
 
146
+ RCT_EXPORT_METHOD(isMuted: (RCTResponseSenderBlock) callback)
147
+ {
148
+ dispatch_async(dispatch_get_main_queue(), ^{
149
+ callback(@[@([VdoPlaybackProperties isMuted])]);
150
+ });
151
+ }
152
+
142
153
  @end
143
154
 
144
155
  @interface RCT_EXTERN_MODULE(TrackSelection, NSObject)
@@ -160,6 +171,7 @@ RCT_EXTERN_METHOD(isAdaptive: (RCTResponseSenderBlock) callback)
160
171
  @interface RCT_EXTERN_MODULE(VdoPlayerSettings, NSObject)
161
172
 
162
173
  RCT_EXTERN_METHOD(applySettings: (NSDictionary *) playerSettings)
174
+ RCT_EXTERN_METHOD(setPictureInPictureActionsEnabled: (BOOL) enabled)
163
175
 
164
176
  @end
165
177
 
@@ -5,7 +5,7 @@ import VdoFramework
5
5
  @objc(VdocipherRnBridge)
6
6
  class VdocipherRnBridge: NSObject {
7
7
 
8
- static let vdocipherRnBridgeVersionString = "2.0.1"
8
+ static let vdocipherRnBridgeVersionString = "2.1.0"
9
9
 
10
10
  @objc static func requiresMainQueueSetup() -> Bool {
11
11
  return true
@@ -13,6 +13,7 @@ class VdocipherRnBridge: NSObject {
13
13
 
14
14
  private var playerViewController: AVPlayerViewController?
15
15
  private var resumeTime: CMTime?
16
+ private var startMuted = false
16
17
 
17
18
  @objc func startVideoScreen(_ embedInfo: [String: Any], setPictureInPictureSupport: Bool) {
18
19
  let userDefaults: UserDefaults? = UserDefaults.init(suiteName: "com.vdocipher.ios.rn.VdoFramework")
@@ -34,6 +35,7 @@ class VdocipherRnBridge: NSObject {
34
35
  guard let embedInfo = embedInfo["embedInfo"] as? [String: Any] else {return}
35
36
  let customPlayerId = embedInfo["customPlayerId"] as? String
36
37
  let preferredCaptionsLanguage = embedInfo["preferredCaptionsLanguage"] as? String
38
+ startMuted = embedInfo["startMuted"] as? Bool ?? false
37
39
  var credentials: Credentials?
38
40
  var videoId: String?
39
41
  if let token = embedInfo["token"] as? String, let mediaId = embedInfo["mediaId"] as? String, !token.isEmpty, !mediaId.isEmpty {
@@ -115,6 +117,8 @@ extension VdocipherRnBridge: AssetPlaybackDelegate {
115
117
 
116
118
  func streamPlaybackManager(playerCurrentItemDidChange player: AVPlayer) {
117
119
  self.playerViewController?.player = player
120
+ // Set either way: the player may still be muted from an earlier video.
121
+ player.isMuted = startMuted
118
122
  if let resumeTime = self.resumeTime {
119
123
  player.seek(to: resumeTime)
120
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vdocipher-rn-bridge",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "React native bridge library that delegates to vdocipher native android SDK",
5
5
  "homepage": "https://www.vdocipher.com/docs/mobile/react-native/getting-started/",
6
6
  "scripts": {
@@ -46,6 +46,8 @@
46
46
  "VdoPlayerView.tsx",
47
47
  "VdoPlayerSupportView.tsx",
48
48
  "VdoPlayerUIView.tsx",
49
+ "VdoCastButton.tsx",
50
+ "VdoCastMiniController.tsx",
49
51
  "downloads.ts",
50
52
  "downloadMonitor.ts",
51
53
  "index.ts",
@@ -4,6 +4,7 @@ import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
4
4
 
5
5
  export interface Spec extends TurboModule {
6
6
  getPlaybackPropertiesV2(callback: (playbackProperties: {totalPlayed: Int32, totalCovered: Int32}) => void): void;
7
+ isMuted(callback: (muted: boolean) => void): void;
7
8
  }
8
9
 
9
10
  export default TurboModuleRegistry.getEnforcing<Spec>(
@@ -6,6 +6,8 @@ export interface Spec extends TurboModule {
6
6
  // Each platform reads only its own keys (Android: vdoPlaybackModeAndroid/bufferingGoalMs;
7
7
  // iOS: vdoPlaybackModeiOS). All optional so a caller passes only what its platform needs.
8
8
  applySettings(playerSettings: UnsafeObject): void;
9
+ // Android only; a no-op that logs on iOS.
10
+ setPictureInPictureActionsEnabled(enabled: boolean): void;
9
11
  }
10
12
 
11
13
  export default TurboModuleRegistry.getEnforcing<Spec>(
@@ -0,0 +1,11 @@
1
+ import type { ColorValue, HostComponent, ViewProps } from "react-native";
2
+ import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent";
3
+
4
+ export interface NativeProps extends ViewProps {
5
+ tint?: ColorValue;
6
+ }
7
+
8
+ export default codegenNativeComponent<NativeProps>(
9
+ "VdoCastButton",
10
+ { paperComponentName: "RCTVdoCastButton" }
11
+ ) as HostComponent<NativeProps>;
@@ -0,0 +1,9 @@
1
+ import type { HostComponent, ViewProps } from "react-native";
2
+ import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent";
3
+
4
+ export interface NativeProps extends ViewProps {}
5
+
6
+ export default codegenNativeComponent<NativeProps>(
7
+ "VdoCastMiniController",
8
+ { paperComponentName: "RCTVdoCastMiniController" }
9
+ ) as HostComponent<NativeProps>;
@@ -4,6 +4,12 @@ import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNati
4
4
  import codegenNativeCommands from "react-native/Libraries/Utilities/codegenNativeCommands";
5
5
  import type * as React from "react";
6
6
 
7
+ interface MediaMetadata {
8
+ title?: string | null;
9
+ description?: string | null;
10
+ posterUrl?: string | null;
11
+ }
12
+
7
13
  interface EmbedInfo {
8
14
  otp?: string;
9
15
  playbackInfo?: string;
@@ -26,6 +32,9 @@ interface EmbedInfo {
26
32
  clipEndInMs?: Int32 | null;
27
33
  clipped?: boolean | null;
28
34
  clipMarkerColor?: string | null;
35
+ mediaMetadata?: MediaMetadata | null;
36
+ startMuted?: boolean | null;
37
+ disableAnalytics?: boolean | null;
29
38
  }
30
39
 
31
40
  export interface NativeProps extends ViewProps {
@@ -68,6 +77,8 @@ interface NativeCommands {
68
77
  // iOS-only: pause on screen blur / resume on focus. No-op on Android.
69
78
  setScreenFocused: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
70
79
  setScreenBlurred: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
80
+ mute: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
81
+ unmute: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
71
82
  }
72
83
 
73
84
  export const Commands = codegenNativeCommands<NativeCommands>({
@@ -84,6 +95,8 @@ export const Commands = codegenNativeCommands<NativeCommands>({
84
95
  "setCaptionLanguage",
85
96
  "setScreenFocused",
86
97
  "setScreenBlurred",
98
+ "mute",
99
+ "unmute",
87
100
  ],
88
101
  });
89
102
 
@@ -4,6 +4,12 @@ import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNati
4
4
  import codegenNativeCommands from "react-native/Libraries/Utilities/codegenNativeCommands";
5
5
  import type * as React from "react";
6
6
 
7
+ interface MediaMetadata {
8
+ title?: string | null;
9
+ description?: string | null;
10
+ posterUrl?: string | null;
11
+ }
12
+
7
13
  interface EmbedInfo {
8
14
  otp?: string;
9
15
  playbackInfo?: string;
@@ -26,6 +32,9 @@ interface EmbedInfo {
26
32
  clipEndInMs?: Int32 | null;
27
33
  clipped?: boolean | null;
28
34
  clipMarkerColor?: string | null;
35
+ mediaMetadata?: MediaMetadata | null;
36
+ startMuted?: boolean | null;
37
+ disableAnalytics?: boolean | null;
29
38
  }
30
39
 
31
40
  export interface NativeProps extends ViewProps {
@@ -33,6 +42,7 @@ export interface NativeProps extends ViewProps {
33
42
  resizeMode?: string;
34
43
  aspectRatio?: Float;
35
44
  autoPlay?: WithDefault<boolean, true>;
45
+ chromecastEnabled?: WithDefault<boolean, false>;
36
46
 
37
47
  onInitSuccess: DirectEventHandler<{restored: boolean}>,
38
48
  onInitFailure: DirectEventHandler<{errorDescription: {errorCode: Int32, errorMsg: string, httpStatusCode: Int32}}>,
@@ -49,6 +59,7 @@ export interface NativeProps extends ViewProps {
49
59
  onVdoEnterFullscreen: DirectEventHandler<{}>,
50
60
  onVdoExitFullscreen: DirectEventHandler<{}>,
51
61
  onVdoPictureInPictureModeChanged: DirectEventHandler<{isInPictureInPictureMode: boolean}>,
62
+ onVdoCastStateChanged: DirectEventHandler<{state: string, deviceName: string}>,
52
63
  }
53
64
 
54
65
  // Command names/signatures must stay in sync with the native handlers (no compile-time link):
@@ -63,6 +74,10 @@ interface NativeCommands {
63
74
  setVideoQuality: (viewRef: React.ElementRef<HostComponent<NativeProps>>, track: string) => void;
64
75
  setCaptionLanguage: (viewRef: React.ElementRef<HostComponent<NativeProps>>, caption: string) => void;
65
76
  disableCaptions: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
77
+ stopCasting: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
78
+ openCastControls: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
79
+ mute: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
80
+ unmute: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
66
81
  }
67
82
 
68
83
  export const Commands = codegenNativeCommands<NativeCommands>({
@@ -75,6 +90,10 @@ export const Commands = codegenNativeCommands<NativeCommands>({
75
90
  "setVideoQuality",
76
91
  "setCaptionLanguage",
77
92
  "disableCaptions",
93
+ "stopCasting",
94
+ "openCastControls",
95
+ "mute",
96
+ "unmute",
78
97
  ],
79
98
  });
80
99
 
package/type.ts CHANGED
@@ -23,6 +23,29 @@ interface BaseEmbedInfo {
23
23
  * Not supported in iOS
24
24
  */
25
25
  allowAdbDebugging?: boolean;
26
+ /**
27
+ * Title, description and poster for the background playback notification.
28
+ * Android only.
29
+ */
30
+ mediaMetadata?: MediaMetadata | null;
31
+ /**
32
+ * Starts the video muted. Defaults to false. A reload of the same video keeps its current mute state.
33
+ */
34
+ startMuted?: boolean;
35
+ /**
36
+ * If true, this playback sends no analytics. Defaults to false. Android only.
37
+ */
38
+ disableAnalytics?: boolean;
39
+ }
40
+
41
+ /**
42
+ * If any field is set, fields left out show blank instead of the
43
+ * dashboard values, so pass all three.
44
+ */
45
+ export interface MediaMetadata {
46
+ title?: string | null;
47
+ description?: string | null;
48
+ posterUrl?: string | null;
26
49
  }
27
50
 
28
51
  interface ClippableEmbedInfo extends BaseEmbedInfo {
@@ -118,6 +141,19 @@ export interface QueryFilters {
118
141
 
119
142
  export interface EnqueueSelections {
120
143
  selections: Array<number>;
144
+ /**
145
+ * Shown in the download notification. Android only.
146
+ */
147
+ notificationTitle?: string | null;
148
+ /**
149
+ * Saved with the download but not shown in the notification. Android only.
150
+ */
151
+ notificationDescription?: string | null;
152
+ /**
153
+ * If true, this download sends no analytics. Defaults to false. Offline playback needs
154
+ * disableAnalytics in its embedInfo too. Android only.
155
+ */
156
+ disableAnalytics?: boolean;
121
157
  }
122
158
 
123
159
  export interface DownloadOptionsResult {
@@ -173,6 +209,7 @@ export interface VdoPlayerProps extends ViewProps {
173
209
  embedInfo: EmbedInfo | OfflineEmbedInfo;
174
210
  showNativeControls?: boolean;
175
211
  autoPlay?: boolean;
212
+ chromecastEnabled?: boolean;
176
213
  style?: StyleProp<ViewStyle & { resizeMode?: string }>;
177
214
  // Native view callbacks (internal plumbing, overridden by VdoPlayerView)
178
215
  onInitSuccess?: (event: any) => void;
@@ -190,6 +227,7 @@ export interface VdoPlayerProps extends ViewProps {
190
227
  onVdoEnterFullscreen?: (event: any) => void;
191
228
  onVdoExitFullscreen?: (event: any) => void;
192
229
  onVdoPictureInPictureModeChanged?: (event: any) => void;
230
+ onVdoCastStateChanged?: (event: any) => void;
193
231
  // Wrapper-level callbacks (public API)
194
232
  onInitializationSuccess?: (event: { restored: boolean }) => void;
195
233
  onInitializationFailure?: (event: { errorDescription: ErrorDescription }) => void;
@@ -206,6 +244,7 @@ export interface VdoPlayerProps extends ViewProps {
206
244
  onEnterFullscreen?: () => void;
207
245
  onExitFullscreen?: () => void;
208
246
  onPictureInPictureModeChanged?: (event: { isInPictureInPictureMode: boolean }) => void;
247
+ onCastStateChanged?: (event: { state: string; deviceName?: string }) => void;
209
248
  }
210
249
 
211
250
  export const VdoPropTypes = {
@@ -225,7 +264,8 @@ export const VdoPropTypes = {
225
264
  onVdoEnterFullscreen: PropTypes.func,
226
265
  onVdoExitFullscreen: PropTypes.func,
227
266
  onVdoPictureInPictureModeChanged: PropTypes.func,
228
-
267
+ onVdoCastStateChanged: PropTypes.func,
268
+
229
269
  /* Wrapper component public api */
230
270
  embedInfo: PropTypes.oneOfType([
231
271
  PropTypes.shape({
@@ -240,6 +280,8 @@ export const VdoPropTypes = {
240
280
  customPlayerId: PropTypes.string,
241
281
  resumeTimeMs: PropTypes.number,
242
282
  allowAdbDebugging: PropTypes.bool,
283
+ startMuted: PropTypes.bool,
284
+ disableAnalytics: PropTypes.bool,
243
285
  clipStartInMs: PropTypes.number,
244
286
  clipEndInMs: PropTypes.number,
245
287
  clipped: PropTypes.bool,
@@ -257,6 +299,8 @@ export const VdoPropTypes = {
257
299
  customPlayerId: PropTypes.string,
258
300
  resumeTimeMs: PropTypes.number,
259
301
  allowAdbDebugging: PropTypes.bool,
302
+ startMuted: PropTypes.bool,
303
+ disableAnalytics: PropTypes.bool,
260
304
  clipStartInMs: PropTypes.number,
261
305
  clipEndInMs: PropTypes.number,
262
306
  clipped: PropTypes.bool,
@@ -275,6 +319,8 @@ export const VdoPropTypes = {
275
319
  customPlayerId: PropTypes.string,
276
320
  resumeTimeMs: PropTypes.number,
277
321
  allowAdbDebugging: PropTypes.bool,
322
+ startMuted: PropTypes.bool,
323
+ disableAnalytics: PropTypes.bool,
278
324
  }),
279
325
  PropTypes.shape({
280
326
  offline: PropTypes.bool.isRequired,
@@ -284,6 +330,8 @@ export const VdoPropTypes = {
284
330
  playerConfig: PropTypes.string,
285
331
  resumeTimeMs: PropTypes.number,
286
332
  allowAdbDebugging: PropTypes.bool,
333
+ startMuted: PropTypes.bool,
334
+ disableAnalytics: PropTypes.bool,
287
335
  clipStartInMs: PropTypes.number,
288
336
  clipEndInMs: PropTypes.number,
289
337
  clipped: PropTypes.bool,
@@ -295,6 +343,7 @@ export const VdoPropTypes = {
295
343
  }),
296
344
  showNativeControls: PropTypes.bool,
297
345
  autoPlay: PropTypes.bool,
346
+ chromecastEnabled: PropTypes.bool,
298
347
  onInitializationSuccess: PropTypes.func,
299
348
  onInitializationFailure: PropTypes.func,
300
349
  onLoading: PropTypes.func,
@@ -310,4 +359,5 @@ export const VdoPropTypes = {
310
359
  onEnterFullscreen: PropTypes.func,
311
360
  onExitFullscreen: PropTypes.func,
312
361
  onPictureInPictureModeChanged: PropTypes.func,
362
+ onCastStateChanged: PropTypes.func,
313
363
  }