perf: anti micro-stutter buffer optimizations for live TV

This commit is contained in:
Michael committed 2025-12-16 21:35:47 +01:00
1 parent 4e694a2cc0
commit 02d13404fd
5 files changed
+404 -277

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
/// Platform utilities - conditional export
/// Uses web implementation on web, stub on other platforms
export 'platform_utils_stub.dart'
if (dart.library.html) 'platform_utils_web.dart';
+14
View File
@@ -0,0 +1,14 @@
/// Platform-specific utilities for web
/// This file is used when compiling for web
/// Check if we're running on HTTPS
bool isHttps() {
// Implemented in platform_utils_web.dart
return true;
}
/// Get the current window origin
String getWindowOrigin() {
// Implemented in platform_utils_web.dart
return '';
}
+13
View File
@@ -0,0 +1,13 @@
/// Platform-specific utilities for web
/// This file is used when compiling for web
import 'dart:html' as html;
/// Check if we're running on HTTPS
bool isHttps() {
return html.window.location.protocol == 'https:';
}
/// Get the current window origin
String getWindowOrigin() {
return html.window.location.origin;
}