Module player-types/packages/source/Source.package

Source.package

Holds and exposes state atoms of content source that is being played back. Exposes createSourceReference function which would be used to create source state atom, and spawn new source thread.

It also exposes SourceReferences, which is should hold all source references created.

The main exposed component is the SourceStateAtom (the result of calling createSourceReference) which holds whole PWX stream data structure and comprised of related state atoms:

  • BufferConfig atom specifies forwardDuration and backwardDuration
  • MediaTypeMapAtom used to hold active media types
  • PlaybackAtom indicates current state of PlaybackState
  • PlayheadAtom tracks position in which the current time is located
  • VideoElementAtom holds reference to HTMLVideoElement

Source Package Dependency Graph

Source
Core

References

Variables

References

Renames and re-exports SourcePackage

Generated using TypeDoc