Class: WscSdk::Templates::WowzaStreamTarget

Inherits:
ModelTemplate show all
Defined in:
lib/wsc_sdk/templates/wowza_stream_target.rb

Overview

Templates for generating Wowza Stream Targets

Class Method Summary collapse

Methods inherited from ModelTemplate

merge

Class Method Details

.akamai(name, location, modifiers = {}) ⇒ Object

A template to build an RTMP/PULL transcoder

Parameters:

  • name (String)

    The name of the transcoder

  • location (WscSdk::Enums::BroadcastLocation)

    The geographic region for the stream target origin.

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

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



47
48
49
50
51
52
53
# File 'lib/wsc_sdk/templates/wowza_stream_target.rb', line 47

def self.akamai(name, location, modifiers={})
  self.merge({
    name:                         name,
    provider:                     WscSdk::Enums::WowzaProvider::AKAMAI,
    location:                     location
  }, modifiers)
end

.akamai_cupertino(name, secure_ingest, cors, modifiers = {}) ⇒ Object

A template to build an RTMP/PULL transcoder

Parameters:

  • name (String)

    The name of the transcoder

  • secure_ingest (Boolean)

    An indication if the stream target shoudl use secure ingest.

  • cors (Boolean)

    An indication if the stream target shoudl use cors headers.

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

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



27
28
29
30
31
32
33
34
# File 'lib/wsc_sdk/templates/wowza_stream_target.rb', line 27

def self.akamai_cupertino(name, secure_ingest, cors, modifiers={})
  self.merge({
    name:                         name,
    provider:                     WscSdk::Enums::WowzaProvider::AKAMAI_CUPERTINO,
    use_secure_ingest:            secure_ingest,
    use_cors:                     cors
  }, modifiers)
end