class Evostream::Commands::Create

Abstract class for create element

Constants

MANDATORY

Attributes

command[R]

Public Class Methods

new(commands = {}) click to toggle source
Calls superclass method Evostream::Commands::Command::new
# File lib/evostream/event/commands/create.rb, line 10
def initialize(commands = {})
  super(commands)
end

Private Instance Methods

bandwidths(param = 0) click to toggle source

The corresponding bandwidths for each stream listed in localStreamNames. Again, this can be a comma-delimited list

# File lib/evostream/event/commands/create.rb, line 33
def bandwidths(param = 0)
  "bandwidths=#{param}"
end
chunk_length(param = 10) click to toggle source

The length (in seconds) of fragments to be made

# File lib/evostream/event/commands/create.rb, line 56
def chunk_length(param = 10)
  "chunkLength=#{param}"
end
chunk_on_idr(param = 1) click to toggle source

If true, chunking is performed ONLY on IDR. Otherwise, chunking is performed whenever chunk length is achieved

# File lib/evostream/event/commands/create.rb, line 62
def chunk_on_idr(param = 1)
  "chunkOnIDR=#{param}"
end
cleanup_destination(param = 0) click to toggle source

If true, all manifest and fragment files in the target folder will be removed before DASH creation is started

# File lib/evostream/event/commands/create.rb, line 85
def cleanup_destination(param = 0)
  "cleanupDestination=#{param}"
end
dynamic_profile(param = 1) click to toggle source

Set this parameter to 1 (default) for a live DASH, otherwise set it to 0 for a VOD

# File lib/evostream/event/commands/create.rb, line 91
def dynamic_profile(param = 1)
  "dynamicProfile=#{param}"
end
group_name(param) click to toggle source

The name assigned to the DASH stream or group. If the localStreamNames parameter contains only one entry and groupName is not specified, groupName will have the value of the input stream name

# File lib/evostream/event/commands/create.rb, line 40
def group_name(param)
  "groupName=#{param}"
end
keep_alive(param = 1) click to toggle source

If true, the EMS will attempt to reconnect to the stream source if the connection is severed

# File lib/evostream/event/commands/create.rb, line 68
def keep_alive(param = 1)
  "keepAlive=#{param}"
end
local_stream_names(param = 'null') click to toggle source

The stream(s) that will be used as the input. This is a comma-delimited list of active stream names (local stream names)

# File lib/evostream/event/commands/create.rb, line 20
def local_stream_names(param = 'null')
  "localStreamNames=#{param}"
end
overwrite_destination(param = 1) click to toggle source

If true, it will allow overwrite of destination files

# File lib/evostream/event/commands/create.rb, line 73
def overwrite_destination(param = 1)
  "overwriteDestination=#{param}"
end
playlist_length(param = 10) click to toggle source

The number of fragments before the server starts to overwrite the older fragments. Used only when playlistType is 'rolling'. Ignored otherwise

# File lib/evostream/event/commands/create.rb, line 51
def playlist_length(param = 10)
  "playlistLength=#{param}"
end
playlist_type(param = 'appending') click to toggle source

Either `appending` or `rolling`

# File lib/evostream/event/commands/create.rb, line 45
def playlist_type(param = 'appending')
  "playlistType=#{param}"
end
stale_retention_count(param) click to toggle source

How many old files are kept besides the ones present in the current version of the playlist. Only applicable for rolling playlists

# File lib/evostream/event/commands/create.rb, line 79
def stale_retention_count(param)
  "staleRetentionCount=#{param}"
end
target_folder(param = 'null') click to toggle source

The folder where all the manifest and fragment files will be stored. This folder must be accessible by the DASH clients. It is usually in the web-root of the server

# File lib/evostream/event/commands/create.rb, line 27
def target_folder(param = 'null')
  "targetFolder=#{param}"
end