@instructure/studio-player 0.3.10 → 0.3.11
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { MutableRefObject, RefCallback } from 'react';
|
|
1
2
|
import { MediaPlayerInstance, MediaPlayerProps } from '@vidstack/react';
|
|
2
3
|
import { Annotation, CaptionMetaData, CaptionOffsetOverride, Comment, InteractiveMenuElement, KebabMenuElement, QuizMarker, StudioPlayerLanguage } from '../types';
|
|
3
4
|
export type StudioPlayerProps = {
|
|
4
5
|
title: string;
|
|
5
|
-
playerRef?:
|
|
6
|
+
playerRef?: MutableRefObject<MediaPlayerInstance | null> | RefCallback<MediaPlayerInstance | null>;
|
|
6
7
|
src: MediaPlayerProps['src'];
|
|
7
8
|
captions?: CaptionMetaData[];
|
|
8
9
|
thumbnail?: string;
|
package/dist/studio-player.es.js
CHANGED
|
@@ -343,7 +343,7 @@ function nn({
|
|
|
343
343
|
}) {
|
|
344
344
|
const i = F();
|
|
345
345
|
return O(() => {
|
|
346
|
-
i && (i.remoteControl.pauseControls(), n && (n.current = i));
|
|
346
|
+
i && (i.remoteControl.pauseControls(), n && (typeof n == "function" ? n(i) : n.current = i));
|
|
347
347
|
}, [i, n]), /* @__PURE__ */ c("div", { "data-darkmode": e, className: z.root, children: [
|
|
348
348
|
/* @__PURE__ */ t(Ne, { className: z.normalTimeline }),
|
|
349
349
|
/* @__PURE__ */ c("div", { className: z.leftControls, children: [
|
|
@@ -2223,7 +2223,7 @@ function mi({
|
|
|
2223
2223
|
children: /* @__PURE__ */ t(wt, { contextValue: ae, children: /* @__PURE__ */ c(
|
|
2224
2224
|
pt,
|
|
2225
2225
|
{
|
|
2226
|
-
"data-version": "0.3.
|
|
2226
|
+
"data-version": "0.3.11",
|
|
2227
2227
|
crossOrigin: se,
|
|
2228
2228
|
storage: Y ? null : Je,
|
|
2229
2229
|
title: e,
|