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

Add ListenWithMe Sync Functionality #5

Open
RandoSigma opened this issue Jan 7, 2023 · 0 comments
Open

Add ListenWithMe Sync Functionality #5

RandoSigma opened this issue Jan 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@RandoSigma
Copy link
Owner

I've got some ideas on how to accommodate this functionality. If the app is started being aware of GET arguments describing the play-list and the UTC timestamp when it was begun, it should be possible for a second browser to be started, calculate UTC difference, apply that to the playback time of the tracks in the play-list until it catches up with the initial arguments.

Of course, the sync can never be exact due to all the variances between endpoints, their access to accurate time, and all the other services between the two listeners with their individual web experiences. We can use UTC time as a common element and we DO know the play-time of each track thanks to the code.

Timing Chart:

User #1 sets a "ListenWithMe" flag on their session. When they hit the play button the app will offer them a copy-link to an URL which they can paste into any chat environment. The string they chat will include a href to others to "follow" them in playback.

User #2 sees the link in a chat session. Clicks it to launch a web-browser which pulls the arguments including UTC start time and the app will then attempt to load the play-list, check the time of each track, subtract time from the Now() until the UTC is relatively close. The release the playback to autoplay.

@RandoSigma RandoSigma added the enhancement New feature or request label Jan 7, 2023
@RandoSigma RandoSigma self-assigned this Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant