Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem/Bug]: HTML5 Content Issues on Xbox #4301

Closed
daebreaker opened this issue Jan 13, 2024 · 2 comments
Closed

[Problem/Bug]: HTML5 Content Issues on Xbox #4301

daebreaker opened this issue Jan 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@daebreaker
Copy link

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

@daebreaker daebreaker added the bug Something isn't working label Jan 13, 2024
@daebreaker
Copy link
Author

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.

@daebreaker
Copy link
Author

daebreaker commented Jan 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant