Skip to content

Differentiate between waiting and stalled events in adapters #49

Description

@opticSquid

Here's the difference between the waiting and stalled events:

waiting Event

  • Fires when playback has stopped because the next frame is not available yet
  • Occurs during active playback when the video runs out of buffered data
  • The video was playing but had to pause because it needs to buffer more data
  • Common scenario: Video is playing, user has a slow connection, and playback catches up to the buffer

Example: You're watching a video, it's playing smoothly, then it suddenly pauses with a loading spinner - that's when waiting fires.

stalled Event

  • Fires when the browser is trying to fetch media data but data is unexpectedly not forthcoming
  • Occurs during the loading/buffering phase when data stops arriving
  • The browser expected data to arrive but it's not coming through
  • Common scenario: Network issues, server problems, or connection interruptions while downloading

Example: You start loading a video, the download progress bar stops moving because the server stopped sending data - that's when stalled fires.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions