stormcloud-video-player 0.8.80 → 0.8.82

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 (64) hide show
  1. package/dist/stormcloud-vp.min.js +2 -2
  2. package/lib/Player.d.cts +1 -0
  3. package/lib/StormcloudPlayer.cjs +527 -142
  4. package/lib/StormcloudPlayer.cjs.map +1 -1
  5. package/lib/StormcloudPlayer.d.cts +1 -0
  6. package/lib/index.cjs +553 -143
  7. package/lib/index.cjs.map +1 -1
  8. package/lib/index.d.cts +1 -0
  9. package/lib/index.d.ts +33 -5
  10. package/lib/index.js +553 -143
  11. package/lib/index.js.map +1 -1
  12. package/lib/player/AdBreakOrchestrator.cjs +100 -12
  13. package/lib/player/AdBreakOrchestrator.cjs.map +1 -1
  14. package/lib/player/AdBreakOrchestrator.d.cts +2 -0
  15. package/lib/player/AdConfigManager.cjs +413 -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 +527 -142
  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 +527 -142
  32. package/lib/players/HlsPlayer.cjs.map +1 -1
  33. package/lib/players/HlsPlayer.d.cts +1 -0
  34. package/lib/players/index.cjs +527 -142
  35. package/lib/players/index.cjs.map +1 -1
  36. package/lib/props.d.cts +1 -0
  37. package/lib/sdk/hlsAdPlayer.cjs +13 -0
  38. package/lib/sdk/hlsAdPlayer.cjs.map +1 -1
  39. package/lib/sdk/hlsAdPlayer.d.cts +1 -0
  40. package/lib/types.d.cts +8 -1
  41. package/lib/ui/StormcloudVideoPlayer.cjs +553 -143
  42. package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
  43. package/lib/ui/StormcloudVideoPlayer.d.cts +1 -0
  44. package/lib/utils/__tests__/adSignals.test.cjs +174 -15
  45. package/lib/utils/__tests__/adSignals.test.cjs.map +1 -1
  46. package/lib/utils/browserCompat.cjs +33 -0
  47. package/lib/utils/browserCompat.cjs.map +1 -1
  48. package/lib/utils/browserCompat.d.cts +3 -1
  49. package/lib/utils/contentMetadata.cjs +132 -5
  50. package/lib/utils/contentMetadata.cjs.map +1 -1
  51. package/lib/utils/contentMetadata.d.cts +39 -1
  52. package/lib/utils/deviceInfo.cjs +24 -4
  53. package/lib/utils/deviceInfo.cjs.map +1 -1
  54. package/lib/utils/deviceInfo.d.cts +3 -0
  55. package/lib/utils/partnerSignals.cjs +296 -0
  56. package/lib/utils/partnerSignals.cjs.map +1 -0
  57. package/lib/utils/partnerSignals.d.cts +12 -0
  58. package/lib/utils/tracking.cjs +24 -4
  59. package/lib/utils/tracking.cjs.map +1 -1
  60. package/lib/utils/tracking.d.cts +1 -0
  61. package/lib/utils/vastMacros.cjs +51 -1
  62. package/lib/utils/vastMacros.cjs.map +1 -1
  63. package/lib/utils/vastMacros.d.cts +20 -0
  64. package/package.json +1 -1
@@ -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,10 @@ interface StormcloudVideoPlayerConfig {
54
57
  programTitle?: string;
55
58
  channelName?: string;
56
59
  contentNetwork?: string;
60
+ contentDetails?: ContentDetails;
61
+ allowRepeatAdsInBreak?: boolean;
62
+ adUserId?: string;
63
+ clientIpAddress?: string;
57
64
  adDeviceId?: string;
58
65
  adDeviceIdType?: string;
59
66
  adLimitAdTracking?: boolean;
@@ -242,4 +249,4 @@ interface AdImpressionInfo {
242
249
  timestamp: string;
243
250
  }
244
251
 
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 };
252
+ 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 };