// Copyright 2022 LTN Global Communications, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package tv.make.api; import "type/geolocation.proto"; import "google/protobuf/timestamp.proto"; option go_package = "git.ltnglobal.com/make.tv/genproto/api;api"; message VideoAsset { message Metadata { // The unique identifier of the metadata entry. string id = 1; // Offset of the metadata from the video's start in seconds. double time_seconds = 3; // The value of the metadata. oneof metadata_value { int32 video_width_pixels = 4; int32 video_height_pixels = 5; string video_codec = 6; double video_fps = 7; int32 video_bitrate_bps = 8; string audio_codec = 9; int32 audio_samplerate_hz = 10; int32 audio_bitrate_bps = 11; int32 audio_channel_count = 12; tv.make.api.type.GeoLocation geo_location = 13; string production_id = 14; string streamtag_id = 15; bool completed_with_error = 16; } } // The unique identifier of the asset string id = 1; // The unique identifier of the owning team string team_id = 2; // When has this asset been created. // // Output only. google.protobuf.Timestamp create_time = 3; // When has this asset been modified. // // Output only. google.protobuf.Timestamp update_time = 4; // When this asset is going to expire. // // Output only. google.protobuf.Timestamp expire_time = 5; // The user who created this asset. // // Output only. string creator_id = 6; // The input name that produced this asset. string input_name = 7; // The input id that produced this asset. string input_id = 15; // The input type that produced this asset. string input_type = 16; // Duration of the asset in seconds. double duration_seconds = 8; // The size of the asset in bytes. // // Output only. uint64 size_bytes = 11; // The URL of the video. string url = 9; // The mime-type of the video. string mime_type = 10; // The URL of the thumbnail. // // Not provided within list requests. // Output only. string thumbnail_url = 12; // Whether or not the asset is still being recorded. // // Subsequent requests may return a different value for duration_seconds. bool recording = 13; // List of metadata. // // Not provided within list requests. // Output only. repeated Metadata metadata = 14; }