Sha256: f9a093f12bcc9f77cc19c456fce489d57010ef0b67e70d6b31d887562b70b486
Contents?: true
Size: 779 Bytes
Versions: 19
Compression:
Stored size: 779 Bytes
Contents
require_relative 'socat_streaming' require 'singleton' module RTSP class StreamServer include Singleton include SocatStreaming def initialize @stream_module = SocatStreaming @sessions = {} @pids = {} @rtcp_threads = {} @rtp_timestamp = 2612015746 @rtp_sequence = 21934 @rtp_map = [] @fmtp = [] @source_ip = [] @source_port = [] end # Sets the stream module to be used by the stream server. # # @param [Module] Module name. def stream_module= module_name @stream_module = module_name self.class.send(:include, module_name) end # Gets the current stream_module # # @return [Module] Module name. def stream_module @stream_module end end end
Version data entries
19 entries across 19 versions & 1 rubygems