Skip to content

Commit

Permalink
Merge pull request #284 from KotaHv/windows-webview
Browse files Browse the repository at this point in the history
fix missing video URL decode on Windows
  • Loading branch information
Predidit authored Oct 9, 2024
2 parents 5cc2442 + bf492ee commit 80c3b56
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ class WebviewWindowsItemControllerImpel extends WebviewItemController {
videoPageController.logLines
.add('Callback received: ${Uri.decodeFull(messageItem)}');
if (messageItem.contains('http') && !isVideoSourceLoaded) {
debugPrint('Loading video source ${Uri.decodeFull(messageItem)}');
videoPageController.logLines
.add('Loading video source ${Uri.decodeFull(messageItem)}');
String videoUrl = Uri.decodeFull(messageItem);
debugPrint('Loading video source $videoUrl');
videoPageController.logLines.add('Loading video source $videoUrl');
isIframeLoaded = true;
isVideoSourceLoaded = true;
videoPageController.loading = false;
if (videoPageController.currentPlugin.useNativePlayer) {
unloadPage();
playerController.videoUrl = messageItem;
playerController.videoUrl = videoUrl;
playerController.init(offset: offset);
}
}
Expand Down

0 comments on commit 80c3b56

Please sign in to comment.