fix: 使用專用域名連結、HTTPS

This commit is contained in:
JingChiang 2024-10-25 17:19:37 +08:00
parent 4c8b6db2ba
commit 3131f611da
2 changed files with 7 additions and 7 deletions

View File

@ -77,14 +77,14 @@ class _HomePageState extends State<HomePage> {
},
onNavigationRequest: (NavigationRequest request) {
if (request.url.startsWith(
'http://203.64.84.154:8088/video_feed')) {
'https://streamer.comprehensive-guardian.systems/video_feed')) {
return NavigationDecision.prevent;
}
return NavigationDecision.navigate;
},
),
)
..loadRequest(Uri.parse('http://203.64.84.154:8088/0')),
..loadRequest(Uri.parse('https://streamer.comprehensive-guardian.systems/0')),
),
),
Text(

View File

@ -79,14 +79,14 @@ class _MessagePageState extends State<MessagePage> {
print(error.description);
},
onNavigationRequest: (NavigationRequest request) {
if (request.url.startsWith('http://203.64.84.154:8088/video_feed')) {
if (request.url.startsWith('https://streamer.comprehensive-guardian.systems/video_feed')) {
return NavigationDecision.prevent;
}
return NavigationDecision.navigate;
},
),
)
..loadRequest(Uri.parse('http://203.64.84.154:8088/0')),
..loadRequest(Uri.parse('https://streamer.comprehensive-guardian.systems/0')),
),
Align(
alignment: Alignment.bottomRight,
@ -147,7 +147,7 @@ class _MessagePageState extends State<MessagePage> {
child: InkWell(
onTap: () {
_cameraId = camera_id;
_webViewController.loadRequest(Uri.parse('http://203.64.84.154:8088/$camera_id'));
_webViewController.loadRequest(Uri.parse('https://streamer.comprehensive-guardian.systems/$camera_id'));
},
child: Center(
child: Column(
@ -218,14 +218,14 @@ class _WebViewPageState extends State<WebViewPage> {
print(error.description);
},
onNavigationRequest: (NavigationRequest request) {
if (request.url.startsWith('http://203.64.84.154:8088/video_feed')) {
if (request.url.startsWith('https://streamer.comprehensive-guardian.systems/video_feed')) {
return NavigationDecision.prevent;
}
return NavigationDecision.navigate;
},
),
)
..loadRequest(Uri.parse('http://203.64.84.154:8088/${widget._cameraId}')),
..loadRequest(Uri.parse('https://streamer.comprehensive-guardian.systems/${widget._cameraId}')),
),
Align(
alignment: Alignment.bottomRight,