Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MediaSourceFactory

Implements

Index

Constructors

constructor

  • Creates a new MediaSourceFactory.

    Parameters

    • _resourceProvider: IResourceProvider

      The resource provider that should be used for fetching the media resources.

    • Optional _resourceCacheHost: IResourceCacheHost

      The resource cache to use to load resources if the Media Source Extensions API is not supported, or if a resource cannot be streamed. If not provided, Blob URLs will be created and managed by the MediaSourceFactory when necessary.

    • Optional options: IMediaSourceFactoryOptions

      Configuration options for this instance.

    Returns MediaSourceFactory

Methods

createUrl

  • Creates an URL that can be assigned to an

    Call revokeUrl() to release the resources allocated by the URL instance.

    Parameters

    • mediaElement: HTMLMediaElement
    • resourceUrl: string | URL

    Returns IMediaSourceFactoryCreateUrlResult

destroy

  • destroy(): void

revokeUrl

  • revokeUrl(mediaSourceId: number): void
  • Revokes the specified URL, previously created with createUrl()

    Parameters

    • mediaSourceId: number

    Returns void

Generated using TypeDoc