Update `Video` `play()`/`pause()` code, possibly clearing some Sentry errors

Open
#52 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend, web-dev

Research direction

Locate the video.play() and video.pause() calls in the website and review the linked MDN and Google Developers guidance first. Use the linked Sentry errors to understand which promise rejections need handling; done means the relevant errors are handled without introducing regressions.

Written by the indexing model from the issue text.

Description

p2-nice-to-have
  • video.play() and video.pause() return a promise and we should place our code in something like a try and catch block. Not doing so may be causing some errors that were caught by Sentry
  • We could also use a catch block to take care of other Sentry video errors that we don't need to worry about

Links about issue

Sentry errors that could be resolved

Dominant language
TypeScript
Stars
13
Forks
22
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from iterative/cml.dev

All issues in iterative/cml.dev

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.