@flowplayer/player 3.28.0-rc → 3.28.0-rc.1
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/core/events.d.ts +13 -0
- package/core/events.js +7 -1
- package/core.js +1 -1
- package/default.js +1 -1
- package/embed.js +2 -2
- package/flowplayer.css +1 -1
- package/index.d.ts +304 -8
- package/package.json +1 -1
- package/plugins/ads.d.ts +304 -17
- package/plugins/ads.js +1 -1
- package/plugins/airplay.d.ts +304 -17
- package/plugins/analytics.d.ts +304 -17
- package/plugins/analytics.js +1 -1
- package/plugins/asel.d.ts +304 -17
- package/plugins/audio.d.ts +304 -17
- package/plugins/chapters.d.ts +304 -17
- package/plugins/chromecast.d.ts +304 -17
- package/plugins/comscore.d.ts +304 -17
- package/plugins/consent.d.ts +304 -17
- package/plugins/context-menu.d.ts +304 -17
- package/plugins/cuepoints.d.ts +304 -17
- package/plugins/dash.d.ts +304 -17
- package/plugins/dash.js +3 -3
- package/plugins/drm.d.ts +304 -17
- package/plugins/endscreen.d.ts +304 -17
- package/plugins/fas.d.ts +304 -17
- package/plugins/float-on-scroll.d.ts +304 -17
- package/plugins/ga4.d.ts +304 -17
- package/plugins/gemius.d.ts +304 -17
- package/plugins/google-analytics.d.ts +304 -17
- package/plugins/hls.d.ts +304 -17
- package/plugins/hls.js +1 -1
- package/plugins/id3.d.ts +304 -17
- package/plugins/iframe.d.ts +304 -17
- package/plugins/keyboard.d.ts +304 -17
- package/plugins/media-session.d.ts +304 -17
- package/plugins/message.d.ts +304 -17
- package/plugins/ovp.d.ts +304 -17
- package/plugins/ovp.js +1 -1
- package/plugins/playlist.d.ts +304 -17
- package/plugins/preview.d.ts +304 -17
- package/plugins/qsel.d.ts +304 -17
- package/plugins/qul.d.ts +304 -17
- package/plugins/qul.js +1 -1
- package/plugins/rts.d.ts +304 -17
- package/plugins/rts.js +7 -7
- package/plugins/share.d.ts +304 -17
- package/plugins/speed.d.ts +304 -17
- package/plugins/ssai.d.ts +304 -17
- package/plugins/ssai.js +2 -2
- package/plugins/subtitles.d.ts +304 -17
- package/plugins/thumbnails.d.ts +304 -17
- package/plugins/tizen.d.ts +304 -17
- package/plugins/vtsel.d.ts +304 -17
- package/plugins/webos.d.ts +304 -17
- package/util/loader.d.ts +304 -17
package/plugins/drm.d.ts
CHANGED
|
@@ -422,17 +422,6 @@ ERROR = "error";
|
|
|
422
422
|
|
|
423
423
|
declare const ERRORED = "is-error";
|
|
424
424
|
|
|
425
|
-
/**
|
|
426
|
-
* @public
|
|
427
|
-
*/
|
|
428
|
-
declare type ErrorEventDetail = {
|
|
429
|
-
src?: string;
|
|
430
|
-
type?: string;
|
|
431
|
-
code?: number | string;
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
/* Excluded from this release type: _ErrorEventDetail */
|
|
435
|
-
|
|
436
425
|
declare namespace events {
|
|
437
426
|
export {
|
|
438
427
|
MOUNT,
|
|
@@ -490,7 +479,8 @@ declare namespace events {
|
|
|
490
479
|
RECOVER,
|
|
491
480
|
CUEPOINTS,
|
|
492
481
|
CUEPOINT_START,
|
|
493
|
-
CUEPOINT_END
|
|
482
|
+
CUEPOINT_END,
|
|
483
|
+
FLOWPLAYER_ERROR
|
|
494
484
|
}
|
|
495
485
|
}
|
|
496
486
|
|
|
@@ -513,11 +503,307 @@ declare type FilterNewSourceTypes<PluginSrcs extends unknown[]> = {
|
|
|
513
503
|
} ? PluginSrcs[Index] : never;
|
|
514
504
|
};
|
|
515
505
|
|
|
506
|
+
/**
|
|
507
|
+
* @public
|
|
508
|
+
* emitted to handle playback related errors
|
|
509
|
+
*/
|
|
510
|
+
declare const /**
|
|
511
|
+
@public
|
|
512
|
+
* when a new player is inserted into the HTML
|
|
513
|
+
*/ /**
|
|
514
|
+
* @public
|
|
515
|
+
* emitted to handle playback related errors
|
|
516
|
+
*/
|
|
517
|
+
FLOWPLAYER_ERROR = "flowplayer:error";
|
|
518
|
+
|
|
516
519
|
/**
|
|
517
520
|
* @public
|
|
518
521
|
*/
|
|
519
522
|
declare type FlowplayerCustomElementRegistry = Map<string, string>;
|
|
520
523
|
|
|
524
|
+
declare class FlowplayerError extends Error {
|
|
525
|
+
readonly message: string;
|
|
526
|
+
readonly flowplayerErrorCode: FlowplayerErrorCode;
|
|
527
|
+
readonly config: FlowplayerErrorConfig;
|
|
528
|
+
static getErrorKey(code: FlowplayerErrorCode): FlowplayerErrorCodeName;
|
|
529
|
+
readonly id: string;
|
|
530
|
+
readonly fatal: boolean;
|
|
531
|
+
readonly errorKey: string;
|
|
532
|
+
constructor(message: string, flowplayerErrorCode: FlowplayerErrorCode, config?: FlowplayerErrorConfig);
|
|
533
|
+
toJSON(): {
|
|
534
|
+
message: string;
|
|
535
|
+
flowplayer_error_code: FlowplayerErrorCode;
|
|
536
|
+
id: string;
|
|
537
|
+
root_error_id: string | undefined;
|
|
538
|
+
resource: string | undefined;
|
|
539
|
+
fatal: boolean;
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
declare type FlowplayerErrorCode = (typeof FlowplayerErrorCodeMap)[keyof typeof FlowplayerErrorCodeMap];
|
|
544
|
+
|
|
545
|
+
declare const FlowplayerErrorCodeMap: {
|
|
546
|
+
/** Unknown */
|
|
547
|
+
readonly Unknown: "00-00";
|
|
548
|
+
/** Media Section */
|
|
549
|
+
readonly MediaUnknown: "01-00";
|
|
550
|
+
readonly MediaUnavailable: "01-01";
|
|
551
|
+
readonly MediaUnsupportedVideoFormat: "01-02";
|
|
552
|
+
readonly MediaUnsupportedAudioFormat: "01-03";
|
|
553
|
+
readonly MediaBitrateExceeded: "01-04";
|
|
554
|
+
readonly MediaBufferOverread: "01-05";
|
|
555
|
+
readonly MediaIntegerOverflow: "01-06";
|
|
556
|
+
readonly MediaQuotaExceeded: "01-07";
|
|
557
|
+
readonly MediaInvalidCompositionDuration: "01-08";
|
|
558
|
+
readonly MediaInvalidCompositionSourceDuration: "01-09";
|
|
559
|
+
readonly MediaInvalidCompositionSourceStartTime: "01-10";
|
|
560
|
+
readonly MediaMalformedDepth: "01-11";
|
|
561
|
+
/** Playback Section */
|
|
562
|
+
readonly PlaybackUnknown: "02-00";
|
|
563
|
+
readonly PlaybackVideoBufferUnderRun: "02-01";
|
|
564
|
+
readonly PlaybackAudioBufferUnderRun: "02-02";
|
|
565
|
+
readonly PlaybackVideoBufferingTimeout: "02-03";
|
|
566
|
+
readonly PlaybackAudioBufferingTimeout: "02-04";
|
|
567
|
+
readonly PlaybackManifestParseError: "02-05";
|
|
568
|
+
readonly PlaybackVideoDecodeError: "02-06";
|
|
569
|
+
readonly PlaybackAudioDecodeError: "02-07";
|
|
570
|
+
readonly PlaybackDroppedFramesExceeded: "02-08";
|
|
571
|
+
readonly PlaybackPlayheadExceedsDuration: "02-09";
|
|
572
|
+
readonly PlaybackUnsupportedDevice: "02-10";
|
|
573
|
+
readonly PlaybackManifestLoadError: "02-11";
|
|
574
|
+
readonly PlaybackManifestLoadTimeout: "02-12";
|
|
575
|
+
readonly PlaybackManifestParsingError: "02-13";
|
|
576
|
+
readonly PlaybackManifestIncompatibleCodecs: "02-14";
|
|
577
|
+
readonly PlaybackLevelEmptyError: "02-15";
|
|
578
|
+
readonly PlaybackLevelLoadError: "02-16";
|
|
579
|
+
readonly PlaybackLevelLoadTimeout: "02-17";
|
|
580
|
+
readonly PlaybackLevelSwitchError: "02-18";
|
|
581
|
+
readonly PlaybackAudioTrackLoadError: "02-19";
|
|
582
|
+
readonly PlaybackAudioTrackLoadTimeout: "02-20";
|
|
583
|
+
readonly PlaybackFragLoadError: "02-21";
|
|
584
|
+
readonly PlaybackFragLoadTimeout: "02-22";
|
|
585
|
+
readonly PlaybackFragDecryptError: "02-23";
|
|
586
|
+
readonly PlaybackFragParsingError: "02-24";
|
|
587
|
+
readonly PlaybackFragGap: "02-25";
|
|
588
|
+
readonly PlaybackRemuxAllocError: "02-26";
|
|
589
|
+
readonly PlaybackBufferAddCodecError: "02-27";
|
|
590
|
+
readonly PlaybackBufferIncompatibleCodecs: "02-28";
|
|
591
|
+
readonly PlaybackBufferAppendError: "02-29";
|
|
592
|
+
readonly PlaybackBufferStalledError: "02-30";
|
|
593
|
+
readonly PlaybackBufferFullError: "02-31";
|
|
594
|
+
readonly PlaybackBufferSeekOverHole: "02-32";
|
|
595
|
+
readonly PlaybackBufferNudgeOnStall: "02-33";
|
|
596
|
+
readonly PlaybackInternalException: "02-34";
|
|
597
|
+
readonly PlaybackInternalAborted: "02-35";
|
|
598
|
+
readonly PlaybackManifestLoaderFailure: "02-36";
|
|
599
|
+
readonly PlaybackSegmentBaseLoaderError: "02-37";
|
|
600
|
+
readonly PlaybackTimeSyncFailed: "02-38";
|
|
601
|
+
readonly PlaybackFragmentLoaderFailure: "02-39";
|
|
602
|
+
readonly PlaybackAppendError: "02-40";
|
|
603
|
+
readonly PlaybackRemoveError: "02-41";
|
|
604
|
+
readonly PlaybackDataUpdateFailed: "02-42";
|
|
605
|
+
readonly PlaybackManifestNoStreams: "02-43";
|
|
606
|
+
readonly PlaybackUnknownManifestType: "02-44";
|
|
607
|
+
readonly PlaybackDashInsufficientSegmentInfo: "02-45";
|
|
608
|
+
readonly PlaybackDashNoRepresentations: "02-46";
|
|
609
|
+
readonly PlaybackDashNoAdaptationSets: "02-47";
|
|
610
|
+
readonly PlaybackDashNoInitSegment: "02-48";
|
|
611
|
+
readonly PlaybackDashUnsupportedContainerFormat: "02-49";
|
|
612
|
+
readonly PlaybackDashKeySystemMismatch: "02-50";
|
|
613
|
+
readonly PlaybackMultipleKeyIDs: "02-51";
|
|
614
|
+
readonly PlaybackDashConflictingKeyIDs: "02-52";
|
|
615
|
+
readonly PlaybackRestrictedStreams: "02-53";
|
|
616
|
+
readonly PlaybackHlsMasterAndMediaTags: "02-54";
|
|
617
|
+
readonly PlaybackRepresentationIdConflict: "02-55";
|
|
618
|
+
readonly PlaybackHlsUnsupportedKeyFormats: "02-56";
|
|
619
|
+
readonly PlaybackManifestNoVariants: "02-57";
|
|
620
|
+
readonly PlaybackHlsUndeclaredVariables: "02-58";
|
|
621
|
+
readonly PlaybackAes128InvalidKeyLength: "02-59";
|
|
622
|
+
readonly PlaybackDashConflictingAes128Keys: "02-60";
|
|
623
|
+
readonly PlaybackDashUnsupportedAes128Encryption: "02-61";
|
|
624
|
+
readonly PlaybackManifestPatchMismatch: "02-62";
|
|
625
|
+
readonly PlaybackEmptyMediaPlaylist: "02-63";
|
|
626
|
+
readonly PlaybackNonContiguousCompositionTrack: "02-64";
|
|
627
|
+
readonly PlaybackDecoderNotFound: "02-65";
|
|
628
|
+
readonly PlaybackDecoderTemporarilyUnavailable: "02-66";
|
|
629
|
+
readonly PlaybackIncompatibleAsset: "02-67";
|
|
630
|
+
readonly PlaybackNoCompatibleExternalDisplay: "02-69";
|
|
631
|
+
readonly PlaybackOutOfMemory: "02-70";
|
|
632
|
+
readonly PlaybackToneMappingFailed: "02-71";
|
|
633
|
+
readonly PlaybackVideoCompositorFailed: "02-72";
|
|
634
|
+
/** Network Section */
|
|
635
|
+
readonly NetworkUnknown: "03-00";
|
|
636
|
+
readonly NetworkNoInternet: "03-01";
|
|
637
|
+
readonly NetworkRequestTimeout: "03-02";
|
|
638
|
+
readonly NetworkUnableToResolveHost: "03-03";
|
|
639
|
+
readonly NetworkResourceNotFound: "03-04";
|
|
640
|
+
readonly NetworkExpiredUrl: "03-05";
|
|
641
|
+
readonly NetworkUrlResolutionFailed: "03-06";
|
|
642
|
+
readonly NetworkDownloadErrorIdManifest: "03-07";
|
|
643
|
+
readonly NetworkDownloadErrorIdSidx: "03-08";
|
|
644
|
+
readonly NetworkDownloadErrorIdContent: "03-09";
|
|
645
|
+
readonly NetworkDownloadErrorIdInitialization: "03-10";
|
|
646
|
+
readonly NetworkDownloadErrorIdXlink: "03-11";
|
|
647
|
+
readonly NetworkHttpRequestFailed: "03-12";
|
|
648
|
+
readonly NetworkMaxRetriesExceeded: "03-13";
|
|
649
|
+
readonly NetworkSegmentMissing: "03-14";
|
|
650
|
+
/** HTTP Error Codes */
|
|
651
|
+
readonly NetworkHttp400BadRequest: "03-400";
|
|
652
|
+
readonly NetworkHttp401Unauthorized: "03-401";
|
|
653
|
+
readonly NetworkHttp402PaymentRequired: "03-402";
|
|
654
|
+
readonly NetworkHttp403Forbidden: "03-403";
|
|
655
|
+
readonly NetworkHttp404NotFound: "03-404";
|
|
656
|
+
readonly NetworkHttp405MethodNotAllowed: "03-405";
|
|
657
|
+
readonly NetworkHttp406NotAcceptable: "03-406";
|
|
658
|
+
readonly NetworkHttp407ProxyAuthenticationRequired: "03-407";
|
|
659
|
+
readonly NetworkHttp408RequestTimeout: "03-408";
|
|
660
|
+
readonly NetworkHttp409Conflict: "03-409";
|
|
661
|
+
readonly NetworkHttp410Gone: "03-410";
|
|
662
|
+
readonly NetworkHttp411LengthRequired: "03-411";
|
|
663
|
+
readonly NetworkHttp412PreconditionFailed: "03-412";
|
|
664
|
+
readonly NetworkHttp413PayloadTooLarge: "03-413";
|
|
665
|
+
readonly NetworkHttp414URITooLong: "03-414";
|
|
666
|
+
readonly NetworkHttp415UnsupportedMediaType: "03-415";
|
|
667
|
+
readonly NetworkHttp416RangeNotSatisfiable: "03-416";
|
|
668
|
+
readonly NetworkHttp417ExpectationFailed: "03-417";
|
|
669
|
+
readonly NetworkHttp418ImATeapot: "03-418";
|
|
670
|
+
readonly NetworkHttp421MisdirectedRequest: "03-421";
|
|
671
|
+
readonly NetworkHttp422UnprocessableEntity: "03-422";
|
|
672
|
+
readonly NetworkHttp423Locked: "03-423";
|
|
673
|
+
readonly NetworkHttp424FailedDependency: "03-424";
|
|
674
|
+
readonly NetworkHttp425TooEarly: "03-425";
|
|
675
|
+
readonly NetworkHttp426UpgradeRequired: "03-426";
|
|
676
|
+
readonly NetworkHttp428PreconditionRequired: "03-428";
|
|
677
|
+
readonly NetworkHttp429TooManyRequests: "03-429";
|
|
678
|
+
readonly NetworkHttp431RequestHeaderFieldsTooLarge: "03-431";
|
|
679
|
+
readonly NetworkHttp451UnavailableForLegalReasons: "03-451";
|
|
680
|
+
readonly NetworkHttp500InternalServerError: "03-500";
|
|
681
|
+
readonly NetworkHttp501NotImplemented: "03-501";
|
|
682
|
+
readonly NetworkHttp502BadGateway: "03-502";
|
|
683
|
+
readonly NetworkHttp503ServiceUnavailable: "03-503";
|
|
684
|
+
readonly NetworkHttp504GatewayTimeout: "03-504";
|
|
685
|
+
readonly NetworkHttp505HTTPVersionNotSupported: "03-505";
|
|
686
|
+
readonly NetworkHttp506VariantAlsoNegotiates: "03-506";
|
|
687
|
+
readonly NetworkHttp507InsufficientStorage: "03-507";
|
|
688
|
+
readonly NetworkHttp508LoopDetected: "03-508";
|
|
689
|
+
readonly NetworkHttp510NotExtended: "03-510";
|
|
690
|
+
readonly NetworkHttp511NetworkAuthenticationRequired: "03-511";
|
|
691
|
+
/** Content Protection Section */
|
|
692
|
+
readonly ContentProtectionUnknown: "04-00";
|
|
693
|
+
readonly ContentProtectionConcurrentStreamLimitExceeded: "04-01";
|
|
694
|
+
readonly ContentProtectionEntitlementRefused: "04-02";
|
|
695
|
+
readonly ContentProtectionLicenseExpired: "04-03";
|
|
696
|
+
readonly ContentProtectionBadLicenseRequest: "04-04";
|
|
697
|
+
readonly ContentProtectionLicenseServerTimeout: "04-05";
|
|
698
|
+
readonly ContentProtectionInsufficientHDCPSupport: "04-06";
|
|
699
|
+
readonly ContentProtectionGeoRestricted: "04-07";
|
|
700
|
+
readonly ContentProtectionParentalControlRestricted: "04-08";
|
|
701
|
+
readonly ContentProtectionCDNUnauthorized: "04-09";
|
|
702
|
+
readonly ContentProtectionInvalidAccessToken: "04-10";
|
|
703
|
+
readonly ContentProtectionKeySystemNoKeys: "04-11";
|
|
704
|
+
readonly ContentProtectionKeySystemNoAccess: "04-12";
|
|
705
|
+
readonly ContentProtectionKeySystemNoSession: "04-13";
|
|
706
|
+
readonly ContentProtectionKeySystemNoConfiguredLicense: "04-14";
|
|
707
|
+
readonly ContentProtectionKeySystemCertificateRequestFailed: "04-15";
|
|
708
|
+
readonly ContentProtectionKeySystemCertificateUpdateFailed: "04-16";
|
|
709
|
+
/** Key System: Session update failed */
|
|
710
|
+
readonly ContentProtectionKeySystemSessionUpdateFailed: "04-17";
|
|
711
|
+
/** Key System: Status output restricted */
|
|
712
|
+
readonly ContentProtectionKeySystemStatusOutputRestricted: "04-18";
|
|
713
|
+
/** Key System: Status internal error */
|
|
714
|
+
readonly ContentProtectionKeySystemStatusInternalError: "04-19";
|
|
715
|
+
/** Key Load Error */
|
|
716
|
+
readonly ContentProtectionKeyLoadError: "04-20";
|
|
717
|
+
/** Key Load Timeout */
|
|
718
|
+
readonly ContentProtectionKeyLoadTimeout: "04-21";
|
|
719
|
+
/** Capability MediaKeys Error */
|
|
720
|
+
readonly ContentProtectionCapabilityMediaKeysError: "04-22";
|
|
721
|
+
/** Manifest indicated protected content, but unable to determine key systems */
|
|
722
|
+
readonly ContentProtectionManifestKeySystemUnknown: "04-23";
|
|
723
|
+
/**
|
|
724
|
+
* None of the requested key system configurations are available.
|
|
725
|
+
* Possible reasons:
|
|
726
|
+
* - Key system not supported
|
|
727
|
+
* - Requested features (e.g., persistent state) not supported
|
|
728
|
+
* - User denied access in prompt
|
|
729
|
+
* - Key system unavailable in insecure contexts (requires HTTPS)
|
|
730
|
+
*/
|
|
731
|
+
readonly ContentProtectionKeySystemUnavailable: "04-24";
|
|
732
|
+
/** Browser found requested key system, but failed to create CDM instance */
|
|
733
|
+
readonly ContentProtectionCDMCreationFailed: "04-25";
|
|
734
|
+
/** Browser created CDM instance but failed to attach it to the video */
|
|
735
|
+
readonly ContentProtectionCDMAttachFailed: "04-26";
|
|
736
|
+
/** CDM rejected the server certificate (malformed or unsupported format) */
|
|
737
|
+
readonly ContentProtectionCDMServerCertificateRejected: "04-27";
|
|
738
|
+
/** CDM refused to create a session for unknown reasons */
|
|
739
|
+
readonly ContentProtectionCDMSessionCreationFailed: "04-28";
|
|
740
|
+
/** CDM unable to generate a license request due to malformed or unsupported init data */
|
|
741
|
+
readonly ContentProtectionCDMLicenseRequestFailed: "04-29";
|
|
742
|
+
/** License response rejected by the CDM (invalid/malformed response) */
|
|
743
|
+
readonly ContentProtectionCDMLicenseResponseRejected: "04-30";
|
|
744
|
+
/** Manifest does not specify DRM info, but content is encrypted */
|
|
745
|
+
readonly ContentProtectionManifestMissingDRMInfo: "04-31";
|
|
746
|
+
/** No license server was provided for the key system signaled by the manifest */
|
|
747
|
+
readonly ContentProtectionLicenseServerMissing: "04-32";
|
|
748
|
+
/** A required offline session was removed, affecting playback */
|
|
749
|
+
readonly ContentProtectionOfflineSessionRemoved: "04-33";
|
|
750
|
+
/** Error while executing init data transformation */
|
|
751
|
+
readonly ContentProtectionInitDataTransformationError: "04-34";
|
|
752
|
+
/** Server certificate request failed */
|
|
753
|
+
readonly ContentProtectionServerCertificateRequestFailed: "04-35";
|
|
754
|
+
/** HDCP version does not meet the requirements */
|
|
755
|
+
readonly ContentProtectionInsufficientHDCPVersion: "04-36";
|
|
756
|
+
/** Error when checking HDCP version */
|
|
757
|
+
readonly ContentProtectionHDCPVersionCheckFailed: "04-37";
|
|
758
|
+
/** Ads Section */
|
|
759
|
+
readonly AdsUnknown: "08-00";
|
|
760
|
+
readonly AdsVastParseError: "08-100";
|
|
761
|
+
readonly AdsInvalidVastSchema: "08-101";
|
|
762
|
+
readonly AdsVastVersionNotSupported: "08-102";
|
|
763
|
+
readonly AdsUnexpectedAdType: "08-200";
|
|
764
|
+
readonly AdsCreativeLinearityMismatch: "08-201";
|
|
765
|
+
readonly AdsCreativeDurationMismatch: "08-202";
|
|
766
|
+
readonly AdsCreativeSizeMismatch: "08-203";
|
|
767
|
+
readonly AdsWrapperVastError: "08-300";
|
|
768
|
+
readonly AdsVastResponseRedirectTimeout: "08-301";
|
|
769
|
+
readonly AdsWrapperLimitReached: "08-302";
|
|
770
|
+
readonly AdsVastResponseEmpty: "08-303";
|
|
771
|
+
readonly AdsLinearAdDisplayError: "08-400";
|
|
772
|
+
readonly AdsMediaFileNotFound: "08-401";
|
|
773
|
+
readonly AdsMediaFileUnavailable: "08-402";
|
|
774
|
+
readonly AdsUnsupportedMimeType: "08-403";
|
|
775
|
+
readonly AdsUnableToDisplayMediaFile: "08-405";
|
|
776
|
+
readonly AdsMezzanineFileMissing: "08-406";
|
|
777
|
+
readonly AdsMezzanineFileDownloaded: "08-407";
|
|
778
|
+
readonly AdsRejectedAd: "08-408";
|
|
779
|
+
readonly AdsInteractiveCreativeError: "08-409";
|
|
780
|
+
readonly AdsVerificationNodeExecutionError: "08-410";
|
|
781
|
+
readonly AdsNonLinearAdDisplayError: "08-500";
|
|
782
|
+
readonly AdsNonLinearAdSizeMismatch: "08-501";
|
|
783
|
+
readonly AdsNonLinearAdFetchError: "08-502";
|
|
784
|
+
readonly AdsNonLinearUnsupportedType: "08-503";
|
|
785
|
+
readonly AdsCompanionAdDisplayError: "08-600";
|
|
786
|
+
readonly AdsCompanionAdSizeMismatch: "08-601";
|
|
787
|
+
readonly AdsRequiredCompanionAdError: "08-602";
|
|
788
|
+
readonly AdsCompanionAdFetchError: "08-603";
|
|
789
|
+
readonly AdsUndefinedVastError: "08-900";
|
|
790
|
+
readonly AdsUnknownVpaidError: "08-901";
|
|
791
|
+
readonly AdsVastDocumentEmpty: "08-999";
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
declare type FlowplayerErrorCodeName = keyof typeof FlowplayerErrorCodeMap;
|
|
795
|
+
|
|
796
|
+
declare type FlowplayerErrorConfig = Partial<{
|
|
797
|
+
fatal: boolean;
|
|
798
|
+
resource: string;
|
|
799
|
+
rootErrorId: string;
|
|
800
|
+
preventRetry: boolean;
|
|
801
|
+
}>;
|
|
802
|
+
|
|
803
|
+
declare type FlowplayerErrorEventDetail = {
|
|
804
|
+
error: FlowplayerError;
|
|
805
|
+
};
|
|
806
|
+
|
|
521
807
|
/**
|
|
522
808
|
* @public
|
|
523
809
|
*/
|
|
@@ -1066,6 +1352,7 @@ declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap
|
|
|
1066
1352
|
[RECOVER]: RecoverEventDetail;
|
|
1067
1353
|
[QUALITIES]: QualitiesEventDetail;
|
|
1068
1354
|
[QUALITY_CHANGE]: QualityChangeEventDetail;
|
|
1355
|
+
[FLOWPLAYER_ERROR]: FlowplayerErrorEventDetail;
|
|
1069
1356
|
/* Excluded from this release type: audioonlysource */
|
|
1070
1357
|
/* Excluded from this release type: renderplugin */
|
|
1071
1358
|
/* Excluded from this release type: "seek:queued" */
|
|
@@ -1087,7 +1374,6 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1087
1374
|
/**
|
|
1088
1375
|
* Sent when an error occurs. Learn more about error handling.
|
|
1089
1376
|
*/
|
|
1090
|
-
on(event: typeof ERROR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof ERROR]>) => void): Player;
|
|
1091
1377
|
on(// FIXME - this event is in context-menu plugin
|
|
1092
1378
|
event: typeof CONTEXT_MENU, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CONTEXT_MENU]>) => void): Player;
|
|
1093
1379
|
/* Excluded from this release type: on */
|
|
@@ -1126,6 +1412,10 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1126
1412
|
* Emitted when the media changes quality.
|
|
1127
1413
|
*/
|
|
1128
1414
|
on(event: typeof QUALITY_CHANGE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITY_CHANGE]>) => void): Player;
|
|
1415
|
+
/**
|
|
1416
|
+
* Emitted when a standard FlowplayerError is encountered
|
|
1417
|
+
*/
|
|
1418
|
+
on(event: typeof FLOWPLAYER_ERROR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof FLOWPLAYER_ERROR]>) => void): Player;
|
|
1129
1419
|
/* Excluded from this release type: on */
|
|
1130
1420
|
/**
|
|
1131
1421
|
* Listen to this event to create a recommendations grid using the data passed with the event.
|
|
@@ -1178,12 +1468,9 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1178
1468
|
emit(event: never, data?: never): Player;
|
|
1179
1469
|
/* Excluded from this release type: emit */
|
|
1180
1470
|
/* Excluded from this release type: emit */
|
|
1181
|
-
/* Excluded from this release type: emit */
|
|
1182
|
-
/* Excluded from this release type: emit */
|
|
1183
1471
|
};
|
|
1184
1472
|
|
|
1185
1473
|
declare type PlayerEmittableCustomEventsDetailMap = {
|
|
1186
|
-
[ERROR]: ErrorEventDetail;
|
|
1187
1474
|
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
1188
1475
|
[VIEW_ENTER]: ViewEnterEventDetail;
|
|
1189
1476
|
[VIEW_LEAVE]: ViewLeaveEventDetail;
|
|
@@ -1199,7 +1486,7 @@ declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEv
|
|
|
1199
1486
|
|
|
1200
1487
|
declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
|
|
1201
1488
|
|
|
1202
|
-
declare type PlayerNativeEventsDetailMap =
|
|
1489
|
+
declare type PlayerNativeEventsDetailMap = HTMLVideoElementEventMap;
|
|
1203
1490
|
|
|
1204
1491
|
declare type PlayerNativeEventsOverloads = {
|
|
1205
1492
|
on<K extends keyof PlayerNativeEventsDetailMap>(event: K, handler: (ev: PlayerNativeEventsDetailMap[K]) => void): Player;
|