Comments (7)
I agree, I'm working on this. Having fun figuring out Lion APIs and such... I'll post here when I've fixed this.
from hermes.
Found it! Does this do what you are expecting?
from hermes.
It doesn't play on restart, but I'm not sure it does exactly what I'm expecting (yes, I have high expectations). With the new version, on restart, Hermes isn't playing any station. I would expect it to stay on the same station (and preferably even the same song) on restart, but it is in a paused state. Ideally, after a restart, you can just press the play/pause key and it'll be as if you never restarted.
I'm not sure how exactly the APIs work, but I'm not sure you would even need to refer to Lion APIs – just switch Hermes to a paused state when the computer is about to shut down, and then Lion should automatically restore this paused state when you restart.
from hermes.
Pandora's API gives a link to a song, and this link expires after an amount of time. This means that when you reboot, you're not guaranteed that the link will work.
I can see, however, that it might be possible to try its best at restoring the previous state. It could certainly save off where
you were in the song and the list of future songs/station/whatnot. On restart it would then read off all this information and try to restore state based off of that.
It's very likely this restore will fail, however, because all of the links will have expired. You can't ask Pandora for a link to a specific song, so you'd have to throw away the saved songs and continue playing song on the current station. Does that sound reasonable?
from hermes.
That sounds very reasonable. I'm not sure how long this link lasts, but in the current stable version of Hermes I'm fairly certain I left my computer off for around 12 hours and it resumed playing when I turned it back on. I don't know if this is because Pandora's link still hadn't expired, or the whole song was just cached and Lion restored this cache on startup.
from hermes.
How does this build look to you?
from hermes.
Works great!
from hermes.
Related Issues (20)
- Non-undoable actions need a confirmation dialog ("tired of this song") HOT 4
- Feature Request: pause playback on computer start
- Playback stops, almost like songs are skipping
- Keeps playing music on its own in middle of night HOT 2
- Repeats the same song too close together HOT 10
- Playback skips constantly HOT 1
- Catalina Support? HOT 1
- Feature Request: Support for station "tuning" HOT 1
- No longer functions under Catalina HOT 1
- Feature Request: repeat/ loop song
- Hermes playing multiple stations at once after switching
- QuickMix station missing
- Synchronizing with Pandora Collection is not working HOT 1
- Internal Pandora error (Hermes 1.3.1) HOT 15
- Crashes with Segmentation fault: 11 HOT 2
- Popping audio on M1 MacBook Pro (macOS Monterey 12.2.1) HOT 2
- Feature Request: search radio stations
- Bundled Growl and Sparkle frameworks don't have arm64 part HOT 1
- "Internal Pandora Error" while using a proxy
- s3 mirror for 1.2.3 to 1.2.6 has been decomissioned
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hermes.