Ticket #895 (closed feature: fixed)

Opened 3 years ago

Last modified 3 years ago

Graceful error handling

Reported by: jeroen Owned by: zach
Priority: Milestone: HTML5 1.0
Component: Keywords:
Cc: Forum thread:

Description

Right now, the player crashes and throws undecipherable error messages to the API when something is wrong. We should:

  • move the player back to an idle state
  • generate a user-friendly error message
  • show that error message in the display.

As an example, the most common error is probably the file not found. It can be easily faked by setting a nonexisting video. This throws the following error in Safari:

  • INVALID_STATE_ERR: DOM Exception 11.

We probably want it to say something like:

  • File not found: /static/video/bunnu.mp4

This error translation logic should probably live at the Model / View level, so both internal components and external (API) scripts can leverage them.

Change History

comment:1 Changed 3 years ago by jeroen

  • Type changed from bug to feature

comment:2 Changed 3 years ago by zach

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.