Blazor WASM App navigation won't stop image request when image is a stream (webcam) #55219
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Is there an existing issue for this?
Describe the bug
When an
<img>
tag has an source attibute poiting to a never ending stream (webcam) navigation between blazor pages won't dispose the stream, the application keeps building up streams for each navigation request, even trying to remove the tag from the dom using javascript does not work.see the attached image, 4 navigations between the two pages have been executed and the streams keep accumulating.
Expected Behavior
image streaming comes to a halt when the page is disposed.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.204
Anything else?
No response
The text was updated successfully, but these errors were encountered: