@xibosignage/xibo-layout-renderer 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/Modules/Generators/Generators.d.ts +2 -2
- package/dist/src/Modules/Generators/index.d.ts +1 -2
- package/dist/src/Modules/Media/VideoMedia.d.ts +1 -2
- package/dist/src/Modules/Region/Region.d.ts +0 -3
- package/dist/xibo-layout-renderer.cjs.js +1268 -1497
- package/dist/xibo-layout-renderer.cjs.js.map +1 -1
- package/dist/xibo-layout-renderer.d.ts +12 -6
- package/dist/xibo-layout-renderer.esm.js +1261 -1497
- package/dist/xibo-layout-renderer.esm.js.map +1 -1
- package/dist/xibo-layout-renderer.js +1268 -1497
- package/dist/xibo-layout-renderer.min.js +4 -4
- package/dist/xibo-layout-renderer.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMedia } from '../../Types/Media';
|
|
2
|
-
import { InputLayoutType, OptionsType } from '../../Types/Layout';
|
|
2
|
+
import { ILayout, InputLayoutType, OptionsType } from '../../Types/Layout';
|
|
3
3
|
import { IRegion } from "../../Types/Region";
|
|
4
4
|
export declare function nextId(options: {
|
|
5
5
|
idCounter: number;
|
|
@@ -17,7 +17,7 @@ export declare function videoFileType(str: string): string | undefined;
|
|
|
17
17
|
export declare function composeResourceUrlByPlatform(options: OptionsType, params: any): string;
|
|
18
18
|
export declare function composeResourceUrl(options: OptionsType, params: any): string;
|
|
19
19
|
export declare function composeMediaUrl(params: any): string;
|
|
20
|
-
export declare function composeBgUrlByPlatform(platform: OptionsType['platform'], params:
|
|
20
|
+
export declare function composeBgUrlByPlatform(platform: OptionsType['platform'], params: ILayout): string;
|
|
21
21
|
type LayoutIndexType = {
|
|
22
22
|
[k: string]: InputLayoutType & {
|
|
23
23
|
index: number;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export { getFileExt, nextId, preloadMediaBlob, getMediaId, fetchJSON, capitalizeStr, audioFileType, videoFileType, setExpiry, composeMediaUrl, fetchText, getDataBlob, composeResourceUrl, composeResourceUrlByPlatform, getIndexByLayoutId, isEmpty, composeBgUrlByPlatform, hasDefaultOnly, isLayoutValid, createMediaElement, } from './Generators';
|
|
1
|
+
export { getFileExt, nextId, preloadMediaBlob, getMediaId, fetchJSON, capitalizeStr, audioFileType, videoFileType, setExpiry, composeMediaUrl, fetchText, getDataBlob, composeResourceUrl, composeResourceUrlByPlatform, getIndexByLayoutId, isEmpty, composeBgUrlByPlatform, hasDefaultOnly, isLayoutValid, createMediaElement, playerReportFault, getAllAttributes, prepareAudioMedia, prepareHtmlMedia, prepareImageMedia, prepareVideoMedia, getLayoutIndexByLayoutId, hasSspLayout, type MediaTypes, } from './Generators';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Player from "video.js/dist/types/player";
|
|
2
2
|
import { IMedia } from '../../Types/Media';
|
|
3
|
-
import { IXlr
|
|
3
|
+
import { IXlr } from '../../types';
|
|
4
4
|
import './media.css';
|
|
5
5
|
export declare function composeVideoSource($media: HTMLVideoElement, media: IMedia): HTMLVideoElement;
|
|
6
6
|
export declare const defaultVjsOpts: {
|
|
@@ -15,7 +15,6 @@ export interface IVideoMediaHandler {
|
|
|
15
15
|
duration: number;
|
|
16
16
|
stop(disposeOnly?: boolean): void;
|
|
17
17
|
}
|
|
18
|
-
export declare function videoMediaHandler(media: IMedia, platform: OptionsType['platform']): IVideoMediaHandler;
|
|
19
18
|
export declare function VideoMedia(media: IMedia, xlr: IXlr): {
|
|
20
19
|
duration: number;
|
|
21
20
|
init: () => void;
|
|
@@ -42,9 +42,6 @@ export default class Region implements IRegion {
|
|
|
42
42
|
prepareNextMedia(): void;
|
|
43
43
|
prepareMediaObjects(): void;
|
|
44
44
|
finished(): void;
|
|
45
|
-
private prepareVideo;
|
|
46
|
-
private prepareImage;
|
|
47
|
-
private prepareIframe;
|
|
48
45
|
run(): void;
|
|
49
46
|
transitionNodes(oldMedia: IMedia | undefined, newMedia: IMedia | undefined): void;
|
|
50
47
|
playNextMedia(): void;
|