-
-
Notifications
You must be signed in to change notification settings - Fork 29
Synchronize airplay volume #1071
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
base: SpotifyVolumeReflection
Are you sure you want to change the base?
Conversation
| 'drift_in_seconds': 2, # allow this number of frames of drift away from exact synchronisation before attempting to correct it | ||
| 'resync_threshold_in_seconds': 0, # a synchronisation error greater than this will cause resynchronisation; 0 disables it | ||
| 'log_verbosity': "diagnostics", # "none" means no debug verbosity, "diagnostics" is most verbose. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log file contained warnings about all of these values, it now has no complaints
772cb10 to
ad8df1e
Compare
|
This will require some internal debate before merging, but I'm going to suggest this is ready for review even if not ready for merging |
7de343e to
e83de61
Compare
e83de61 to
7fc8fd7
Compare
94d957b to
672fbaf
Compare
9e275c2 to
39d9455
Compare
… most of the changes to the metadata script
…side, combine both prior volumes into a more authoritative "shared volume" that is checked against as the authority for what is true or what should become true
…so they each call their own function
swap from debug prints to loggers add commented out WIP of a direct house.json reader
Gate a few things in the vol script better
…ructor and the kwargs, update documentation
…events in the queue will instantly reflect their requested changes rather than waiting for 1-2 seconds due to the time.sleep()
…and linting practices
Change names of attributes in spotify_connect.py Update documentation in volume_synchronizer.py
Change variable names Add VolEvent enum
24a5664 to
4d2b723
Compare
672fbaf to
66e537d
Compare
Add more docs Rename some classes, attributes, and variables
cc23833 to
4cfeb14
Compare
| # In any future MPRIS based volume synchronizers, you can check if self.mpris.CanControl is true and then potentially directly set self.mpris.Volume | ||
| # Note that we cannot do this due to this line: <property name='Volume' type='d' access='read'/> | ||
| # That exists in the MPRIS config xml at https://github.com/mikebrady/shairport-sync/blob/master/org.mpris.MediaPlayer2.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll either have to make a PR in shairport-sync or move to a new implementation to make this vol sync a good user experience
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since shareport-sync is extremely well maintained I would suggest the PR route.
4c543f7 to
7b41571
Compare
61789c5 to
6d89922
Compare
What does this change intend to accomplish?
Does the same as #1063, but for airplay
Airplay does not allow outside sources change the volume of the airplay host, so it's a one way street this time
Checklist
./scripts/test