Class: Google::Apis::YoutubeV3::IngestionInfo
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::IngestionInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb
Overview
Describes information necessary for ingesting an RTMP, HTTP, or SRT stream.
Instance Attribute Summary collapse
-
#backup_ingestion_address ⇒ String
The backup ingestion URL that you should use to stream video to YouTube.
-
#ingestion_address ⇒ String
The primary ingestion URL that you should use to stream video to YouTube.
-
#rtmps_backup_ingestion_address ⇒ String
This ingestion url may be used instead of backupIngestionAddress in order to stream via RTMPS.
-
#rtmps_ingestion_address ⇒ String
This ingestion url may be used instead of ingestionAddress in order to stream via RTMPS.
-
#stream_name ⇒ String
The stream name that YouTube assigns to the video stream.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IngestionInfo
constructor
A new instance of IngestionInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IngestionInfo
Returns a new instance of IngestionInfo.
3389 3390 3391 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3389 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_ingestion_address ⇒ String
The backup ingestion URL that you should use to stream video to YouTube. You
have the option of simultaneously streaming the content that you are sending
to the ingestionAddress to this URL.
Corresponds to the JSON property backupIngestionAddress
3361 3362 3363 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3361 def backup_ingestion_address @backup_ingestion_address end |
#ingestion_address ⇒ String
The primary ingestion URL that you should use to stream video to YouTube. You
must stream video to this URL. Depending on which application or tool you use
to encode your video stream, you may need to enter the stream URL and stream
name separately or you may need to concatenate them in the following format: *
STREAM_URL/STREAM_NAME*
Corresponds to the JSON property ingestionAddress
3370 3371 3372 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3370 def ingestion_address @ingestion_address end |
#rtmps_backup_ingestion_address ⇒ String
This ingestion url may be used instead of backupIngestionAddress in order to
stream via RTMPS. Not applicable to non-RTMP streams.
Corresponds to the JSON property rtmpsBackupIngestionAddress
3376 3377 3378 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3376 def rtmps_backup_ingestion_address @rtmps_backup_ingestion_address end |
#rtmps_ingestion_address ⇒ String
This ingestion url may be used instead of ingestionAddress in order to stream
via RTMPS. Not applicable to non-RTMP streams.
Corresponds to the JSON property rtmpsIngestionAddress
3382 3383 3384 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3382 def rtmps_ingestion_address @rtmps_ingestion_address end |
#stream_name ⇒ String
The stream name that YouTube assigns to the video stream.
Corresponds to the JSON property streamName
3387 3388 3389 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3387 def stream_name @stream_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3394 3395 3396 3397 3398 3399 3400 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 3394 def update!(**args) @backup_ingestion_address = args[:backup_ingestion_address] if args.key?(:backup_ingestion_address) @ingestion_address = args[:ingestion_address] if args.key?(:ingestion_address) @rtmps_backup_ingestion_address = args[:rtmps_backup_ingestion_address] if args.key?(:rtmps_backup_ingestion_address) @rtmps_ingestion_address = args[:rtmps_ingestion_address] if args.key?(:rtmps_ingestion_address) @stream_name = args[:stream_name] if args.key?(:stream_name) end |