chore: PlayButton make track index props optional

This commit is contained in:
aweebs 2023-03-06 22:21:32 -08:00 committed by Fernando Fernández
parent 7d4278ccdf
commit 38642294ef

View File

@ -48,12 +48,20 @@ const props = withDefaults(
iconOnly?: boolean;
fab?: boolean;
shuffle?: boolean;
videoTrackIndex: number;
audioTrackIndex: number;
subtitleTrackIndex: number;
videoTrackIndex?: number;
audioTrackIndex?: number;
subtitleTrackIndex?: number;
disabled?: boolean;
}>(),
{ iconOnly: false, fab: false, shuffle: false, disabled: false }
{
iconOnly: false,
fab: false,
shuffle: false,
disabled: false,
videoTrackIndex: undefined,
audioTrackIndex: undefined,
subtitleTrackIndex: undefined
}
);
const playbackManager = playbackManagerStore();