Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

amtins
Copy link
Member

@amtins amtins commented Sep 22, 2025

Description

Resolves #94 by adding the ability to replay the media when it reaches the end. This feature relies on the media that was previously loaded locally. The reason is that when the receiver reaches the end of playback, the media session is removed.

Changes Made

  • update the play function to allow reloading the media when it reaches the end of playback and the replay button is shown
  • update the ended function to return undefined if no source is loaded
  • update unit tests

Checklist

  • I have followed the project's style and contribution guidelines.
  • I have performed a self-review of my own changes.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.

Resolves #94 by adding the ability to replay the media when it reaches the end.
This feature relies on the media that was previously loaded locally. The reason
is that when the receiver reaches the end of playback, the media session is
removed.

- update the `play` function to allow reloading the media when it reaches the
end of playback and the `replay` button is shown
- update the `ended` function to return `undefined` if no source is loaded
- update unit tests
Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 96.88% 4412 / 4554
🔵 Statements 96.88% 4412 / 4554
🔵 Functions 94.39% 320 / 339
🔵 Branches 88.44% 528 / 597
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/google-cast-sender/src/google-cast-tech.js 88.12% 79.83% 86.3% 88.12% 30-31, 70-71, 101-107, 233-238, 253-254, 284-299, 347-348, 357-358, 413-414, 449, 454-455, 467-468, 497-498, 508-509, 541-542, 552-553, 581-600, 641-642, 668-669, 687, 731-732, 768-769, 795-796, 839-840, 843-844, 855-856, 859-860, 889-890, 903-904
Generated in workflow #220 for commit 5068969 by the Vitest Coverage Report Action

Copy link

PR Preview Action v1.6.2

🚀 View preview at
https://SRGSSR.github.io/pillarbox-web-suite/pr-preview/pr-104/

Built to branch gh-pages at 2025-09-22 13:01 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Member

@jboix jboix left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Chromecast sender implement replay
2 participants