Avi Drissman | d387f092 | 2022-09-14 20:51:31 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors |
Guohui Deng | 9360e3c | 2018-07-03 14:54:02 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | module media.mojom; |
| 6 | |
Guohui Deng | 9a8df28 | 2019-04-12 19:11:44 | [diff] [blame] | 7 | struct CastApplicationMediaInfo { |
| 8 | // Used by multizone Playback. |
| 9 | // Can be empty string if WebContents isn't for a WebApplication. |
| 10 | string application_session_id; |
| 11 | // True if WebApplication has MIXER_AUDIO feature enabled. |
| 12 | // This value is set in Chromecast internal code. |
| 13 | bool mixer_audio_enabled; |
Yuchen Liu | 3b9cc5a | 2024-01-09 18:24:14 | [diff] [blame] | 14 | // True if the session is an audio only session. |
| 15 | bool is_audio_only_session; |
Guohui Deng | 9a8df28 | 2019-04-12 19:11:44 | [diff] [blame] | 16 | }; |
| 17 | |
Guohui Deng | 9360e3c | 2018-07-03 14:54:02 | [diff] [blame] | 18 | // This is a service attached to RenderFrameHost. |
Guohui Deng | 9a8df28 | 2019-04-12 19:11:44 | [diff] [blame] | 19 | interface CastApplicationMediaInfoManager { |
| 20 | // Returns the CastApplicationMediaInfo associated with the |
| 21 | // RenderFrameHost, i.e., the application. |
| 22 | GetCastApplicationMediaInfo() => |
| 23 | (CastApplicationMediaInfo cast_application_media_info); |
| 24 | }; |