@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.
@@ -258,7 +258,6 @@ interface IVideoMediaHandler {
258
258
  duration: number;
259
259
  stop(disposeOnly?: boolean): void;
260
260
  }
261
- declare function videoMediaHandler(media: IMedia, platform: OptionsType['platform']): IVideoMediaHandler;
262
261
  declare function VideoMedia(media: IMedia, xlr: IXlr): {
263
262
  duration: number;
264
263
  init: () => void;
@@ -570,7 +569,7 @@ declare function videoFileType(str: string): string | undefined;
570
569
  declare function composeResourceUrlByPlatform(options: OptionsType, params: any): string;
571
570
  declare function composeResourceUrl(options: OptionsType, params: any): string;
572
571
  declare function composeMediaUrl(params: any): string;
573
- declare function composeBgUrlByPlatform(platform: OptionsType['platform'], params: any): string;
572
+ declare function composeBgUrlByPlatform(platform: OptionsType['platform'], params: ILayout): string;
574
573
  type LayoutIndexType = {
575
574
  [k: string]: InputLayoutType & {
576
575
  index: number;
@@ -582,6 +581,9 @@ declare function getIndexByLayoutId(layoutsInput: InputLayoutType[], layoutId?:
582
581
  index: number;
583
582
  };
584
583
  declare function isEmpty(input: any): boolean;
584
+ declare function getAllAttributes(elem: Element): {
585
+ [k: string]: any;
586
+ };
585
587
  /**
586
588
  * Create expiration day based on current date
587
589
  * @param numDays Number of days as expiry
@@ -596,8 +598,15 @@ declare function setExpiry(numDays: number): string;
596
598
  * @return boolean
597
599
  */
598
600
  declare function isLayoutValid(layouts: InputLayoutType[], layoutId: number | undefined): boolean;
601
+ declare function getLayoutIndexByLayoutId(layouts: InputLayoutType[], layoutId: number): number | null;
599
602
  declare function hasDefaultOnly(inputLayouts: InputLayoutType[]): boolean;
603
+ declare function hasSspLayout(inputLayouts: InputLayoutType[], defaultValue?: boolean): boolean;
600
604
  declare function createMediaElement(mediaObject: IMedia): HTMLElement;
605
+ declare function prepareVideoMedia(media: IMedia, region: IRegion): void;
606
+ declare function prepareImageMedia(media: IMedia, region: IRegion): void;
607
+ declare function prepareAudioMedia(media: IMedia, region: IRegion): void;
608
+ declare function prepareHtmlMedia(media: IMedia, region: IRegion): void;
609
+ declare function playerReportFault(msg: string, media: IMedia): Promise<void>;
601
610
 
602
611
  declare class Region implements IRegion {
603
612
  layout: ILayout;
@@ -638,9 +647,6 @@ declare class Region implements IRegion {
638
647
  prepareNextMedia(): void;
639
648
  prepareMediaObjects(): void;
640
649
  finished(): void;
641
- private prepareVideo;
642
- private prepareImage;
643
- private prepareIframe;
644
650
  run(): void;
645
651
  transitionNodes(oldMedia: IMedia | undefined, newMedia: IMedia | undefined): void;
646
652
  playNextMedia(): void;
@@ -753,4 +759,4 @@ type flyTransitionParams = {
753
759
  };
754
760
  declare const flyTransitionKeyframes: (params: flyTransitionParams) => KeyframeOptionsType;
755
761
 
756
- export { Action, ActionsWrapper, AudioMedia, ConsumerPlatform, ELayoutState, ELayoutType, type EventEmitter, type EventUnsubscriber, type GetLayoutParamType, type GetLayoutType, type ILayout, type ILayoutEvents, type IMedia, type IMediaEvents, type IRegion, type IRegionEvents, type ISplashScreen, type IVideoMediaHandler, type IXlr, type IXlrEvents, type IXlrPlayback, type InactOptions, type InputLayoutType, type KeyframeOptionsType, LayoutPlaybackType, Media, MediaState, type MediaTypes, type OptionsType, type PrepareLayoutsType, type PreviewSplashElement, Region, type TransitionElementOptions, type TransitionNameType, VideoMedia, audioFileType, capitalizeStr, type compassPoints, composeBgUrlByPlatform, composeMediaUrl, composeResourceUrl, composeResourceUrlByPlatform, composeVideoSource, createMediaElement, XiboLayoutRenderer as default, defaultTrans, defaultVjsOpts, fadeInElem, fadeOutElem, fetchJSON, fetchText, flyInElem, flyOutElem, flyTransitionKeyframes, type flyTransitionParams, getDataBlob, getFileExt, getIndexByLayoutId, getLayout, getMediaId, getXlf, hasDefaultOnly, initRenderingDOM, initialLayout, initialMedia, initialRegion, initialXlr, isEmpty, isLayoutValid, nextId, preloadMediaBlob, setExpiry, transitionElement, videoFileType, videoMediaHandler, vjsDefaultOptions };
762
+ export { Action, ActionsWrapper, AudioMedia, ConsumerPlatform, ELayoutState, ELayoutType, type EventEmitter, type EventUnsubscriber, type GetLayoutParamType, type GetLayoutType, type ILayout, type ILayoutEvents, type IMedia, type IMediaEvents, type IRegion, type IRegionEvents, type ISplashScreen, type IVideoMediaHandler, type IXlr, type IXlrEvents, type IXlrPlayback, type InactOptions, type InputLayoutType, type KeyframeOptionsType, LayoutPlaybackType, Media, MediaState, type MediaTypes, type OptionsType, type PrepareLayoutsType, type PreviewSplashElement, Region, type TransitionElementOptions, type TransitionNameType, VideoMedia, audioFileType, capitalizeStr, type compassPoints, composeBgUrlByPlatform, composeMediaUrl, composeResourceUrl, composeResourceUrlByPlatform, composeVideoSource, createMediaElement, XiboLayoutRenderer as default, defaultTrans, defaultVjsOpts, fadeInElem, fadeOutElem, fetchJSON, fetchText, flyInElem, flyOutElem, flyTransitionKeyframes, type flyTransitionParams, getAllAttributes, getDataBlob, getFileExt, getIndexByLayoutId, getLayout, getLayoutIndexByLayoutId, getMediaId, getXlf, hasDefaultOnly, hasSspLayout, initRenderingDOM, initialLayout, initialMedia, initialRegion, initialXlr, isEmpty, isLayoutValid, nextId, playerReportFault, preloadMediaBlob, prepareAudioMedia, prepareHtmlMedia, prepareImageMedia, prepareVideoMedia, setExpiry, transitionElement, videoFileType, vjsDefaultOptions };