Function createDataSegmentAtom
- createDataSegmentAtom(context, initialData): StateAtom<DataSegment, {
setInitSegment: ((data, initSegment) => boolean);
setSelectionGroup: ((segment, selectionGroup) => boolean);
}>
-
Parameters
-
-
initialData: PartialRequired<DataSegment, "track" | "url" | "initSegment" | "segmentTiming">
Returns StateAtom<DataSegment, {
setInitSegment: ((data, initSegment) => boolean);
setSelectionGroup: ((segment, selectionGroup) => boolean);
}>