-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: hide error dialog on playback recovery #1065
base: main
Are you sure you want to change the base?
Conversation
@luwes is attempting to deploy a commit to the Mux Team on Vercel. A member of the Team first needs to authorize it. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1065 +/- ##
==========================================
- Coverage 78.55% 77.51% -1.05%
==========================================
Files 59 51 -8
Lines 11080 12335 +1255
Branches 0 726 +726
==========================================
+ Hits 8704 9561 +857
- Misses 2376 2746 +370
- Partials 0 28 +28 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Feel free to merge but one question about the necessity of isMediaPlaying
.
@@ -2,6 +2,10 @@ import { TextTrackKinds, TextTrackModes } from '../constants.js'; | |||
import { getTextTracksList, updateTracksModeTo } from '../utils/captions.js'; | |||
import { TextTrackLike } from '../utils/TextTrackLike.js'; | |||
|
|||
export const isMediaPlaying = (media) => { | |||
return !media.paused && !media.ended && media.readyState > 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this? None of these should ever be false when the playing
event is fired.
For |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
this change hides the error dialog when playback recovers (playing event fires and media state indicates playing).