2020-04-01 20:43:50 +02:00
|
|
|
export const VIDEO = 'video';
|
|
|
|
export const AUDIO = 'audio';
|
|
|
|
|
|
|
|
export const FLOATING_MODES = [VIDEO, AUDIO]; // these types will show in floating player
|
|
|
|
|
|
|
|
export const PDF = 'pdf';
|
|
|
|
export const DOCX = 'docx';
|
|
|
|
export const HTML = 'html';
|
|
|
|
export const MARKDOWN = 'md';
|
|
|
|
export const DOCUMENT = 'document';
|
|
|
|
export const PLAIN_TEXT = 'plain_text';
|
|
|
|
|
|
|
|
export const TEXT_MODES = [PDF, DOCUMENT, PLAIN_TEXT, DOCX, HTML, MARKDOWN]; // these types will use text/document layout
|
|
|
|
|
|
|
|
export const IMAGE = 'image';
|
|
|
|
export const CAD = 'cad';
|
|
|
|
export const COMIC = 'comic';
|
|
|
|
|
2020-04-25 10:24:42 +02:00
|
|
|
// These types can only be render if download completed
|
2020-04-30 23:09:50 +02:00
|
|
|
export const NON_STREAM_MODES = IS_WEB ? [CAD, COMIC] : [CAD, COMIC, ...TEXT_MODES];
|
2020-04-25 10:24:42 +02:00
|
|
|
|
|
|
|
export const AUTO_RENDER_MODES = [IMAGE].concat(TEXT_MODES);
|
2022-02-07 08:09:01 +01:00
|
|
|
export const WEB_SHAREABLE_MODES = FLOATING_MODES;
|
2020-04-01 20:43:50 +02:00
|
|
|
|
|
|
|
export const DOWNLOAD = 'download';
|
|
|
|
export const APPLICATION = 'application';
|
|
|
|
export const UNSUPPORTED = 'unsupported';
|
|
|
|
|
2021-01-28 07:08:19 +01:00
|
|
|
export const UNSUPPORTED_IN_THIS_APP = IS_WEB ? [CAD, COMIC, APPLICATION] : [APPLICATION];
|
2020-04-01 20:43:50 +02:00
|
|
|
|
|
|
|
export const UNRENDERABLE_MODES = Array.from(
|
|
|
|
new Set(UNSUPPORTED_IN_THIS_APP.concat([DOWNLOAD, APPLICATION, UNSUPPORTED]))
|
|
|
|
);
|