diff --git a/lib/components/stream_preview.dart b/lib/components/stream_preview.dart index 43dde3bb6..50fe39294 100644 --- a/lib/components/stream_preview.dart +++ b/lib/components/stream_preview.dart @@ -93,6 +93,16 @@ class _StreamPreviewState extends State { }) ..setNavigationDelegate(NavigationDelegate( onPageFinished: (url) async { + + + String? x = await _controller.currentUrl(); + print('================================================================================================================================================================'); + print(x); + if(x?.contains("controls=false")??false){ + x = x?.replaceAll("controls=false","controls=true"); + print(x); + _controller.loadRequest(Uri.parse(x??"")); + } await _controller.runJavaScript( await rootBundle.loadString('assets/twitch-tunnel.js')); // wait a second for twitch to catch up. @@ -159,7 +169,7 @@ class _StreamPreviewState extends State { ), ), ) - else if (_playerState == "Playing") + else if (_playerState == "Playing"&&Platform.isIOS) Positioned.fill( child: GestureDetector( onTap: () {