stormcloud-video-player 0.2.0 → 0.2.3

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/lib/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import * as csstype from 'csstype';
2
1
  import React, { CSSProperties, lazy as lazy$1 } from 'react';
2
+ import * as csstype from 'csstype';
3
3
 
4
4
  type LateJoinPolicy = "play_remaining" | "skip_to_content";
5
5
  interface AdBreak {
@@ -141,6 +141,14 @@ declare class StormcloudVideoPlayer {
141
141
  destroy(): void;
142
142
  }
143
143
 
144
+ type StormcloudVideoPlayerProps = Omit<StormcloudVideoPlayerConfig, "videoElement"> & React.VideoHTMLAttributes<HTMLVideoElement> & {
145
+ onReady?: (player: StormcloudVideoPlayer) => void;
146
+ wrapperClassName?: string;
147
+ wrapperStyle?: React.CSSProperties;
148
+ licenseKey?: string;
149
+ };
150
+ declare const StormcloudVideoPlayerComponent: React.FC<StormcloudVideoPlayerProps>;
151
+
144
152
  interface OnProgressProps {
145
153
  played: number;
146
154
  playedSeconds: number;
@@ -3707,14 +3715,6 @@ declare const StormcloudPlayer: {
3707
3715
  contextType?: React.Context<any> | undefined;
3708
3716
  };
3709
3717
 
3710
- type StormcloudVideoPlayerProps = Omit<StormcloudVideoPlayerConfig, "videoElement"> & React.VideoHTMLAttributes<HTMLVideoElement> & {
3711
- onReady?: (player: StormcloudVideoPlayer) => void;
3712
- wrapperClassName?: string;
3713
- wrapperStyle?: React.CSSProperties;
3714
- licenseKey?: string;
3715
- };
3716
- declare const StormcloudVideoPlayerComponent: React.FC<StormcloudVideoPlayerProps>;
3717
-
3718
3718
  declare const canPlay: {
3719
3719
  hls: (url: string) => boolean;
3720
3720
  dash: (url: string) => boolean;
@@ -3742,4 +3742,4 @@ declare function getBrowserID(clientInfo: ClientInfo): Promise<string>;
3742
3742
  declare function sendInitialTracking(licenseKey?: string): Promise<void>;
3743
3743
  declare function sendHeartbeat(licenseKey?: string): Promise<void>;
3744
3744
 
3745
- export { type AdBreak, type AdSchedule, type BaseStormcloudPlayerProps, type ClientInfo, type HeartbeatData, IS_BROWSER, IS_GLOBAL, IS_IOS, IS_SAFARI, type LateJoinPolicy, type OnProgressProps, SUPPORTS_DASH, SUPPORTS_HLS, StormcloudVideoPlayer, StormcloudVideoPlayerComponent, type StormcloudVideoPlayerConfig, type StormcloudVideoPlayerProps, type TrackingData, canPlay, createStormcloudPlayer, StormcloudPlayer as default, getBrowserID, getClientInfo, isMediaStream, lazy, merge, omit, parseQuery, players, randomString, sendHeartbeat, sendInitialTracking, supportsWebKitPresentationMode };
3745
+ export { type AdBreak, type AdSchedule, type BaseStormcloudPlayerProps, type ClientInfo, type HeartbeatData, IS_BROWSER, IS_GLOBAL, IS_IOS, IS_SAFARI, type LateJoinPolicy, type OnProgressProps, SUPPORTS_DASH, SUPPORTS_HLS, StormcloudPlayer, StormcloudVideoPlayer, StormcloudVideoPlayerComponent, type StormcloudVideoPlayerConfig, type StormcloudVideoPlayerProps, type TrackingData, canPlay, createStormcloudPlayer, StormcloudVideoPlayerComponent as default, getBrowserID, getClientInfo, isMediaStream, lazy, merge, omit, parseQuery, players, randomString, sendHeartbeat, sendInitialTracking, supportsWebKitPresentationMode };
package/lib/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as csstype from 'csstype';
2
1
  import React, { CSSProperties, lazy as lazy$1 } from 'react';
2
+ import * as csstype from 'csstype';
3
3
 
4
4
  type LateJoinPolicy = "play_remaining" | "skip_to_content";
5
5
  interface AdBreak {
@@ -141,6 +141,14 @@ declare class StormcloudVideoPlayer {
141
141
  destroy(): void;
142
142
  }
143
143
 
144
+ type StormcloudVideoPlayerProps = Omit<StormcloudVideoPlayerConfig, "videoElement"> & React.VideoHTMLAttributes<HTMLVideoElement> & {
145
+ onReady?: (player: StormcloudVideoPlayer) => void;
146
+ wrapperClassName?: string;
147
+ wrapperStyle?: React.CSSProperties;
148
+ licenseKey?: string;
149
+ };
150
+ declare const StormcloudVideoPlayerComponent: React.FC<StormcloudVideoPlayerProps>;
151
+
144
152
  interface OnProgressProps {
145
153
  played: number;
146
154
  playedSeconds: number;
@@ -3707,14 +3715,6 @@ declare const StormcloudPlayer: {
3707
3715
  contextType?: React.Context<any> | undefined;
3708
3716
  };
3709
3717
 
3710
- type StormcloudVideoPlayerProps = Omit<StormcloudVideoPlayerConfig, "videoElement"> & React.VideoHTMLAttributes<HTMLVideoElement> & {
3711
- onReady?: (player: StormcloudVideoPlayer) => void;
3712
- wrapperClassName?: string;
3713
- wrapperStyle?: React.CSSProperties;
3714
- licenseKey?: string;
3715
- };
3716
- declare const StormcloudVideoPlayerComponent: React.FC<StormcloudVideoPlayerProps>;
3717
-
3718
3718
  declare const canPlay: {
3719
3719
  hls: (url: string) => boolean;
3720
3720
  dash: (url: string) => boolean;
@@ -3742,4 +3742,4 @@ declare function getBrowserID(clientInfo: ClientInfo): Promise<string>;
3742
3742
  declare function sendInitialTracking(licenseKey?: string): Promise<void>;
3743
3743
  declare function sendHeartbeat(licenseKey?: string): Promise<void>;
3744
3744
 
3745
- export { type AdBreak, type AdSchedule, type BaseStormcloudPlayerProps, type ClientInfo, type HeartbeatData, IS_BROWSER, IS_GLOBAL, IS_IOS, IS_SAFARI, type LateJoinPolicy, type OnProgressProps, SUPPORTS_DASH, SUPPORTS_HLS, StormcloudVideoPlayer, StormcloudVideoPlayerComponent, type StormcloudVideoPlayerConfig, type StormcloudVideoPlayerProps, type TrackingData, canPlay, createStormcloudPlayer, StormcloudPlayer as default, getBrowserID, getClientInfo, isMediaStream, lazy, merge, omit, parseQuery, players, randomString, sendHeartbeat, sendInitialTracking, supportsWebKitPresentationMode };
3745
+ export { type AdBreak, type AdSchedule, type BaseStormcloudPlayerProps, type ClientInfo, type HeartbeatData, IS_BROWSER, IS_GLOBAL, IS_IOS, IS_SAFARI, type LateJoinPolicy, type OnProgressProps, SUPPORTS_DASH, SUPPORTS_HLS, StormcloudPlayer, StormcloudVideoPlayer, StormcloudVideoPlayerComponent, type StormcloudVideoPlayerConfig, type StormcloudVideoPlayerProps, type TrackingData, canPlay, createStormcloudPlayer, StormcloudVideoPlayerComponent as default, getBrowserID, getClientInfo, isMediaStream, lazy, merge, omit, parseQuery, players, randomString, sendHeartbeat, sendInitialTracking, supportsWebKitPresentationMode };