How to use the @iiif/vocabulary.ExternalResourceType.SOUND function in @iiif/vocabulary

To help you get started, we’ve selected a few @iiif/vocabulary examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github UniversalViewer / universalviewer / src / Viewer.ts View on Github external
load: this._extensions[Extension.OSD]
        };

        this._extensionRegistry[ExternalResourceType.IMAGE] = {
            load: this._extensions[Extension.OSD]
        };

        this._extensionRegistry[ExternalResourceType.MOVING_IMAGE] = {
            load: this._extensions[Extension.MEDIAELEMENT]
        };

        this._extensionRegistry[ExternalResourceType.PHYSICAL_OBJECT] = {
            load: this._extensions[Extension.VIRTEX]
        };

        this._extensionRegistry[ExternalResourceType.SOUND] = {
            load: this._extensions[Extension.MEDIAELEMENT]
        };

        this._extensionRegistry[RenderingFormat.PDF] = {
            load: this._extensions[Extension.PDF]
        };

        // presentation 3

        this._extensionRegistry[MediaType.JPG] = {
            load: this._extensions[Extension.OSD]
        };

        this._extensionRegistry[MediaType.PDF] = {
            load: this._extensions[Extension.PDF]
        };
github UniversalViewer / universalviewer / src / extensions / uv-mediaelement-extension / Extension.ts View on Github external
bookmark(): void {
        super.bookmark();

        const canvas: Canvas = this.extensions.helper.getCurrentCanvas();
        const bookmark: Bookmark = new Bookmark();

        bookmark.index = this.helper.canvasIndex;
        bookmark.label = LanguageMap.getValue(canvas.getLabel());
        bookmark.thumb = canvas.getProperty('thumbnail');
        bookmark.title = this.helper.getLabel();
        bookmark.trackingLabel = window.trackingLabel;

        if (this.isVideo()) {
            bookmark.type = ExternalResourceType.MOVING_IMAGE;
        } else {
            bookmark.type = ExternalResourceType.SOUND;
        }

        this.fire(BaseEvents.BOOKMARK, bookmark);
    }