diff --git a/lib/screens/channel/video/native_video_store.dart b/lib/screens/channel/video/native_video_store.dart index e0b789bc..97692869 100644 --- a/lib/screens/channel/video/native_video_store.dart +++ b/lib/screens/channel/video/native_video_store.dart @@ -886,7 +886,7 @@ abstract class NativeVideoStoreBase } _highLatencyCount = 0; - final newLatency = '${rounded}s'; + final newLatency = '${seconds.toStringAsFixed(2)}s'; if (newLatency != _latency) { runInAction(() { _latency = newLatency; diff --git a/pubspec.lock b/pubspec.lock index 9e8b63a4..34e43b78 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -101,9 +101,9 @@ packages: dependency: "direct main" description: path: "." - ref: frosty-patches - resolved-ref: "6460859318b7b44034fe44016cddff02d0bd4c0a" - url: "https://github.com/tommyxchow/flutter-native-video-player.git" + ref: background-playback + resolved-ref: d47ef9adb692fbe99ed4e3a00d9912cfe6b8ce3d + url: "https://github.com/francislavoie/flutter-native-video-player.git" source: git version: "0.4.11" boolean_selector: diff --git a/pubspec.yaml b/pubspec.yaml index 3bc63b18..a7b88f77 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -81,8 +81,12 @@ dependencies: native_device_orientation: ^2.1.0 better_native_video_player: git: - url: https://github.com/tommyxchow/flutter-native-video-player.git - ref: frosty-patches + # TEMP: points at francislavoie's fork while developing the + # background-playback foreground service. Revert to + # tommyxchow/flutter-native-video-player @ frosty-patches once the + # change is merged upstream. Branch is based on the same pinned ref. + url: https://github.com/francislavoie/flutter-native-video-player.git + ref: background-playback dev_dependencies: flutter_test: