Function createStreamAtom
- createStreamAtom(context, type): StateAtom<{
duration: StateAtom<{
value: number;
}, {
setValue: ((data, value) => boolean);
}>;
onDurationMismatch: StateAtom<{
value: DurationMismatchTransientPayload;
}, {
trigger: ((t, value) => boolean);
}>;
onPlaybackTimeMismatch: StateAtom<{
value: PlaybackTimeMismatchTransientPayload;
}, {
trigger: ((t, value) => boolean);
}>;
selectionGroups: ArrayAtom<SelectionGroupAtom>;
tracks: ArrayAtom<TrackAtom>;
type: StreamType;
}, {
setType: ((stream, type) => boolean);
}>
-
Returns StateAtom<{
duration: StateAtom<{
value: number;
}, {
setValue: ((data, value) => boolean);
}>;
onDurationMismatch: StateAtom<{
value: DurationMismatchTransientPayload;
}, {
trigger: ((t, value) => boolean);
}>;
onPlaybackTimeMismatch: StateAtom<{
value: PlaybackTimeMismatchTransientPayload;
}, {
trigger: ((t, value) => boolean);
}>;
selectionGroups: ArrayAtom<SelectionGroupAtom>;
tracks: ArrayAtom<TrackAtom>;
type: StreamType;
}, {
setType: ((stream, type) => boolean);
}>