Conversation
…teTextTrack options
…dded github pages configurations.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 785dd49517
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| inputs.forEach((src) => { | ||
| if (typeof src === 'object' && src !== null && !this.hasPreparedSrc(src)) { | ||
| ensurePrepared(src as AugmentedSourceOptions).src = prepared[0].src; | ||
| } |
There was a problem hiding this comment.
Preserve per-source prepared URLs
When multiple sources are passed (e.g., different qualities or HLS+MP4), this loop writes prepared[0].src into every input’s prepared.src. If the caller reuses the same source objects later, hasPreparedSrc will short‑circuit prepareSource and all entries will resolve to the first URL, breaking source selection and potentially serving the wrong file. Each input should get its corresponding prepared[i].src so cached preparation stays aligned with the source array.
Useful? React with 👍 / 👎.
| .finally(() => { | ||
| // hide the spinner and show the big play button | ||
| bigPlay && bigPlay.show(); | ||
| this.player.removeClass('vjs-waiting'); | ||
| spinner?.el()?.setAttribute('aria-hidden', 'true'); |
There was a problem hiding this comment.
Guard spinner teardown against stale src() calls
The finally block always hides the spinner and shows the big play button, even if a newer src() call is still in flight. If a user switches sources quickly or an earlier request resolves after a later one starts, the older promise will flip the UI to “not loading” while the latest source is still preparing, causing incorrect loading state. Consider checking myCallId === this.srcCallVersion before toggling UI state here.
Useful? React with 👍 / 👎.
…tTrack(), improved subtitle generation logic, fixed code to display on github pages
…nd UI improvements
…eaner presentation
… enhance Vue support, and improve keyboard shortcuts functionality
… logic with content change detection
…with videojs positioning of subtitles
… Promise.all for concurrent loading
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
No description provided.