fix: 使用專用域名連結、HTTPS
This commit is contained in:
parent
4c8b6db2ba
commit
3131f611da
|
|
@ -77,14 +77,14 @@ class _HomePageState extends State<HomePage> {
|
||||||
},
|
},
|
||||||
onNavigationRequest: (NavigationRequest request) {
|
onNavigationRequest: (NavigationRequest request) {
|
||||||
if (request.url.startsWith(
|
if (request.url.startsWith(
|
||||||
'http://203.64.84.154:8088/video_feed')) {
|
'https://streamer.comprehensive-guardian.systems/video_feed')) {
|
||||||
return NavigationDecision.prevent;
|
return NavigationDecision.prevent;
|
||||||
}
|
}
|
||||||
return NavigationDecision.navigate;
|
return NavigationDecision.navigate;
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
..loadRequest(Uri.parse('http://203.64.84.154:8088/0')),
|
..loadRequest(Uri.parse('https://streamer.comprehensive-guardian.systems/0')),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
|
|
|
||||||
|
|
@ -79,14 +79,14 @@ class _MessagePageState extends State<MessagePage> {
|
||||||
print(error.description);
|
print(error.description);
|
||||||
},
|
},
|
||||||
onNavigationRequest: (NavigationRequest request) {
|
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.prevent;
|
||||||
}
|
}
|
||||||
return NavigationDecision.navigate;
|
return NavigationDecision.navigate;
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
..loadRequest(Uri.parse('http://203.64.84.154:8088/0')),
|
..loadRequest(Uri.parse('https://streamer.comprehensive-guardian.systems/0')),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.bottomRight,
|
alignment: Alignment.bottomRight,
|
||||||
|
|
@ -147,7 +147,7 @@ class _MessagePageState extends State<MessagePage> {
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
_cameraId = camera_id;
|
_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: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|
@ -218,14 +218,14 @@ class _WebViewPageState extends State<WebViewPage> {
|
||||||
print(error.description);
|
print(error.description);
|
||||||
},
|
},
|
||||||
onNavigationRequest: (NavigationRequest request) {
|
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.prevent;
|
||||||
}
|
}
|
||||||
return NavigationDecision.navigate;
|
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(
|
Align(
|
||||||
alignment: Alignment.bottomRight,
|
alignment: Alignment.bottomRight,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user