You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I got an HTML5 app working that shows game content using WebView2 (previously I used the original WebView, but I don't have the time or patience to recreate that version of the game container as I have since deleted it and rewrote the implementation around the newer runtime) however there have been a few issues which have caused the implementation to not function as I intend it to. For starters, using the game flag instead of the app flag has interfered with video playback such that the JavaScript play function does not fire, in addition to an annoying problem by which the game fails to load when it's actually set as a game (read: I get the "took too long to start message") although this only happens if run directly from the dev menu and not the Visual Studio debugger, and in spite of having trimmed down startup code to the bare minimum that I require. And to top it off, I noticed yesterday that the game has flat out stopped working such that I get a blank screen at the point where the Xbox profile code has finished processing, at which point I send a notification to the host app that the game is ready which removes the initial loading screen. That is to say that the game is completely devoid of code or content - the elements tab in the console is completely empty at the point where previously it showed the HTML tags for the game content. I doubt that it's anything on my end as I have not changed the code significantly enough to matter. (As a side note, after letting the game sit as-is in its broken state I eventually do receive an out of memory error, although the exact amount of time before this occurs has not been measured as I was away from my workstation when this point was reached.)
Any ideas on what may be happening?
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
119.0.2151.30
SDK Version
No response
Framework
WinUI2/UWP
Operating System
Xbox
OS Version
10.0.25398.2921
Repro steps
Launch app on Xbox, and witness one of these behaviors:
1 - the app takes too long to start (unless attached to the Visual Studio debugger)
2 - a blank screen is displayed when using HTML5 content with JavaScript
3 - With normal functionality working, the Game flag causes scripted video playback to fail
Repros in Edge Browser
Not Applicable
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
Small update. There was an issue with code that had been removed from my project that was causing the game to load a string that read "NotLoaded" from the C# side that had been inadvertently saved as such, which is supposed to be read as a base64 and decoded to a JSON string which obviously wasn't happening. This is now fixed, however the issue with the video files may still remain. I will update if I find anything else.
After further testing, the video playback issue now seems to occur in both app mode and game mode, and the failure to load the game within the necessary amount of time in game mode remains unsolved. I'm going to try removing the deployment from the Xbox just to be sure that something didn't get screwed up, or else I'm at a loss.
EDIT: Still no go. I'm running out of ideas, but I'm at least close to where things worked in app mode. I'm going to close this due to the lack of response or assistance and investigate further to be sure that it's not something that I did. I already had to make some code adjustments from the defaults to get this to work, so figuring out what I did shouldn't be too difficult.
What happened?
Recently I got an HTML5 app working that shows game content using WebView2 (previously I used the original WebView, but I don't have the time or patience to recreate that version of the game container as I have since deleted it and rewrote the implementation around the newer runtime) however there have been a few issues which have caused the implementation to not function as I intend it to. For starters, using the game flag instead of the app flag has interfered with video playback such that the JavaScript play function does not fire, in addition to an annoying problem by which the game fails to load when it's actually set as a game (read: I get the "took too long to start message") although this only happens if run directly from the dev menu and not the Visual Studio debugger, and in spite of having trimmed down startup code to the bare minimum that I require. And to top it off, I noticed yesterday that the game has flat out stopped working such that I get a blank screen at the point where the Xbox profile code has finished processing, at which point I send a notification to the host app that the game is ready which removes the initial loading screen. That is to say that the game is completely devoid of code or content - the elements tab in the console is completely empty at the point where previously it showed the HTML tags for the game content. I doubt that it's anything on my end as I have not changed the code significantly enough to matter. (As a side note, after letting the game sit as-is in its broken state I eventually do receive an out of memory error, although the exact amount of time before this occurs has not been measured as I was away from my workstation when this point was reached.)
Any ideas on what may be happening?
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
119.0.2151.30
SDK Version
No response
Framework
WinUI2/UWP
Operating System
Xbox
OS Version
10.0.25398.2921
Repro steps
Launch app on Xbox, and witness one of these behaviors:
1 - the app takes too long to start (unless attached to the Visual Studio debugger)
2 - a blank screen is displayed when using HTML5 content with JavaScript
3 - With normal functionality working, the Game flag causes scripted video playback to fail
Repros in Edge Browser
Not Applicable
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: