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

Version Path
rtsp_server-0.1.2 lib/rtsp/stream_server.rb
rtsp_server-0.1.1 lib/rtsp/stream_server.rb
rtsp_server-0.1.0 lib/rtsp/stream_server.rb
rtsp_server-0.0.9-universal-java lib/rtsp/stream_server.rb
rtsp_server-0.0.9 lib/rtsp/stream_server.rb
rtsp_server-0.0.8-universal-java lib/rtsp/stream_server.rb
rtsp_server-0.0.8 lib/rtsp/stream_server.rb
rtsp_server-0.0.7-universal-java lib/rtsp/stream_server.rb
rtsp_server-0.0.7 lib/rtsp/stream_server.rb
rtsp_server-0.0.6-universal-java lib/rtsp/stream_server.rb
rtsp_server-0.0.6 lib/rtsp/stream_server.rb
rtsp_server-0.0.5 lib/rtsp/stream_server.rb
rtsp_server-0.0.4-universal-java lib/rtsp/stream_server.rb
rtsp_server-0.0.4 lib/rtsp/stream_server.rb
rtsp_server-0.0.3-universal-java lib/rtsp/stream_server.rb
rtsp_server-0.0.3 lib/rtsp/stream_server.rb
rtsp_server-0.0.2-universal-java lib/rtsp/stream_server.rb
rtsp_server-0.0.2 lib/rtsp/stream_server.rb
rtsp_server-0.0.1 lib/rtsp/stream_server.rb