Class: Evostream::Commands::PushStream

Inherits:
Command
  • Object
show all
Defined in:
lib/evostream/event/commands/push_stream.rb

Overview

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.

Constant Summary collapse

MANDATORY =
%w[uri].freeze

Instance Method Summary collapse

Methods inherited from Command

descendants

Constructor Details

#initialize(commands = {}) ⇒ PushStream

Returns a new instance of PushStream.



11
12
13
# File 'lib/evostream/event/commands/push_stream.rb', line 11

def initialize(commands = {})
  super(commands)
end

Instance Method Details

#cmdObject



15
16
17
18
# File 'lib/evostream/event/commands/push_stream.rb', line 15

def cmd
  super
  "pushStream?params=#{encode64}"
end