Method: WscSdk::Templates::LiveStream.wse_multi_bitrate

Defined in:
lib/wsc_sdk/templates/live_stream.rb

.wse_multi_bitrate(name, width, height, modifiers = {}) ⇒ Object

A template to build a Wowza Streaming Engine Live Stream with single-bitrate delivery

Parameters:

  • name (String)

    The name of the live stream.

  • width (Integer)

    The width of the largest rendition of the stream.

  • height (Integer)

    The height of the largest rendition of the stream.

  • modifiers (Hash) (defaults to: {})

    A hash of key/value modifiers to change data in the template.



53
54
55
56
57
58
59
60
61
62
63
# File 'lib/wsc_sdk/templates/live_stream.rb', line 53

def self.wse_multi_bitrate(name, width, height, modifiers={})
  self.merge({
    name:                       name,
    encoder:                    WscSdk::Enums::Encoder::WOWZA_STREAMING_ENGINE,
    broadcast_location:         WscSdk::Enums::BroadcastLocation::US_WEST_CALIFORNIA,
    aspect_ratio_width:         width,
    aspect_ratio_height:        height,
    delivery_type:              WscSdk::Enums::DeliveryType::MULTI_BITRATE,
    delivery_method:            WscSdk::Enums::DeliveryMethod::PUSH
  }, modifiers)
end