jscholes / accessify-prototype Goto Github PK
View Code? Open in Web Editor NEWPrototype of an accessible control interface for Spotify on Windows
License: Apache License 2.0
Prototype of an accessible control interface for Spotify on Windows
License: Apache License 2.0
Currently, due to the use of HTTP long polling, we receive playback events from Spotify in near-realtime. This allows the GUI to be kept up-to-date when playing, pausing and skipping tracks. Unfortunately, when seeking forward results in a new track being played, the HTTP connection remains open and the GUI doesn't update accordingly.
This isn't a significant problem at the moment, partly because the use case of seeking through the playback queue is a pretty obscure one. However, in the future when we need to be absolutely sure when one song has ended and another one has begun, it will become necessary to find a fix for this.
Notes:
Currently, we allow an unlimited number of playback commands to be executed in succession. This probably isn't a good idea and so far, has flagged up the following problem:
Currently, the workflow for dispatching Spotify state change events looks like this:
With this workflow in place, a race condition makes it possible to toggle the playback state multiple times before the spotify.EventManager loop has continued round to create a new polling connection, meaning the playback state inside listeners becomes out of date until another playback command has been issued.
The proposed workflow would look like:
Meanwhile, in the event consumer thread:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.