apidash icon indicating copy to clipboard operation
apidash copied to clipboard

Switching to a different screen does not stop the background tasks from the previous screen

Open riojosdev opened this issue 6 months ago • 2 comments

Describe the bug/problem

In the History Screen if the requests that contain the video preview response are in the play state (initial state is 'play' and is being looped). Switching over to a different screen, keeps that request in the play state. The video is played in the background.

Steps to Reproduce the bug/problem

  • Make a request that has a video preview response. eg: make a GET request by pasting this in the https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4 url
  • Restart flutter app
  • Switch to the history tab
  • Select the request which has the video preview response
  • Make sure it is currently on the playing state
  • Switch to any other tab.
  • If the video has sound you are able to identify the video is playing in background. You can also check the logs in console that also shows the video rendering logs being run

Expected behavior

When switching to a different tab in the navigation rail, not active screen should not have any background running tasks

Device Info (The device where you encountered this issue)

  • OS: [e.g. Windows, MacOS] Windows
  • Version: [e.g. Catalina 10.15.7, Monterey 12.3.1, Windows 11 22H2] Windows 11 22H2
  • Browser (only if you encountered the issue while running the web app): [e.g. chrome, safari]

riojosdev avatar May 20 '25 11:05 riojosdev

Thanks for raising the issue @riojosdev

animator avatar May 20 '25 19:05 animator

This issue is still open?

sudhar08 avatar Aug 31 '25 23:08 sudhar08