stormcloud-video-player 0.8.80 → 0.8.81

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/dist/stormcloud-vp.min.js +2 -2
  2. package/lib/Player.d.cts +2 -1
  3. package/lib/StormcloudPlayer.cjs +452 -139
  4. package/lib/StormcloudPlayer.cjs.map +1 -1
  5. package/lib/StormcloudPlayer.d.cts +1 -0
  6. package/lib/index.cjs +478 -140
  7. package/lib/index.cjs.map +1 -1
  8. package/lib/index.d.cts +1 -0
  9. package/lib/index.d.ts +30 -5
  10. package/lib/index.js +478 -140
  11. package/lib/index.js.map +1 -1
  12. package/lib/player/AdBreakOrchestrator.cjs +37 -9
  13. package/lib/player/AdBreakOrchestrator.cjs.map +1 -1
  14. package/lib/player/AdBreakOrchestrator.d.cts +1 -0
  15. package/lib/player/AdConfigManager.cjs +408 -123
  16. package/lib/player/AdConfigManager.cjs.map +1 -1
  17. package/lib/player/AdConfigManager.d.cts +2 -0
  18. package/lib/player/AdTimingService.d.cts +1 -0
  19. package/lib/player/EdgePodRequest.d.cts +1 -0
  20. package/lib/player/FloorLadder.d.cts +1 -0
  21. package/lib/player/HlsEngine.d.cts +1 -0
  22. package/lib/player/OptimizedPodRequest.cjs +17 -5
  23. package/lib/player/OptimizedPodRequest.cjs.map +1 -1
  24. package/lib/player/PlayerControls.d.cts +1 -0
  25. package/lib/player/Scte35CueManager.d.cts +1 -0
  26. package/lib/player/Scte35Parser.d.cts +1 -0
  27. package/lib/player/StormcloudVideoPlayer.cjs +452 -139
  28. package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
  29. package/lib/player/StormcloudVideoPlayer.d.cts +5 -4
  30. package/lib/player/playerTypes.d.cts +1 -0
  31. package/lib/players/HlsPlayer.cjs +452 -139
  32. package/lib/players/HlsPlayer.cjs.map +1 -1
  33. package/lib/players/HlsPlayer.d.cts +1 -0
  34. package/lib/players/index.cjs +452 -139
  35. package/lib/players/index.cjs.map +1 -1
  36. package/lib/props.d.cts +1 -0
  37. package/lib/sdk/hlsAdPlayer.d.cts +1 -0
  38. package/lib/types.d.cts +7 -1
  39. package/lib/ui/StormcloudVideoPlayer.cjs +478 -140
  40. package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
  41. package/lib/ui/StormcloudVideoPlayer.d.cts +1 -0
  42. package/lib/utils/__tests__/adSignals.test.cjs +169 -14
  43. package/lib/utils/__tests__/adSignals.test.cjs.map +1 -1
  44. package/lib/utils/contentMetadata.cjs +120 -4
  45. package/lib/utils/contentMetadata.cjs.map +1 -1
  46. package/lib/utils/contentMetadata.d.cts +37 -1
  47. package/lib/utils/deviceInfo.cjs +24 -4
  48. package/lib/utils/deviceInfo.cjs.map +1 -1
  49. package/lib/utils/deviceInfo.d.cts +3 -0
  50. package/lib/utils/partnerSignals.cjs +294 -0
  51. package/lib/utils/partnerSignals.cjs.map +1 -0
  52. package/lib/utils/partnerSignals.d.cts +12 -0
  53. package/lib/utils/tracking.cjs +24 -4
  54. package/lib/utils/tracking.cjs.map +1 -1
  55. package/lib/utils/tracking.d.cts +1 -0
  56. package/lib/utils/vastMacros.cjs +51 -1
  57. package/lib/utils/vastMacros.cjs.map +1 -1
  58. package/lib/utils/vastMacros.d.cts +20 -0
  59. package/package.json +1 -1
package/lib/props.d.cts CHANGED
@@ -2,6 +2,7 @@ import { CSSProperties } from 'react';
2
2
  import { StormcloudVideoPlayer } from './player/StormcloudVideoPlayer.cjs';
3
3
  import './types.cjs';
4
4
  import './player/OptimizedPodRequest.cjs';
5
+ import './utils/contentMetadata.cjs';
5
6
  import './player/FloorLadder.cjs';
6
7
  import './utils/deviceInfo.cjs';
7
8
  import './utils/adIdentity.cjs';
@@ -1,6 +1,7 @@
1
1
  import { AdController } from '../types.cjs';
2
2
  import Hls from 'hls.js';
3
3
  import '../player/OptimizedPodRequest.cjs';
4
+ import '../utils/contentMetadata.cjs';
4
5
 
5
6
  declare function resetGamCredentialsMode(): void;
6
7
  declare function createHlsAdPlayer(contentVideo: HTMLVideoElement, options?: {
package/lib/types.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { AdPodConfig } from './player/OptimizedPodRequest.cjs';
2
+ import { ContentDetails } from './utils/contentMetadata.cjs';
2
3
 
3
4
  type LateJoinPolicy = "play_remaining" | "skip_to_content";
4
5
  interface AdBreak {
@@ -15,7 +16,9 @@ type DeviceCategory = "LG TV" | "LG Set-Top Box" | "Samsung TV" | "Other";
15
16
  interface HostDeviceInfo {
16
17
  terminalId?: string | undefined;
17
18
  internalDeviceId?: string | undefined;
19
+ make?: string | undefined;
18
20
  model?: string | undefined;
21
+ hardwareVersion?: string | undefined;
19
22
  firmware?: string | undefined;
20
23
  category?: DeviceCategory | undefined;
21
24
  }
@@ -54,6 +57,9 @@ interface StormcloudVideoPlayerConfig {
54
57
  programTitle?: string;
55
58
  channelName?: string;
56
59
  contentNetwork?: string;
60
+ contentDetails?: ContentDetails;
61
+ adUserId?: string;
62
+ clientIpAddress?: string;
57
63
  adDeviceId?: string;
58
64
  adDeviceIdType?: string;
59
65
  adLimitAdTracking?: boolean;
@@ -242,4 +248,4 @@ interface AdImpressionInfo {
242
248
  timestamp: string;
243
249
  }
244
250
 
245
- export { type AdBreak, type AdController, type AdControllerOptions, type AdDetectInfo, type AdFloorLadderConfig, type AdImpressionInfo, type AdLoadedInfo, AdPodConfig, type AdPosition, type AdRequestOptions, type AdRequestSource, type AdSchedule, type ClientInfo, type DeviceCategory, type FloorLadderMode, type HeartbeatData, type HostDeviceInfo, type Id3TagInfo, type ImaController, type ImaControllerOptions, type LateJoinPolicy, type PlayerAnalyticsContext, type Scte35Marker, type StormcloudApiResponse, type StormcloudVideoPlayerConfig, type TrackingData };
251
+ export { type AdBreak, type AdController, type AdControllerOptions, type AdDetectInfo, type AdFloorLadderConfig, type AdImpressionInfo, type AdLoadedInfo, AdPodConfig, type AdPosition, type AdRequestOptions, type AdRequestSource, type AdSchedule, type ClientInfo, ContentDetails, type DeviceCategory, type FloorLadderMode, type HeartbeatData, type HostDeviceInfo, type Id3TagInfo, type ImaController, type ImaControllerOptions, type LateJoinPolicy, type PlayerAnalyticsContext, type Scte35Marker, type StormcloudApiResponse, type StormcloudVideoPlayerConfig, type TrackingData };