ByteMediaProvider
此内容尚不支持你的语言。
Defined in: packages/sdk/src/media-provider.ts:161
Convenience provider for small Alpha projects. It keeps a bounded LRU of immutable asset bytes and reuses SampleIndex across exact seeks. Large/CDN integrations should provide their own Range-backed AelionMediaProvider.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ByteMediaProvider(
options):ByteMediaProvider
Defined in: packages/sdk/src/media-provider.ts:177
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”ByteMediaProvider
Methods
Section titled “Methods”clear()
Section titled “clear()”clear():
void
Defined in: packages/sdk/src/media-provider.ts:263
Returns
Section titled “Returns”void
frameAt()
Section titled “frameAt()”frameAt(
assetId,streamIndex,sourceTimeUs,signal?):Promise<VideoFrame>
Defined in: packages/sdk/src/media-provider.ts:204
Parameters
Section titled “Parameters”assetId
Section titled “assetId”string
streamIndex
Section titled “streamIndex”number
sourceTimeUs
Section titled “sourceTimeUs”number
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<VideoFrame>
Implementation of
Section titled “Implementation of”getDiagnosticSnapshot()
Section titled “getDiagnosticSnapshot()”getDiagnosticSnapshot():
JsonObject
Defined in: packages/sdk/src/media-provider.ts:315
Optional bounded, JSON-safe resource snapshot used by privacy-safe support reports.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”AelionMediaProvider.getDiagnosticSnapshot
pcmRange()
Section titled “pcmRange()”pcmRange(
assetId,streamIndex,startUs,durationUs,signal?):Promise<PcmSourceBlock>
Defined in: packages/sdk/src/media-provider.ts:240
Parameters
Section titled “Parameters”assetId
Section titled “assetId”string
streamIndex
Section titled “streamIndex”number
startUs
Section titled “startUs”number
durationUs
Section titled “durationUs”number
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<PcmSourceBlock>
Implementation of
Section titled “Implementation of”snapshot()
Section titled “snapshot()”snapshot():
object
Defined in: packages/sdk/src/media-provider.ts:270
Returns
Section titled “Returns”activeLoads
Section titled “activeLoads”
readonlyactiveLoads:number
Compatibility alias for activeOperations.
activeOperations
Section titled “activeOperations”
readonlyactiveOperations:number
assets
Section titled “assets”
readonlyassets:number
cachedBytes
Section titled “cachedBytes”
readonlycachedBytes:number
inFlightAssetLoads
Section titled “inFlightAssetLoads”
readonlyinFlightAssetLoads:number
inFlightRequests
Section titled “inFlightRequests”
readonlyinFlightRequests:number
Public frameAt/pcmRange calls currently admitted across their full lifecycle.
inFlightSampleIndexes
Section titled “inFlightSampleIndexes”
readonlyinFlightSampleIndexes:number
maxCachedBytes
Section titled “maxCachedBytes”
readonlymaxCachedBytes:number
maxConcurrentLoads
Section titled “maxConcurrentLoads”
readonlymaxConcurrentLoads:number
Compatibility alias for maxConcurrentOperations.
maxConcurrentOperations
Section titled “maxConcurrentOperations”
readonlymaxConcurrentOperations:number
maxInFlightRequests
Section titled “maxInFlightRequests”
readonlymaxInFlightRequests:number
Hard request cap, derived as maxConcurrentOperations + maxPendingOperations.
maxPendingOperations
Section titled “maxPendingOperations”
readonlymaxPendingOperations:number
pendingLoads
Section titled “pendingLoads”
readonlypendingLoads:number
Compatibility alias for pendingOperations.
pendingOperations
Section titled “pendingOperations”
readonlypendingOperations:number
sharedOperationSubscribers
Section titled “sharedOperationSubscribers”
readonlysharedOperationSubscribers:number
Subscribers retained by active single-flight load and index operations.