mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-01 06:22:44 -08:00
Add N1 word highlighting flow and mpv/overlay service updates
This commit is contained in:
@@ -75,6 +75,7 @@ export interface MpvProtocolHandleMessageDeps {
|
||||
autoLoadSecondarySubTrack: () => void;
|
||||
setCurrentVideoPath: (value: string) => void;
|
||||
emitSecondarySubtitleVisibility: (payload: { visible: boolean }) => void;
|
||||
setPreviousSecondarySubVisibility: (visible: boolean) => void;
|
||||
setCurrentAudioStreamIndex: (
|
||||
tracks: Array<{
|
||||
type?: string;
|
||||
@@ -300,6 +301,7 @@ export async function dispatchMpvProtocolMessage(
|
||||
} else if (msg.request_id === MPV_REQUEST_ID_SECONDARY_SUB_VISIBILITY) {
|
||||
const previous = parseVisibilityProperty(msg.data);
|
||||
if (previous !== null) {
|
||||
deps.setPreviousSecondarySubVisibility(previous);
|
||||
deps.emitSecondarySubtitleVisibility({ visible: previous });
|
||||
}
|
||||
deps.setSecondarySubVisibility(false);
|
||||
|
||||
Reference in New Issue
Block a user