@instructure/studio-player 0.2.5 → 0.2.7

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.
@@ -19,5 +19,10 @@ export type StudioPlayerProps = {
19
19
  darkMode?: boolean;
20
20
  /** Player with auto load and display given caption if src is given */
21
21
  autoLoadCaptionSrc?: CaptionMetaData['src'];
22
+ forceComments?: boolean;
23
+ /** Should player disable any caption related UI from player or not */
24
+ disableCaptionSettings?: boolean;
25
+ /** Specify to start video playback at a given time */
26
+ startAt?: number;
22
27
  };
23
- export declare function StudioPlayer({ title, playerRef, src, captions, thumbnail, hideFullScreen, comments, locale, annotations, quizMarkers, interactive, onAnnotationClick, onQuizMarkerClick, onInteractivePinClick, interactiveMenuElements, darkMode, autoLoadCaptionSrc, }: StudioPlayerProps): import("react/jsx-runtime").JSX.Element;
28
+ export declare function StudioPlayer({ title, playerRef, src, captions, thumbnail, hideFullScreen, comments, locale, annotations, quizMarkers, interactive, onAnnotationClick, onQuizMarkerClick, onInteractivePinClick, interactiveMenuElements, darkMode, autoLoadCaptionSrc, forceComments, disableCaptionSettings, startAt, }: StudioPlayerProps): import("react/jsx-runtime").JSX.Element;
@@ -16,6 +16,7 @@ export declare class StudioPlayerMediaStorage implements MediaStorage {
16
16
  mediaId: string | null;
17
17
  data: StorageData;
18
18
  time: number | null;
19
+ private overrideTime;
19
20
  getVideoQuality(): Promise<null>;
20
21
  getAudioGain(): Promise<null>;
21
22
  getLang(): Promise<string | null>;
@@ -34,7 +35,7 @@ export declare class StudioPlayerMediaStorage implements MediaStorage {
34
35
  save(): void;
35
36
  saveTime: () => void;
36
37
  saveTimeThrottled: () => void;
37
- initializeState: () => StudioPlayerState;
38
+ initializeState: (startAt?: number) => StudioPlayerState;
38
39
  saveData: <K extends keyof StorageData>(key: K, value: StorageData[K]) => void;
39
40
  }
40
41
  export {};
@@ -1,7 +1,7 @@
1
1
  import { keyShortcuts } from './shortcuts';
2
2
  import { StudioPlayerContextType } from './context';
3
3
  import { StudioPlayerMediaStorage } from './store/StudioPlayerMediaStorage';
4
- export declare function useStudioPlayer(hideFullScreen: boolean): {
4
+ export declare function useStudioPlayer(hideFullScreen: boolean, forceComments: boolean, disableCaptionSettings: boolean, startAt?: number): {
5
5
  contextValue: StudioPlayerContextType;
6
6
  shortcuts: typeof keyShortcuts;
7
7
  storage: StudioPlayerMediaStorage;