Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Oct 11, 2023
1 parent 9169aad commit f0fd954
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default function AssetProxy({
webVTTLink={asset.webVTTLink}
fluid={fluid}
mimeType={type}
assetId={asset.assetId}
/>
break;
case type.startsWith('image/'):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type Props = {
webVTTLink?: string,
fluid?: boolean,
mimeType: string,
assetId: string | undefined,
};

export default React.forwardRef(function VideoPlayer({
Expand All @@ -20,6 +21,7 @@ export default React.forwardRef(function VideoPlayer({
webVTTLink,
fluid,
mimeType,
assetId,
}: Props, ref) {
const player = React.useRef<VideoJsPlayer>();

Expand Down Expand Up @@ -64,6 +66,7 @@ export default React.forwardRef(function VideoPlayer({
<video
ref={setRef}
className="video-js vjs-big-play-centered"
data-matomo-resource={assetId}
data-matomo-title={title}
>
{webVTTLink && <track
Expand Down

0 comments on commit f0fd954

Please sign in to comment.