Skip to content

Imagekit video player#1

Open
aman051197 wants to merge 54 commits intomainfrom
dev
Open

Imagekit video player#1
aman051197 wants to merge 54 commits intomainfrom
dev

Conversation

@aman051197
Copy link
Collaborator

No description provided.

aman-imagekit and others added 30 commits June 9, 2025 16:23
Co-authored-by: Abhinav Dhiman <ahnv@users.noreply.github.com>
@ahnv
Copy link
Member

ahnv commented Jan 22, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 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".

Comment on lines 292 to 295
inputs.forEach((src) => {
if (typeof src === 'object' && src !== null && !this.hasPreparedSrc(src)) {
ensurePrepared(src as AugmentedSourceOptions).src = prepared[0].src;
}

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Comment on lines 347 to 351
.finally(() => {
// hide the spinner and show the big play button
bigPlay && bigPlay.show();
this.player.removeClass('vjs-waiting');
spinner?.el()?.setAttribute('aria-hidden', 'true');

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@aman051197
Copy link
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link

To use Codex here, create a Codex account and connect to github.

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.

3 participants

Comments