From 40e8a2c901547d40eb46813d66e9a8b080b8bf12 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 23 Dec 2024 13:09:04 +0100 Subject: [PATCH] Add `setSubtitleTrack` command --- lib/api/commands.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/api/commands.dart b/lib/api/commands.dart index ca5c8ec..af423b9 100644 --- a/lib/api/commands.dart +++ b/lib/api/commands.dart @@ -142,6 +142,15 @@ class Command extends PlayerConnectionEvent { ); } + factory Command.setSubtitleTrack(int? track) { + return Command( + type: 'set_subtitle_track', + value: { + 'track': track, + }, + ); + } + factory Command.setLooping(bool value) { return Command( type: 'set_looping',