Skip to content
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

feat: add quality selector #734

Merged
merged 5 commits into from
Aug 11, 2023
Merged

feat: add quality selector #734

merged 5 commits into from
Aug 11, 2023

Conversation

@luwes luwes requested a review from a team as a code owner August 8, 2023 18:33
@luwes luwes self-assigned this Aug 8, 2023
@vercel
Copy link

vercel bot commented Aug 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
elements-demo-create-react-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 5:43pm
elements-demo-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 5:43pm
elements-demo-svelte-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 5:43pm
elements-demo-vanilla ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 5:43pm
elements-demo-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 5:43pm

@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #734 (3a0bb50) into main (d69d84e) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #734      +/-   ##
==========================================
- Coverage   82.51%   82.48%   -0.04%     
==========================================
  Files          40       40              
  Lines        7766     7775       +9     
  Branches      456      456              
==========================================
+ Hits         6408     6413       +5     
- Misses       1352     1356       +4     
  Partials        6        6              
Files Changed Coverage Δ
packages/mux-player/src/index.ts 73.24% <100.00%> (ø)
packages/mux-player/src/styles.css 100.00% <100.00%> (ø)
...ackages/mux-player/src/themes/classic/classic.html 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Copy link
Contributor

@cjpillsbury cjpillsbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nitpick, Otherwise, 💪

@@ -1,6 +1,6 @@
import { globalThis, document } from './polyfills';
import { MediaController } from 'media-chrome';
import 'media-chrome/dist/experimental/media-captions-selectmenu.js';
import 'media-chrome/dist/experimental/index.js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick(blocking): We should directly import each experimental feature we use so we aren't unnecessarily adding to our bundles and are being explicit about the dependencies we are using.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had it first like that but then I thought what about custom themes.
it's nice to have all the experimental elements to drop in without needing imports.
the 1 left is playback-rate-selectmenu and dependencies, comparative to the Mux player bundle it's a drop in a bucket. thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm... I'm sold as solution for now. Maybe next week in media chrome office hours we can try to come up with a solution to make sure themes can include any of their dependencies? This has come up in the past and would hopefully avoid your concern here.

Copy link
Contributor

@cjpillsbury cjpillsbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sold on the current solution per @luwes's immediate concerns, re: theme dependencies.

@luwes luwes merged commit 5d1da39 into muxinc:main Aug 11, 2023
12 of 13 checks passed
@luwes luwes deleted the quality-selector branch August 11, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Quality Controls
2 participants