Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Add Chromecast to data tracking #72

Open
2 of 3 tasks
barbeau opened this issue Oct 2, 2020 · 3 comments
Open
2 of 3 tasks

Add Chromecast to data tracking #72

barbeau opened this issue Oct 2, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@barbeau
Copy link
Member

barbeau commented Oct 2, 2020

Is your feature request related to a problem? Please describe.
We should track for each event values related to how the user experiences the music.

Describe the solution you'd like
Per today's discussion, we should also be recording for each event:

  • Current volume
  • Capture Device Type (Headset, Headphone, or Bluetooth)
  • Chromecast in use or not for streaming music
@barbeau barbeau added the enhancement New feature or request label Oct 2, 2020
@barbeau barbeau added this to the Release to real participants milestone Oct 20, 2020
@BumbleFlash
Copy link

@barbeau Thank you for opening this. About volume tracking, I found a couple of solutions on StackOverflow to be really useful for monitoring current volume especially when the user changes the volume while using the app. Feel free to let me know your thoughts on implementing something similar to this if not, the same.
https://stackoverflow.com/a/18273761 (getting current volume)
https://stackoverflow.com/a/15292255 (listening to the volume button and monitor when the user adjusts volume)

@barbeau
Copy link
Member Author

barbeau commented Nov 6, 2020

I think we should do the following:

FYI, it looks like some of the other properties like connected output Bluetooth devices are accessible via AudioManager too:
https://developer.android.com/reference/android/media/AudioManager#getDevices(int)

...or for devices < API 23:
https://developer.android.com/reference/android/media/AudioManager#isBluetoothA2dpOn()

@BumbleFlash
Copy link

The current implementation tracks the volume and the device on which the user is currently listening to the song. The app can actively detect the device type even when the user continuously chooses to switch the output device.

However, per discussion today, we think the current implementation for tracking Bluetooth devices may not be the best way due to the variety of these devices. For example, measuring loudness could be a bit unreasonable when Android generalizes and classifies a Bluetooth speaker and a Bluetooth headphone as TYPE_BLUETOOTH_A2DP as the loudness measure could potentially be the same for both the devices for the same volume.

@barbeau barbeau changed the title Add volume, headphones, chromecast, and bluetooth presence to data tracking Add Chromecast to data tracking Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants