Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for determining Sound annotation body type #157

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

adamjarling
Copy link
Collaborator

@adamjarling adamjarling commented Dec 8, 2023

What does this do?

  • Updates how Clover Viewer determines what is a Sound type file, which will help cue when the Audio Visualizer displays for streaming and non-streaming files.
  • Sets up a Unit Test for the Player component

image

How to test

  1. Pull down this branch locally
  2. Test a streaming Audio Canvas: http://localhost:3001/docs/viewer/demo?iiif-content=https://dcapi.rdc-staging.library.northwestern.edu/api/v2/works/d2a423b1-6b5e-45cb-9956-46a99cd62cfd?as=iiif
  3. Test a non-streaming Audio Canvas: http://localhost:3001/docs/viewer/demo?iiif-content=https://iiif.io/api/cookbook/recipe/0002-mvm-audio/manifest.json

…will help cue when the Audio Visualizer displays for streaming and non-streaming files
@adamjarling adamjarling marked this pull request as draft December 8, 2023 16:54
@adamjarling adamjarling self-assigned this Dec 8, 2023
@@ -22,7 +22,7 @@ const Player: React.FC<PlayerProps> = ({ allSources, resources, painting }) => {
const [currentTime, setCurrentTime] = React.useState<number>(0);
const [poster, setPoster] = React.useState<string | undefined>();
const playerRef = React.useRef<HTMLVideoElement>(null);
const isAudio = painting?.format?.includes("audio/");
const isAudio = painting?.type === "Sound";
Copy link
Member

Choose a reason for hiding this comment

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

I wonder why we didn't do this in the first place?

@adamjarling adamjarling merged commit 7273208 into main Dec 12, 2023
1 check passed
@adamjarling adamjarling deleted the 155-audio-visualizer-streaming branch December 12, 2023 14:44
@adamjarling adamjarling linked an issue Dec 13, 2023 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display audio visualizer for streaming (HLS) audio files
2 participants