MEDIA SESSION SERVICE (dumpsys media_session)

6 sessions listeners.
Global priority session is com.android.server.telecom/HeadsetMediaButton (userId=0)
  HeadsetMediaButton com.android.server.telecom/HeadsetMediaButton (userId=0)
    ownerPid=567, ownerUid=1000, userId=0
    package=com.android.server.telecom
    launchIntent=null
    mediaButtonReceiver=null
    active=false
    flags=65537
    rating type=0
    controllers: 0
    state=null
    audioAttrs=AudioAttributes: usage=USAGE_VOICE_COMMUNICATION content=CONTENT_TYPE_SPEECH flags=0x800 tags= bundle=null
    volumeType=LOCAL, controlType=ABSOLUTE, max=0, current=0, volumeControlId=null
    metadata: null
    queueTitle=null, size=0
User Records:
Record for full_user=0
  Volume key long-press listener: null
  Volume key long-press listener package: 
  Media key listener: null
  Media key listener package: 
  OnMediaKeyEventDispatchedListener: added 0 listener(s)
  OnMediaKeyEventSessionChangedListener: added 2 listener(s)
    from com.android.bluetooth
    from com.android.bluetooth
  Last MediaButtonReceiver: null
  Media button session is null
  Sessions Stack - have 7 sessions:
    BluetoothMediaBrowserService com.google.android.bluetooth/BluetoothMediaBrowserService (userId=0)
      ownerPid=914, ownerUid=1002, userId=0
      package=com.google.android.bluetooth
      launchIntent=null
      mediaButtonReceiver=null
      active=false
      flags=3
      rating type=0
      controllers: 0
      state=PlaybackState {state=ERROR(7), position=0, buffered position=0, speed=0.0, updated=13933, actions=0, custom actions=[], active item id=-1, error=Bluetooth audio disconnected}
      audioAttrs=AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null
      volumeType=LOCAL, controlType=ABSOLUTE, max=0, current=0, volumeControlId=null
      metadata: null
      queueTitle=Now Playing, size=0
    BluetoothMediaBrowserService com.google.android.bluetooth/BluetoothMediaBrowserService (userId=0)
      ownerPid=914, ownerUid=1002, userId=0
      package=com.google.android.bluetooth
      launchIntent=null
      mediaButtonReceiver=null
      active=false
      flags=3
      rating type=0
      controllers: 0
      state=PlaybackState {state=ERROR(7), position=0, buffered position=0, speed=0.0, updated=14052, actions=0, custom actions=[], active item id=-1, error=Bluetooth audio disconnected}
      audioAttrs=AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null
      volumeType=LOCAL, controlType=ABSOLUTE, max=0, current=0, volumeControlId=null
      metadata: null
      queueTitle=Now Playing, size=0
    BluetoothMediaBrowserService com.google.android.bluetooth/BluetoothMediaBrowserService (userId=0)
      ownerPid=914, ownerUid=1002, userId=0
      package=com.google.android.bluetooth
      launchIntent=null
      mediaButtonReceiver=null
      active=false
      flags=3
      rating type=0
      controllers: 0
      state=PlaybackState {state=ERROR(7), position=0, buffered position=0, speed=0.0, updated=18416, actions=0, custom actions=[], active item id=-1, error=Bluetooth audio disconnected}
      audioAttrs=AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null
      volumeType=LOCAL, controlType=ABSOLUTE, max=0, current=0, volumeControlId=null
      metadata: null
      queueTitle=Now Playing, size=0
    BluetoothMediaBrowserService com.google.android.bluetooth/BluetoothMediaBrowserService (userId=0)
      ownerPid=914, ownerUid=1002, userId=0
      package=com.google.android.bluetooth
      launchIntent=null
      mediaButtonReceiver=null
      active=false
      flags=3
      rating type=0
      controllers: 0
      state=PlaybackState {state=ERROR(7), position=0, buffered position=0, speed=0.0, updated=18435, actions=0, custom actions=[], active item id=-1, error=Bluetooth audio disconnected}
      audioAttrs=AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null
      volumeType=LOCAL, controlType=ABSOLUTE, max=0, current=0, volumeControlId=null
      metadata: null
      queueTitle=Now Playing, size=0
    YouTube playerlib com.google.android.youtube/YouTube playerlib (userId=0)
      ownerPid=1711, ownerUid=10139, userId=0
      package=com.google.android.youtube
      launchIntent=null
      mediaButtonReceiver=MBR {pi=PendingIntent{efc425: PendingIntentRecord{d77f9fa com.google.android.youtube broadcastIntent}}, componentName=ComponentInfo{com.google.android.youtube/com.google.android.libraries.youtube.player.ui.mediasession.MediaButtonIntentReceiverProvider$DefaultMediaButtonIntentReceiver}, type=1, pkg=com.google.android.youtube}
      active=false
      flags=3
      rating type=2
      controllers: 0
      state=PlaybackState {state=NONE(0), position=0, buffered position=0, speed=1.0, updated=21008, actions=8192, custom actions=[], active item id=-1, error=null}
      audioAttrs=AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null
      volumeType=LOCAL, controlType=ABSOLUTE, max=0, current=0, volumeControlId=null
      metadata: null
      queueTitle=null, size=0
    YouTube playerlib com.google.android.apps.youtube.music/YouTube playerlib (userId=0)
      ownerPid=1636, ownerUid=10156, userId=0
      package=com.google.android.apps.youtube.music
      launchIntent=null
      mediaButtonReceiver=MBR {pi=PendingIntent{b9bcbab: PendingIntentRecord{aa60208 com.google.android.apps.youtube.music broadcastIntent}}, componentName=ComponentInfo{com.google.android.apps.youtube.music/androidx.media.session.MediaButtonReceiver}, type=1, pkg=com.google.android.apps.youtube.music}
      active=false
      flags=3
      rating type=2
      controllers: 0
      state=PlaybackState {state=ERROR(7), position=0, buffered position=0, speed=1.0, updated=21395, actions=11828, custom actions=[], active item id=-1, error=Please sign in to YouTube Music.}
      audioAttrs=AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null
      volumeType=LOCAL, controlType=ABSOLUTE, max=0, current=0, volumeControlId=null
      metadata: null
      queueTitle=null, size=0
    PodcastPlayer com.google.android.googlequicksearchbox/PodcastPlayer (userId=0)
      ownerPid=1698, ownerUid=10132, userId=0
      package=com.google.android.googlequicksearchbox
      launchIntent=null
      mediaButtonReceiver=null
      active=true
      flags=3
      rating type=0
      controllers: 5
      state=PlaybackState {state=NONE(0), position=0, buffered position=0, speed=0.0, updated=23235, actions=2409991, custom actions=[Action:mName='Rewind 10 seconds, mIcon=2131234345, mExtras=null, Action:mName='Fast forward 30 second, mIcon=2131234125, mExtras=null], active item id=-1, error=null}
      audioAttrs=AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null
      volumeType=LOCAL, controlType=ABSOLUTE, max=0, current=0, volumeControlId=null
      metadata: size=0, description=null, null, null
      queueTitle=null, size=0
Audio playback (lastly played comes first)
  uid=10192 packages=md.obsidian 
  uid=10168 packages=com.android.systemui 
Media session config:
  media_button_receiver_fgs_allowlist_duration_ms: [cur: 10000, def: 10000]
  media_session_calback_fgs_allowlist_duration_ms: [cur: 10000, def: 10000]
  media_session_callback_fgs_while_in_use_temp_allow_duration_ms: [cur: 10000, def: 10000]
