Skip to content

Commit

Permalink
Provide HLS format for Sound annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewjordan committed Sep 1, 2023
1 parent 1a7c242 commit de632cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/response/iiif/presentation-api/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function buildImageService(representativeImageUrl) {
];
}

function isAudioVideo(workType) {
return ["Audio", "Video"].includes(workType);
function isAudioVideo(type) {
return ["Audio", "Video", "Sound"].includes(type);
}

function isImage(workType) {
Expand Down
1 change: 1 addition & 0 deletions test/unit/api/response/iiif/presentation-api/items.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ describe("IIIF response presentation API items helpers", () => {
it("isAudioVideo(workType)", () => {
expect(items.isAudioVideo("Audio")).to.be.true;
expect(items.isAudioVideo("Image")).to.be.false;
expect(items.isAudioVideo("Sound")).to.be.true;
expect(items.isAudioVideo("Video")).to.be.true;
});

Expand Down

0 comments on commit de632cf

Please sign in to comment.