Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
..
public 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
BUILD.gn 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
COMMON_METADATA 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
DEPS 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
DIR_METADATA 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
OWNERS 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
README.md 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
audio_focus_manager.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
audio_focus_manager.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
audio_focus_manager_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
audio_focus_request.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
audio_focus_request.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
controlling_media_playback.md 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
media_controller.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
media_controller.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
media_controller_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
media_session_service_impl.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
media_session_service_impl.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
media_session_service_impl_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago

README.md

Media Session

Media Session manages the media session and audio focus for playback across the entire system.

Clients can use the Audio Focus API to request audio focus and observe changes through AudioFocusObserver. The Media Session API can be used to control playback and observe changes through MediaSessionObserver.

For more details about controlling playback see controlling Media Playback.

TODO(beccahughes): Write docs about requesting audio focus.

Media Session IDs

The Media Session service uses base::UnguessableToken for a number of different reasons, these are:

  • Request IDs: These identify a single media session
  • Group IDs: These group together a number of media sessions that should share focus, this is usually per-app.
  • Source IDs: These identity a user/profile that created a media session

Every media session has its own unique request ID and it may also have a group ID and a source ID.