Skip to content

Commit

Permalink
fix: add CMS tracking for Mux Data (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwin-mejia committed Feb 14, 2023
1 parent f3d40e7 commit 55d0587
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Player.tsx
Expand Up @@ -27,6 +27,7 @@ import {
VideoContainer,
} from './Player.styled'
import {UploadProgress} from './UploadProgress'
import pluginPkg from './../../package.json'

interface Props extends Pick<MuxInputProps, 'onChange' | 'readOnly'> {
buttons?: React.ReactNode
Expand Down Expand Up @@ -139,6 +140,11 @@ const MuxVideoOld = ({asset, buttons, readOnly, onChange, dialogState, setDialog
slot="media"
preload="metadata"
crossOrigin="anonymous"
metadata={{
player_name: "Sanity Admin Dashboard",
player_version: pluginPkg.version,
page_type: "Preview Player",
}}
>
<ThumbnailsMetadataTrack asset={asset} />
</MuxVideo>
Expand Down

1 comment on commit 55d0587

@vercel
Copy link

@vercel vercel bot commented on 55d0587 Feb 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sanity-plugin-mux-input-codesandbox – ./example

mux-player-codesandbox.sanity.build
sanity-plugin-mux-input-codesandbox.sanity.build
sanity-plugin-mux-input-codesandbox-git-main.sanity.build

Please sign in to comment.