update comments

This commit is contained in:
mrjvs 2023-11-11 17:35:25 +01:00
parent bd4378c056
commit 8dcb94d3ae
2 changed files with 4 additions and 1 deletions

View File

@ -63,12 +63,15 @@ export function EmbedOption(props: {
);
}
// TODO refactor this file: cleanup + reporting
export function EmbedSelectionView({ sourceId, id }: EmbedSelectionViewProps) {
const router = useOverlayRouter(id);
const meta = usePlayerStore((s) => s.meta);
const setSource = usePlayerStore((s) => s.setSource);
const setSourceId = usePlayerStore((s) => s.setSourceId);
const progress = usePlayerStore((s) => s.progress.time);
const sourceName = useMemo(() => {
if (!sourceId) return "...";
const sourceMeta = providers.getMetadata(sourceId);
@ -81,6 +84,7 @@ export function EmbedSelectionView({ sourceId, id }: EmbedSelectionViewProps) {
id: sourceId,
media: scrapeMedia,
});
if (result.stream) {
setSource(convertRunoutputToSource({ stream: result.stream }), progress);
setSourceId(sourceId);

View File

@ -12,7 +12,6 @@ export interface EmpheralVolumeStore {
setShowVolume(v: boolean): void;
}
// TODO add migration from previous stored volume
export const useVolumeStore = create(
persist(
immer<VolumeStore>((set) => ({