Skip to content

onTimeUpdate-event only triggering when browser tab playing the video is in focus #1332

@bramdeba

Description

@bramdeba

Current Behavior:

When focusing the tab playing the video, the onTimeUpdate-event is triggering correctly. As soon as I switch to another tab, it stops.

Expected Behavior:

When a tab is not in focus, but the video is still playing, the onTimeUpdate-event should also still play.

Steps To Reproduce:

  1. Using latest Google Chrome/Edge on Windows/Mac.
  2. Start playing a video and log the current time by listening to the onTimeUpdate-event.
  3. Switch to another tab for 10 seconds, and then refocus the tab playing the video.
  4. Look at the logs and see 10 seconds of log data missing.

Environment:

Framework: React (Vite)
Node: 18
Device: Macbook Pro / Microsoft Surface Pro
Browser: Chrome (latest), Edge (latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions