logo
THEOplayer
ABR
Miscellaneous
ActiveTrackLabeledMetricActiveTrackInfoLabelAnalyticAnalyticMapAnalyticBaseAnalyticTypeBase64UtilBaseUriLabelBufferedSegmentsBufferSourceCanPlayEventCanPlayThroughEventCanvasCertificateRequestCertificateResponseClipClipEventMapComcastDRMConfigurationCommonUtilsComcastIntegrationIDCrossOriginSettingCurrentSourceChangeEventDashPlaybackConfigurationDataEventDimensionChangeEventDirectionChangeEventDurationChangeEventEdgeStyleEmptiedEventEncryptedEventEndedEventErrorCategoryErrorCategory.fromCode()ErrorCategoryErrorCodeErrorEventErrorTypeFirstResponseLabelFirstResponseMetricFullscreenOptionsGeoHistogramLabelHistogramMetricHistogramTrackLabeledMetricHlsDiscontinuityAlignmentHlsPlaybackConfigurationHTTPHeadersInterceptableRequestInterceptableResponseKeyFrameLabelLatencyManagerLatencyConfigurationLicenseRequestLicenseResponseListLoadedDataEventLoadedMetadataEventMaybeAsyncMeasurableNetworkEstimatorMediaErrorMediaErrorCodeMediaFileMediaTypeMetadataDescriptionMetricMetricLabelMutedAutoplayConfigurationNodeStyleVoidCallbackPauseEventPlayBackRateLabelPlayEventPlayingEventPlayReadyKeySystemConfigurationProgressEventRateChangeEventReadyStateChangeEventReasonLabelRelatedChangeEventRelatedContentRelatedContentEventMapRelatedContentSourceRelatedHideEventRelatedShowEventRemoveTrackEventSeamlessPeriodSwitchStrategySeekingEventSeekReasonSeekedEventSegmentReceiveIntervalDataSmartSightConfigurationSmartSightIntegrationIDSocialSharingSocialSharingItemSpotxDataSpotxQueryParameterStateChangeEventStereoChangeEventStreamLabeledMetricStringKeyOfTargetQualityChangedEventTHEOplayerErrorThumbnailResolutionTimeUpdateEventTotalTimePlayedMetricTypedMetricTypeLabelUniversalAdIdUnlabeledMetricUpdateQualityEventUpNextBarUpNextManagerUpNextPanelUpNextSourceutilsVisibilityVisibilityObserverVisibilityObserverCallbackVoidPromiseCallbackVolumeChangeEventWaitingEventWaitUntilCallbackWebAudio
Ads
Caching
Content protection
Analytics
Casting
Media and Text Tracks
Verizon Media
Source
Events
HESP
SSAI
Network
Presentation
Player
UI
VR

THEOplayer > ErrorCategory > fromCode

ErrorCategory.fromCode() function

Determine the ErrorCategory of the given ErrorCode.

Signature:

function fromCode(code: ErrorCode): ErrorCategory;

Parameters

Parameter

Type

Description

code

ErrorCode

The ErrorCode to determine the ErrorCategory of.

github
Make sure to follow us on GitHub!
THEO-logo-white
twitter
facebook
linkedin
Copyright © 2022. All Rights Reserved.
Leuven
New York
Singapore
Barcelona