mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-19 21:28:31 +02:00
perf: anti micro-stutter buffer optimizations for live TV
This commit is contained in:
1 parent
4e694a2cc0
commit
02d13404fd
5 files changed
+404
-277
No files matched your search
@@ -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';
|
||||
@@ -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 '';
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user