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
createSourceReferencefunction 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:BufferConfigatom specifiesforwardDurationandbackwardDurationMediaTypeMapAtomused to hold active media typesPlaybackAtomindicates current state ofPlaybackStatePlayheadAtomtracks position in which the current time is locatedVideoElementAtomholds reference toHTMLVideoElementSourcePackage Dependency Graph