class Evostream::Commands::PushStream

This will try to push a local stream to an external destination. The pushed stream can only use the RTMP, RTSP or MPEG-TS unicast/multicast protocol.

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/push_stream.rb, line 11
def initialize(commands = {})
  super(commands)
end

Public Instance Methods

cmd() click to toggle source
Calls superclass method Evostream::Commands::Command#cmd
# File lib/evostream/event/commands/push_stream.rb, line 15
def cmd
  super
  "pushStream?params=#{encode64}"
end

Private Instance Methods

local_stream_name(param = '') click to toggle source

If provided, the stream will be given this name. Otherwise, a fallback techniqueis used to determine the stream name (based on the URI)

# File lib/evostream/event/commands/push_stream.rb, line 32
def local_stream_name(param = '')
  "localStreamName=#{param}"
end
target_stream_name(param = 'null') click to toggle source

The name of the stream at destination. If not provided, the target stream name willbe the same as the local stream name

# File lib/evostream/event/commands/push_stream.rb, line 38
def target_stream_name(param = 'null')
  "targetStreamName=#{param}"
end
uri(param = 'null') click to toggle source

TheURI of the external stream. Can be RTMP, RTSP or unicast/multicast (d) mpegts

# File lib/evostream/event/commands/push_stream.rb, line 26
def uri(param = 'null')
  "uri=#{param}"
end