1// Copyright 2021 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4// 5// **** DO NOT EDIT - this .proto was automatically generated. **** 6syntax = "proto3"; 7 8package cast.common; 9 10option optimize_for = LITE_RUNTIME; 11 12// Generic Cast application config. 13message ApplicationConfig { 14 // Cast application ID. 15 string app_id = 1; 16 17 // Cast application name. 18 string display_name = 2; 19 20 // Actual application config based on the type of runtime hosting it. 21 oneof config { 22 CastLiteApplicationConfig cast_lite_app_config = 3; 23 CastWebApplicationConfig cast_web_app_config = 4; 24 NativeApplicationConfig native_app_config = 5; 25 } 26} 27 28// Config for applications running in CastLite runtime. 29message CastLiteApplicationConfig { 30 // Cast application URL (https). Will be augumented with URL rewrite rules to 31 // add appropriate headers/parameters. 32 string url = 1; 33 // Below definitions are used only with legacy MSP API implementation of 34 // CastLite. 35 string api_url = 2; 36 string api_key = 3; 37 bool uses_server_session = 4; 38 bool uses_grpc = 5; 39 bool is_default_audio_receiver = 6; 40 string session_id = 7; 41} 42 43// Config for applications running in Cast Web runtime. 44message CastWebApplicationConfig { 45 // Cast application URL (https). Will be augumented with URL rewrite rules to 46 // add appropriate headers/parameters. 47 string url = 1; 48 49 // Collection of requested settings for the application. 50 ApplicationSettings settings = 2; 51 52 message ApplicationSettings { 53 // Display settings requested by the application. 54 DisplaySettings display_settings = 1; 55 } 56 57 // Contains display settings for an application. 58 message DisplaySettings { 59 enum DisplayHeight { 60 HEIGHT_NATIVE = 0; // The native resolution of the display. 61 HEIGHT_720P = 1; // Enforce 720p resolution of the display. 62 } 63 64 // Indicates the resolution height that the application supports/prefers. 65 // The application may attempt to force 720p or render at the native 66 // resolution of the display. If the value is omitted, the 67 // default is HEIGHT_NATIVE. 68 DisplayHeight display_height = 1; 69 } 70} 71 72// Config for applications running in native runtime. 73message NativeApplicationConfig { 74 // Cast application URL (https). 75 // NOTE: this field is added ONLY FOR TESTING purposes. Proper integration 76 // with native runtimes is still TBD. 77 string url = 1; 78} 79