@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/message.d.ts
CHANGED
|
@@ -322,17 +322,6 @@ ERROR = "error";
|
|
|
322
322
|
|
|
323
323
|
declare const ERRORED = "is-error";
|
|
324
324
|
|
|
325
|
-
/**
|
|
326
|
-
* @public
|
|
327
|
-
*/
|
|
328
|
-
declare type ErrorEventDetail = {
|
|
329
|
-
src?: string;
|
|
330
|
-
type?: string;
|
|
331
|
-
code?: number | string;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
/* Excluded from this release type: _ErrorEventDetail */
|
|
335
|
-
|
|
336
325
|
declare namespace events {
|
|
337
326
|
export {
|
|
338
327
|
MOUNT,
|
|
@@ -390,7 +379,8 @@ declare namespace events {
|
|
|
390
379
|
RECOVER,
|
|
391
380
|
CUEPOINTS,
|
|
392
381
|
CUEPOINT_START,
|
|
393
|
-
CUEPOINT_END
|
|
382
|
+
CUEPOINT_END,
|
|
383
|
+
FLOWPLAYER_ERROR
|
|
394
384
|
}
|
|
395
385
|
}
|
|
396
386
|
|
|
@@ -414,11 +404,307 @@ declare type FilterNewSourceTypes<PluginSrcs extends unknown[]> = {
|
|
|
414
404
|
} ? PluginSrcs[Index] : never;
|
|
415
405
|
};
|
|
416
406
|
|
|
407
|
+
/**
|
|
408
|
+
* @public
|
|
409
|
+
* emitted to handle playback related errors
|
|
410
|
+
*/
|
|
411
|
+
declare const /**
|
|
412
|
+
@public
|
|
413
|
+
* when a new player is inserted into the HTML
|
|
414
|
+
*/ /**
|
|
415
|
+
* @public
|
|
416
|
+
* emitted to handle playback related errors
|
|
417
|
+
*/
|
|
418
|
+
FLOWPLAYER_ERROR = "flowplayer:error";
|
|
419
|
+
|
|
417
420
|
/**
|
|
418
421
|
* @public
|
|
419
422
|
*/
|
|
420
423
|
declare type FlowplayerCustomElementRegistry = Map<string, string>;
|
|
421
424
|
|
|
425
|
+
declare class FlowplayerError extends Error {
|
|
426
|
+
readonly message: string;
|
|
427
|
+
readonly flowplayerErrorCode: FlowplayerErrorCode;
|
|
428
|
+
readonly config: FlowplayerErrorConfig;
|
|
429
|
+
static getErrorKey(code: FlowplayerErrorCode): FlowplayerErrorCodeName;
|
|
430
|
+
readonly id: string;
|
|
431
|
+
readonly fatal: boolean;
|
|
432
|
+
readonly errorKey: string;
|
|
433
|
+
constructor(message: string, flowplayerErrorCode: FlowplayerErrorCode, config?: FlowplayerErrorConfig);
|
|
434
|
+
toJSON(): {
|
|
435
|
+
message: string;
|
|
436
|
+
flowplayer_error_code: FlowplayerErrorCode;
|
|
437
|
+
id: string;
|
|
438
|
+
root_error_id: string | undefined;
|
|
439
|
+
resource: string | undefined;
|
|
440
|
+
fatal: boolean;
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
declare type FlowplayerErrorCode = (typeof FlowplayerErrorCodeMap)[keyof typeof FlowplayerErrorCodeMap];
|
|
445
|
+
|
|
446
|
+
declare const FlowplayerErrorCodeMap: {
|
|
447
|
+
/** Unknown */
|
|
448
|
+
readonly Unknown: "00-00";
|
|
449
|
+
/** Media Section */
|
|
450
|
+
readonly MediaUnknown: "01-00";
|
|
451
|
+
readonly MediaUnavailable: "01-01";
|
|
452
|
+
readonly MediaUnsupportedVideoFormat: "01-02";
|
|
453
|
+
readonly MediaUnsupportedAudioFormat: "01-03";
|
|
454
|
+
readonly MediaBitrateExceeded: "01-04";
|
|
455
|
+
readonly MediaBufferOverread: "01-05";
|
|
456
|
+
readonly MediaIntegerOverflow: "01-06";
|
|
457
|
+
readonly MediaQuotaExceeded: "01-07";
|
|
458
|
+
readonly MediaInvalidCompositionDuration: "01-08";
|
|
459
|
+
readonly MediaInvalidCompositionSourceDuration: "01-09";
|
|
460
|
+
readonly MediaInvalidCompositionSourceStartTime: "01-10";
|
|
461
|
+
readonly MediaMalformedDepth: "01-11";
|
|
462
|
+
/** Playback Section */
|
|
463
|
+
readonly PlaybackUnknown: "02-00";
|
|
464
|
+
readonly PlaybackVideoBufferUnderRun: "02-01";
|
|
465
|
+
readonly PlaybackAudioBufferUnderRun: "02-02";
|
|
466
|
+
readonly PlaybackVideoBufferingTimeout: "02-03";
|
|
467
|
+
readonly PlaybackAudioBufferingTimeout: "02-04";
|
|
468
|
+
readonly PlaybackManifestParseError: "02-05";
|
|
469
|
+
readonly PlaybackVideoDecodeError: "02-06";
|
|
470
|
+
readonly PlaybackAudioDecodeError: "02-07";
|
|
471
|
+
readonly PlaybackDroppedFramesExceeded: "02-08";
|
|
472
|
+
readonly PlaybackPlayheadExceedsDuration: "02-09";
|
|
473
|
+
readonly PlaybackUnsupportedDevice: "02-10";
|
|
474
|
+
readonly PlaybackManifestLoadError: "02-11";
|
|
475
|
+
readonly PlaybackManifestLoadTimeout: "02-12";
|
|
476
|
+
readonly PlaybackManifestParsingError: "02-13";
|
|
477
|
+
readonly PlaybackManifestIncompatibleCodecs: "02-14";
|
|
478
|
+
readonly PlaybackLevelEmptyError: "02-15";
|
|
479
|
+
readonly PlaybackLevelLoadError: "02-16";
|
|
480
|
+
readonly PlaybackLevelLoadTimeout: "02-17";
|
|
481
|
+
readonly PlaybackLevelSwitchError: "02-18";
|
|
482
|
+
readonly PlaybackAudioTrackLoadError: "02-19";
|
|
483
|
+
readonly PlaybackAudioTrackLoadTimeout: "02-20";
|
|
484
|
+
readonly PlaybackFragLoadError: "02-21";
|
|
485
|
+
readonly PlaybackFragLoadTimeout: "02-22";
|
|
486
|
+
readonly PlaybackFragDecryptError: "02-23";
|
|
487
|
+
readonly PlaybackFragParsingError: "02-24";
|
|
488
|
+
readonly PlaybackFragGap: "02-25";
|
|
489
|
+
readonly PlaybackRemuxAllocError: "02-26";
|
|
490
|
+
readonly PlaybackBufferAddCodecError: "02-27";
|
|
491
|
+
readonly PlaybackBufferIncompatibleCodecs: "02-28";
|
|
492
|
+
readonly PlaybackBufferAppendError: "02-29";
|
|
493
|
+
readonly PlaybackBufferStalledError: "02-30";
|
|
494
|
+
readonly PlaybackBufferFullError: "02-31";
|
|
495
|
+
readonly PlaybackBufferSeekOverHole: "02-32";
|
|
496
|
+
readonly PlaybackBufferNudgeOnStall: "02-33";
|
|
497
|
+
readonly PlaybackInternalException: "02-34";
|
|
498
|
+
readonly PlaybackInternalAborted: "02-35";
|
|
499
|
+
readonly PlaybackManifestLoaderFailure: "02-36";
|
|
500
|
+
readonly PlaybackSegmentBaseLoaderError: "02-37";
|
|
501
|
+
readonly PlaybackTimeSyncFailed: "02-38";
|
|
502
|
+
readonly PlaybackFragmentLoaderFailure: "02-39";
|
|
503
|
+
readonly PlaybackAppendError: "02-40";
|
|
504
|
+
readonly PlaybackRemoveError: "02-41";
|
|
505
|
+
readonly PlaybackDataUpdateFailed: "02-42";
|
|
506
|
+
readonly PlaybackManifestNoStreams: "02-43";
|
|
507
|
+
readonly PlaybackUnknownManifestType: "02-44";
|
|
508
|
+
readonly PlaybackDashInsufficientSegmentInfo: "02-45";
|
|
509
|
+
readonly PlaybackDashNoRepresentations: "02-46";
|
|
510
|
+
readonly PlaybackDashNoAdaptationSets: "02-47";
|
|
511
|
+
readonly PlaybackDashNoInitSegment: "02-48";
|
|
512
|
+
readonly PlaybackDashUnsupportedContainerFormat: "02-49";
|
|
513
|
+
readonly PlaybackDashKeySystemMismatch: "02-50";
|
|
514
|
+
readonly PlaybackMultipleKeyIDs: "02-51";
|
|
515
|
+
readonly PlaybackDashConflictingKeyIDs: "02-52";
|
|
516
|
+
readonly PlaybackRestrictedStreams: "02-53";
|
|
517
|
+
readonly PlaybackHlsMasterAndMediaTags: "02-54";
|
|
518
|
+
readonly PlaybackRepresentationIdConflict: "02-55";
|
|
519
|
+
readonly PlaybackHlsUnsupportedKeyFormats: "02-56";
|
|
520
|
+
readonly PlaybackManifestNoVariants: "02-57";
|
|
521
|
+
readonly PlaybackHlsUndeclaredVariables: "02-58";
|
|
522
|
+
readonly PlaybackAes128InvalidKeyLength: "02-59";
|
|
523
|
+
readonly PlaybackDashConflictingAes128Keys: "02-60";
|
|
524
|
+
readonly PlaybackDashUnsupportedAes128Encryption: "02-61";
|
|
525
|
+
readonly PlaybackManifestPatchMismatch: "02-62";
|
|
526
|
+
readonly PlaybackEmptyMediaPlaylist: "02-63";
|
|
527
|
+
readonly PlaybackNonContiguousCompositionTrack: "02-64";
|
|
528
|
+
readonly PlaybackDecoderNotFound: "02-65";
|
|
529
|
+
readonly PlaybackDecoderTemporarilyUnavailable: "02-66";
|
|
530
|
+
readonly PlaybackIncompatibleAsset: "02-67";
|
|
531
|
+
readonly PlaybackNoCompatibleExternalDisplay: "02-69";
|
|
532
|
+
readonly PlaybackOutOfMemory: "02-70";
|
|
533
|
+
readonly PlaybackToneMappingFailed: "02-71";
|
|
534
|
+
readonly PlaybackVideoCompositorFailed: "02-72";
|
|
535
|
+
/** Network Section */
|
|
536
|
+
readonly NetworkUnknown: "03-00";
|
|
537
|
+
readonly NetworkNoInternet: "03-01";
|
|
538
|
+
readonly NetworkRequestTimeout: "03-02";
|
|
539
|
+
readonly NetworkUnableToResolveHost: "03-03";
|
|
540
|
+
readonly NetworkResourceNotFound: "03-04";
|
|
541
|
+
readonly NetworkExpiredUrl: "03-05";
|
|
542
|
+
readonly NetworkUrlResolutionFailed: "03-06";
|
|
543
|
+
readonly NetworkDownloadErrorIdManifest: "03-07";
|
|
544
|
+
readonly NetworkDownloadErrorIdSidx: "03-08";
|
|
545
|
+
readonly NetworkDownloadErrorIdContent: "03-09";
|
|
546
|
+
readonly NetworkDownloadErrorIdInitialization: "03-10";
|
|
547
|
+
readonly NetworkDownloadErrorIdXlink: "03-11";
|
|
548
|
+
readonly NetworkHttpRequestFailed: "03-12";
|
|
549
|
+
readonly NetworkMaxRetriesExceeded: "03-13";
|
|
550
|
+
readonly NetworkSegmentMissing: "03-14";
|
|
551
|
+
/** HTTP Error Codes */
|
|
552
|
+
readonly NetworkHttp400BadRequest: "03-400";
|
|
553
|
+
readonly NetworkHttp401Unauthorized: "03-401";
|
|
554
|
+
readonly NetworkHttp402PaymentRequired: "03-402";
|
|
555
|
+
readonly NetworkHttp403Forbidden: "03-403";
|
|
556
|
+
readonly NetworkHttp404NotFound: "03-404";
|
|
557
|
+
readonly NetworkHttp405MethodNotAllowed: "03-405";
|
|
558
|
+
readonly NetworkHttp406NotAcceptable: "03-406";
|
|
559
|
+
readonly NetworkHttp407ProxyAuthenticationRequired: "03-407";
|
|
560
|
+
readonly NetworkHttp408RequestTimeout: "03-408";
|
|
561
|
+
readonly NetworkHttp409Conflict: "03-409";
|
|
562
|
+
readonly NetworkHttp410Gone: "03-410";
|
|
563
|
+
readonly NetworkHttp411LengthRequired: "03-411";
|
|
564
|
+
readonly NetworkHttp412PreconditionFailed: "03-412";
|
|
565
|
+
readonly NetworkHttp413PayloadTooLarge: "03-413";
|
|
566
|
+
readonly NetworkHttp414URITooLong: "03-414";
|
|
567
|
+
readonly NetworkHttp415UnsupportedMediaType: "03-415";
|
|
568
|
+
readonly NetworkHttp416RangeNotSatisfiable: "03-416";
|
|
569
|
+
readonly NetworkHttp417ExpectationFailed: "03-417";
|
|
570
|
+
readonly NetworkHttp418ImATeapot: "03-418";
|
|
571
|
+
readonly NetworkHttp421MisdirectedRequest: "03-421";
|
|
572
|
+
readonly NetworkHttp422UnprocessableEntity: "03-422";
|
|
573
|
+
readonly NetworkHttp423Locked: "03-423";
|
|
574
|
+
readonly NetworkHttp424FailedDependency: "03-424";
|
|
575
|
+
readonly NetworkHttp425TooEarly: "03-425";
|
|
576
|
+
readonly NetworkHttp426UpgradeRequired: "03-426";
|
|
577
|
+
readonly NetworkHttp428PreconditionRequired: "03-428";
|
|
578
|
+
readonly NetworkHttp429TooManyRequests: "03-429";
|
|
579
|
+
readonly NetworkHttp431RequestHeaderFieldsTooLarge: "03-431";
|
|
580
|
+
readonly NetworkHttp451UnavailableForLegalReasons: "03-451";
|
|
581
|
+
readonly NetworkHttp500InternalServerError: "03-500";
|
|
582
|
+
readonly NetworkHttp501NotImplemented: "03-501";
|
|
583
|
+
readonly NetworkHttp502BadGateway: "03-502";
|
|
584
|
+
readonly NetworkHttp503ServiceUnavailable: "03-503";
|
|
585
|
+
readonly NetworkHttp504GatewayTimeout: "03-504";
|
|
586
|
+
readonly NetworkHttp505HTTPVersionNotSupported: "03-505";
|
|
587
|
+
readonly NetworkHttp506VariantAlsoNegotiates: "03-506";
|
|
588
|
+
readonly NetworkHttp507InsufficientStorage: "03-507";
|
|
589
|
+
readonly NetworkHttp508LoopDetected: "03-508";
|
|
590
|
+
readonly NetworkHttp510NotExtended: "03-510";
|
|
591
|
+
readonly NetworkHttp511NetworkAuthenticationRequired: "03-511";
|
|
592
|
+
/** Content Protection Section */
|
|
593
|
+
readonly ContentProtectionUnknown: "04-00";
|
|
594
|
+
readonly ContentProtectionConcurrentStreamLimitExceeded: "04-01";
|
|
595
|
+
readonly ContentProtectionEntitlementRefused: "04-02";
|
|
596
|
+
readonly ContentProtectionLicenseExpired: "04-03";
|
|
597
|
+
readonly ContentProtectionBadLicenseRequest: "04-04";
|
|
598
|
+
readonly ContentProtectionLicenseServerTimeout: "04-05";
|
|
599
|
+
readonly ContentProtectionInsufficientHDCPSupport: "04-06";
|
|
600
|
+
readonly ContentProtectionGeoRestricted: "04-07";
|
|
601
|
+
readonly ContentProtectionParentalControlRestricted: "04-08";
|
|
602
|
+
readonly ContentProtectionCDNUnauthorized: "04-09";
|
|
603
|
+
readonly ContentProtectionInvalidAccessToken: "04-10";
|
|
604
|
+
readonly ContentProtectionKeySystemNoKeys: "04-11";
|
|
605
|
+
readonly ContentProtectionKeySystemNoAccess: "04-12";
|
|
606
|
+
readonly ContentProtectionKeySystemNoSession: "04-13";
|
|
607
|
+
readonly ContentProtectionKeySystemNoConfiguredLicense: "04-14";
|
|
608
|
+
readonly ContentProtectionKeySystemCertificateRequestFailed: "04-15";
|
|
609
|
+
readonly ContentProtectionKeySystemCertificateUpdateFailed: "04-16";
|
|
610
|
+
/** Key System: Session update failed */
|
|
611
|
+
readonly ContentProtectionKeySystemSessionUpdateFailed: "04-17";
|
|
612
|
+
/** Key System: Status output restricted */
|
|
613
|
+
readonly ContentProtectionKeySystemStatusOutputRestricted: "04-18";
|
|
614
|
+
/** Key System: Status internal error */
|
|
615
|
+
readonly ContentProtectionKeySystemStatusInternalError: "04-19";
|
|
616
|
+
/** Key Load Error */
|
|
617
|
+
readonly ContentProtectionKeyLoadError: "04-20";
|
|
618
|
+
/** Key Load Timeout */
|
|
619
|
+
readonly ContentProtectionKeyLoadTimeout: "04-21";
|
|
620
|
+
/** Capability MediaKeys Error */
|
|
621
|
+
readonly ContentProtectionCapabilityMediaKeysError: "04-22";
|
|
622
|
+
/** Manifest indicated protected content, but unable to determine key systems */
|
|
623
|
+
readonly ContentProtectionManifestKeySystemUnknown: "04-23";
|
|
624
|
+
/**
|
|
625
|
+
* None of the requested key system configurations are available.
|
|
626
|
+
* Possible reasons:
|
|
627
|
+
* - Key system not supported
|
|
628
|
+
* - Requested features (e.g., persistent state) not supported
|
|
629
|
+
* - User denied access in prompt
|
|
630
|
+
* - Key system unavailable in insecure contexts (requires HTTPS)
|
|
631
|
+
*/
|
|
632
|
+
readonly ContentProtectionKeySystemUnavailable: "04-24";
|
|
633
|
+
/** Browser found requested key system, but failed to create CDM instance */
|
|
634
|
+
readonly ContentProtectionCDMCreationFailed: "04-25";
|
|
635
|
+
/** Browser created CDM instance but failed to attach it to the video */
|
|
636
|
+
readonly ContentProtectionCDMAttachFailed: "04-26";
|
|
637
|
+
/** CDM rejected the server certificate (malformed or unsupported format) */
|
|
638
|
+
readonly ContentProtectionCDMServerCertificateRejected: "04-27";
|
|
639
|
+
/** CDM refused to create a session for unknown reasons */
|
|
640
|
+
readonly ContentProtectionCDMSessionCreationFailed: "04-28";
|
|
641
|
+
/** CDM unable to generate a license request due to malformed or unsupported init data */
|
|
642
|
+
readonly ContentProtectionCDMLicenseRequestFailed: "04-29";
|
|
643
|
+
/** License response rejected by the CDM (invalid/malformed response) */
|
|
644
|
+
readonly ContentProtectionCDMLicenseResponseRejected: "04-30";
|
|
645
|
+
/** Manifest does not specify DRM info, but content is encrypted */
|
|
646
|
+
readonly ContentProtectionManifestMissingDRMInfo: "04-31";
|
|
647
|
+
/** No license server was provided for the key system signaled by the manifest */
|
|
648
|
+
readonly ContentProtectionLicenseServerMissing: "04-32";
|
|
649
|
+
/** A required offline session was removed, affecting playback */
|
|
650
|
+
readonly ContentProtectionOfflineSessionRemoved: "04-33";
|
|
651
|
+
/** Error while executing init data transformation */
|
|
652
|
+
readonly ContentProtectionInitDataTransformationError: "04-34";
|
|
653
|
+
/** Server certificate request failed */
|
|
654
|
+
readonly ContentProtectionServerCertificateRequestFailed: "04-35";
|
|
655
|
+
/** HDCP version does not meet the requirements */
|
|
656
|
+
readonly ContentProtectionInsufficientHDCPVersion: "04-36";
|
|
657
|
+
/** Error when checking HDCP version */
|
|
658
|
+
readonly ContentProtectionHDCPVersionCheckFailed: "04-37";
|
|
659
|
+
/** Ads Section */
|
|
660
|
+
readonly AdsUnknown: "08-00";
|
|
661
|
+
readonly AdsVastParseError: "08-100";
|
|
662
|
+
readonly AdsInvalidVastSchema: "08-101";
|
|
663
|
+
readonly AdsVastVersionNotSupported: "08-102";
|
|
664
|
+
readonly AdsUnexpectedAdType: "08-200";
|
|
665
|
+
readonly AdsCreativeLinearityMismatch: "08-201";
|
|
666
|
+
readonly AdsCreativeDurationMismatch: "08-202";
|
|
667
|
+
readonly AdsCreativeSizeMismatch: "08-203";
|
|
668
|
+
readonly AdsWrapperVastError: "08-300";
|
|
669
|
+
readonly AdsVastResponseRedirectTimeout: "08-301";
|
|
670
|
+
readonly AdsWrapperLimitReached: "08-302";
|
|
671
|
+
readonly AdsVastResponseEmpty: "08-303";
|
|
672
|
+
readonly AdsLinearAdDisplayError: "08-400";
|
|
673
|
+
readonly AdsMediaFileNotFound: "08-401";
|
|
674
|
+
readonly AdsMediaFileUnavailable: "08-402";
|
|
675
|
+
readonly AdsUnsupportedMimeType: "08-403";
|
|
676
|
+
readonly AdsUnableToDisplayMediaFile: "08-405";
|
|
677
|
+
readonly AdsMezzanineFileMissing: "08-406";
|
|
678
|
+
readonly AdsMezzanineFileDownloaded: "08-407";
|
|
679
|
+
readonly AdsRejectedAd: "08-408";
|
|
680
|
+
readonly AdsInteractiveCreativeError: "08-409";
|
|
681
|
+
readonly AdsVerificationNodeExecutionError: "08-410";
|
|
682
|
+
readonly AdsNonLinearAdDisplayError: "08-500";
|
|
683
|
+
readonly AdsNonLinearAdSizeMismatch: "08-501";
|
|
684
|
+
readonly AdsNonLinearAdFetchError: "08-502";
|
|
685
|
+
readonly AdsNonLinearUnsupportedType: "08-503";
|
|
686
|
+
readonly AdsCompanionAdDisplayError: "08-600";
|
|
687
|
+
readonly AdsCompanionAdSizeMismatch: "08-601";
|
|
688
|
+
readonly AdsRequiredCompanionAdError: "08-602";
|
|
689
|
+
readonly AdsCompanionAdFetchError: "08-603";
|
|
690
|
+
readonly AdsUndefinedVastError: "08-900";
|
|
691
|
+
readonly AdsUnknownVpaidError: "08-901";
|
|
692
|
+
readonly AdsVastDocumentEmpty: "08-999";
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
declare type FlowplayerErrorCodeName = keyof typeof FlowplayerErrorCodeMap;
|
|
696
|
+
|
|
697
|
+
declare type FlowplayerErrorConfig = Partial<{
|
|
698
|
+
fatal: boolean;
|
|
699
|
+
resource: string;
|
|
700
|
+
rootErrorId: string;
|
|
701
|
+
preventRetry: boolean;
|
|
702
|
+
}>;
|
|
703
|
+
|
|
704
|
+
declare type FlowplayerErrorEventDetail = {
|
|
705
|
+
error: FlowplayerError;
|
|
706
|
+
};
|
|
707
|
+
|
|
422
708
|
/**
|
|
423
709
|
* @public
|
|
424
710
|
*/
|
|
@@ -1011,6 +1297,7 @@ declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap
|
|
|
1011
1297
|
[RECOVER]: RecoverEventDetail;
|
|
1012
1298
|
[QUALITIES]: QualitiesEventDetail;
|
|
1013
1299
|
[QUALITY_CHANGE]: QualityChangeEventDetail;
|
|
1300
|
+
[FLOWPLAYER_ERROR]: FlowplayerErrorEventDetail;
|
|
1014
1301
|
/* Excluded from this release type: audioonlysource */
|
|
1015
1302
|
/* Excluded from this release type: renderplugin */
|
|
1016
1303
|
/* Excluded from this release type: "seek:queued" */
|
|
@@ -1032,7 +1319,6 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1032
1319
|
/**
|
|
1033
1320
|
* Sent when an error occurs. Learn more about error handling.
|
|
1034
1321
|
*/
|
|
1035
|
-
on(event: typeof ERROR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof ERROR]>) => void): Player;
|
|
1036
1322
|
on(// FIXME - this event is in context-menu plugin
|
|
1037
1323
|
event: typeof CONTEXT_MENU, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CONTEXT_MENU]>) => void): Player;
|
|
1038
1324
|
/* Excluded from this release type: on */
|
|
@@ -1071,6 +1357,10 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1071
1357
|
* Emitted when the media changes quality.
|
|
1072
1358
|
*/
|
|
1073
1359
|
on(event: typeof QUALITY_CHANGE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITY_CHANGE]>) => void): Player;
|
|
1360
|
+
/**
|
|
1361
|
+
* Emitted when a standard FlowplayerError is encountered
|
|
1362
|
+
*/
|
|
1363
|
+
on(event: typeof FLOWPLAYER_ERROR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof FLOWPLAYER_ERROR]>) => void): Player;
|
|
1074
1364
|
/* Excluded from this release type: on */
|
|
1075
1365
|
/**
|
|
1076
1366
|
* Listen to this event to create a recommendations grid using the data passed with the event.
|
|
@@ -1123,12 +1413,9 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1123
1413
|
emit(event: never, data?: never): Player;
|
|
1124
1414
|
/* Excluded from this release type: emit */
|
|
1125
1415
|
/* Excluded from this release type: emit */
|
|
1126
|
-
/* Excluded from this release type: emit */
|
|
1127
|
-
/* Excluded from this release type: emit */
|
|
1128
1416
|
};
|
|
1129
1417
|
|
|
1130
1418
|
declare type PlayerEmittableCustomEventsDetailMap = {
|
|
1131
|
-
[ERROR]: ErrorEventDetail;
|
|
1132
1419
|
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
1133
1420
|
[VIEW_ENTER]: ViewEnterEventDetail;
|
|
1134
1421
|
[VIEW_LEAVE]: ViewLeaveEventDetail;
|
|
@@ -1144,7 +1431,7 @@ declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEv
|
|
|
1144
1431
|
|
|
1145
1432
|
declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
|
|
1146
1433
|
|
|
1147
|
-
declare type PlayerNativeEventsDetailMap =
|
|
1434
|
+
declare type PlayerNativeEventsDetailMap = HTMLVideoElementEventMap;
|
|
1148
1435
|
|
|
1149
1436
|
declare type PlayerNativeEventsOverloads = {
|
|
1150
1437
|
on<K extends keyof PlayerNativeEventsDetailMap>(event: K, handler: (ev: PlayerNativeEventsDetailMap[K]) => void): Player;
|