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