@tindtechnologies/universalviewer
Version:
The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎
40 lines (39 loc) • 1.42 kB
TypeScript
import { CenterPanel } from "../uv-shared-module/CenterPanel";
import { AnnotationBody, IExternalResource, Rendering } from "manifesto.js";
import "mediaelement/build/mediaelement-and-player";
import "mediaelement/build/mediaelementplayer.min.css";
import "./js/source-chooser-fixed.js";
import "mediaelement-plugins/dist/source-chooser/source-chooser.css";
import { Config } from "../../extensions/uv-mediaelement-extension/config/Config";
type TextTrackDescriptor = {
language?: string;
label?: string;
id: string;
};
type MediaSourceDescriptor = {
label: string;
type: string;
src: string;
};
export declare class MediaElementCenterPanel extends CenterPanel<Config["modules"]["mediaElementCenterPanel"]> {
$wrapper: JQuery;
$container: JQuery;
$media: JQuery;
mediaHeight: number;
mediaWidth: number;
player: any;
title: string | null;
pauseTimeoutId: any;
muted: boolean;
constructor($element: JQuery);
create(): void;
updateMutedAttribute(muted: boolean): void;
openMedia(resources: IExternalResource[]): Promise<void>;
appendTextTracks(subtitles: Array<TextTrackDescriptor>): void;
appendMediaSources(sources: Array<MediaSourceDescriptor>): void;
isTypeMedia(element: Rendering | AnnotationBody): boolean;
isTypeCaption(element: Rendering | AnnotationBody): boolean;
isVideo(): boolean;
resize(): void;
}
export {};