mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-17 01:51:24 +01:00
update comments
This commit is contained in:
parent
bd4378c056
commit
8dcb94d3ae
2 changed files with 4 additions and 1 deletions
|
@ -63,12 +63,15 @@ export function EmbedOption(props: {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO refactor this file: cleanup + reporting
|
||||||
|
|
||||||
export function EmbedSelectionView({ sourceId, id }: EmbedSelectionViewProps) {
|
export function EmbedSelectionView({ sourceId, id }: EmbedSelectionViewProps) {
|
||||||
const router = useOverlayRouter(id);
|
const router = useOverlayRouter(id);
|
||||||
const meta = usePlayerStore((s) => s.meta);
|
const meta = usePlayerStore((s) => s.meta);
|
||||||
const setSource = usePlayerStore((s) => s.setSource);
|
const setSource = usePlayerStore((s) => s.setSource);
|
||||||
const setSourceId = usePlayerStore((s) => s.setSourceId);
|
const setSourceId = usePlayerStore((s) => s.setSourceId);
|
||||||
const progress = usePlayerStore((s) => s.progress.time);
|
const progress = usePlayerStore((s) => s.progress.time);
|
||||||
|
|
||||||
const sourceName = useMemo(() => {
|
const sourceName = useMemo(() => {
|
||||||
if (!sourceId) return "...";
|
if (!sourceId) return "...";
|
||||||
const sourceMeta = providers.getMetadata(sourceId);
|
const sourceMeta = providers.getMetadata(sourceId);
|
||||||
|
@ -81,6 +84,7 @@ export function EmbedSelectionView({ sourceId, id }: EmbedSelectionViewProps) {
|
||||||
id: sourceId,
|
id: sourceId,
|
||||||
media: scrapeMedia,
|
media: scrapeMedia,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result.stream) {
|
if (result.stream) {
|
||||||
setSource(convertRunoutputToSource({ stream: result.stream }), progress);
|
setSource(convertRunoutputToSource({ stream: result.stream }), progress);
|
||||||
setSourceId(sourceId);
|
setSourceId(sourceId);
|
||||||
|
|
|
@ -12,7 +12,6 @@ export interface EmpheralVolumeStore {
|
||||||
setShowVolume(v: boolean): void;
|
setShowVolume(v: boolean): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO add migration from previous stored volume
|
|
||||||
export const useVolumeStore = create(
|
export const useVolumeStore = create(
|
||||||
persist(
|
persist(
|
||||||
immer<VolumeStore>((set) => ({
|
immer<VolumeStore>((set) => ({
|
||||||
|
|
Loading…
Reference in a new issue