Skip to content

Commit

Permalink
fix: Fix video flicker on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
K3vinb5 committed Oct 8, 2024
1 parent 106c97c commit 2f5e331
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:bitsdojo_window/bitsdojo_window.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
Expand Down Expand Up @@ -30,8 +32,14 @@ Future<void> main() async {
Hive.registerAdapter(MangaModelAdapter());
Hive.registerAdapter(AnimeModelAdapter());
fvp.registerWith(options: {
'platforms': ['windows', 'linux', 'macos']
'platforms': ['linux', 'macos']
});
if (Platform.isWindows) {
fvp.registerWith(options: {
'platforms': ['windows'],
'video.decoders' : ['DXVA', 'FFmpeg']
});
}
await FlutterDiscordRPC.initialize(
"1266242749485809748",
);
Expand Down

0 comments on commit 2f5e331

Please sign in to comment.