Get the SvtaErrorCategory of an SVTA error code, per the spec's code / 1000 rule.
SvtaErrorCategory
code / 1000
An SVTA error code.
The error category. Returns undefined if the code is not a non-negative integer, or if the spec does not assign its category. Categories 8-98 and above 99 are reserved for future use.
undefined
const category = getSvtaErrorCategory(SvtaPlaybackErrorCode.VIDEO_BUFFER_UNDERRUN)assert(category === SvtaErrorCategory.PLAYBACK) Copy
const category = getSvtaErrorCategory(SvtaPlaybackErrorCode.VIDEO_BUFFER_UNDERRUN)assert(category === SvtaErrorCategory.PLAYBACK)
Get the
SvtaErrorCategoryof an SVTA error code, per the spec'scode / 1000rule.