Skip to content

Commit

Permalink
Don't load the media element extension for UniversalViewer#944
Browse files Browse the repository at this point in the history
  • Loading branch information
benwbrum committed Oct 24, 2023
1 parent ca04992 commit 95f0e71
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/content-handlers/iiif/IIIFContentHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,14 @@ export default class IIIFContentHandler extends BaseContentHandler<IIIFData>
}

// if using uv-av-extension and there is no structure, fall back to uv-mediaelement-extension
const hasRanges: boolean = helper.getRanges().length > 0;

if (extension!.type === Extension.AV && !hasRanges) {
extension = await that._getExtensionByType(
Extension.MEDIAELEMENT,
format
);
}
// const hasRanges: boolean = helper.getRanges().length > 0;

// if (extension!.type === Extension.AV && !hasRanges) {
// extension = await that._getExtensionByType(
// Extension.MEDIAELEMENT,
// format
// );
// }

// if there still isn't a matching extension, use the default extension.
if (!extension) {
Expand Down

0 comments on commit 95f0e71

Please sign in to comment.