Packages

Transcoder API client library. This API converts video files into formats suitable for consumer distribution. For more information, see the Transcoder API overview.

Current section

Files

Jump to
google_api_transcoder lib google_api transcoder v1 model mux_stream.ex
Raw

lib/google_api/transcoder/v1/model/mux_stream.ex

# Copyright 2019 Google LLC
#
# 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.
# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.
defmodule GoogleApi.Transcoder.V1.Model.MuxStream do
@moduledoc """
Multiplexing settings for output stream.
## Attributes
* `container` (*type:* `String.t`, *default:* `nil`) - The container format. The default is `mp4` Supported streaming formats: - `ts` - `fmp4`- the corresponding file extension is `.m4s` Supported standalone file formats: - `mp4` - `mp3` - `ogg` - `vtt` See also: [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)
* `elementaryStreams` (*type:* `list(String.t)`, *default:* `nil`) - List of ElementaryStream.key values multiplexed in this stream.
* `encryptionId` (*type:* `String.t`, *default:* `nil`) - Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
* `fileName` (*type:* `String.t`, *default:* `nil`) - The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `mux_stream0000000123.ts`.
* `fmp4` (*type:* `GoogleApi.Transcoder.V1.Model.Fmp4Config.t`, *default:* `nil`) - Optional. `fmp4` container configuration.
* `key` (*type:* `String.t`, *default:* `nil`) - A unique key for this multiplexed stream.
* `segmentSettings` (*type:* `GoogleApi.Transcoder.V1.Model.SegmentSettings.t`, *default:* `nil`) - Segment settings for `ts`, `fmp4` and `vtt`.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:container => String.t() | nil,
:elementaryStreams => list(String.t()) | nil,
:encryptionId => String.t() | nil,
:fileName => String.t() | nil,
:fmp4 => GoogleApi.Transcoder.V1.Model.Fmp4Config.t() | nil,
:key => String.t() | nil,
:segmentSettings => GoogleApi.Transcoder.V1.Model.SegmentSettings.t() | nil
}
field(:container)
field(:elementaryStreams, type: :list)
field(:encryptionId)
field(:fileName)
field(:fmp4, as: GoogleApi.Transcoder.V1.Model.Fmp4Config)
field(:key)
field(:segmentSettings, as: GoogleApi.Transcoder.V1.Model.SegmentSettings)
end
defimpl Poison.Decoder, for: GoogleApi.Transcoder.V1.Model.MuxStream do
def decode(value, options) do
GoogleApi.Transcoder.V1.Model.MuxStream.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Transcoder.V1.Model.MuxStream do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end