MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / isUnplayable

Function isUnplayable

packages/core/src/runtime/media.ts:120–122  ·  view source on GitHub ↗
(el: HTMLMediaElement)

Source from the content-addressed store, hash-verified

118// An element that errored or has no source can't play; re-issuing play() every
119// tick just floods rejections. Skip it until its state changes (src reload).
120function isUnplayable(el: HTMLMediaElement): boolean {
121 return el.error != null || el.networkState === MEDIA_NETWORK_NO_SOURCE;
122}
123
124const lastRuntimeAppliedVolume = new WeakMap<HTMLMediaElement, number>();
125

Callers 1

syncRuntimeMediaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected