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

#1195: Stop the player and reset player state when close is called #1425

Merged

Conversation

themisterholliday
Copy link
Contributor

Overview

Only stop the player and reset the player state when close is called.

This would interfere a tiny bit with #1203
The fix for that should only be in the state object, so whichever is merged first, we can fix the other.

Related to #1195

Some other ideas

It could be good to save settings like timestamp for previously played podcasts and playback speed selection

Added a video but had to reduce the quality because of GH's limits

sfm_player_close.mov

Copy link

vercel bot commented Dec 4, 2023

@themisterholliday is attempting to deploy a commit to the Syntax Team on Vercel.

A member of the Team first needs to authorize it.

@themisterholliday
Copy link
Contributor Author

This should also fix: #1338

@themisterholliday
Copy link
Contributor Author

@stolinski You're handling this in your recent player work right?

@stolinski
Copy link
Collaborator

Yep! Apart of reworking minimize, close features will be ready this week.

@stolinski
Copy link
Collaborator

But I'll merge your changes into my branch. Instead of main.

@themisterholliday
Copy link
Contributor Author

Cool cool.
This can also be closed if it doesn't fit.
I know you merged the other PR, which may have covered this, so no worries from me however you want to handle these 👍

@stolinski stolinski changed the base branch from main to embe December 11, 2023 22:55
@stolinski stolinski merged commit 4b27e71 into syntaxfm:embe Dec 11, 2023
0 of 3 checks passed
stolinski added a commit that referenced this pull request Dec 15, 2023
* adds header icons

* Add hotkeys to the audio player (#1203)

* Add @svelte-put/shortcut as a dependency

* Implement player hotkeys

* Pause and reset show on player close

* Implement minimized player

* Move hotkeys into +layout and refactor into object

* Remove unused test file

* Implement hotkey modal

* Add vitest tests for formatShortcut util

* Rebuild lockfile after rebase

* Update modal styling

* Reset core-js version

---------

Co-authored-by: Scott Tolinski <[email protected]>

* moves status into it's own writable

* Stop the player and reset player state when close is called (#1425)

Co-authored-by: Scott Tolinski <[email protected]>

* adds more complex player status to player state for more control

* reworks hotkeys to fix play pause issues

* major work on hotkeys and adds share window

* modifies redirects hook to keep query params on redirect

* adds completes timestamp at time links

* slight tweak to hotkeys

* ficxes icon issue caused by merge

---------

Co-authored-by: Ratul Maharaj <[email protected]>
Co-authored-by: Craig Holliday <[email protected]>
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.

2 participants