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
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 callingcreateSourceReference
) which holds whole PWX stream data structure and comprised of related state atoms:BufferConfig
atom specifiesforwardDuration
andbackwardDuration
MediaTypeMapAtom
used to hold active media typesPlaybackAtom
indicates current state ofPlaybackState
PlayheadAtom
tracks position in which the current time is locatedVideoElementAtom
holds reference toHTMLVideoElement
Source
Package Dependency Graph