Interface IHTTPStreamerAdapter


public interface IHTTPStreamerAdapter

IHTTPStreamerAdapter: HTTP streaming adapter interface

  • Method Details

    • canHandle

      boolean canHandle(String path)
      Return true if can handle request
      Parameters:
      path - request path
      Returns:
      true if can handle request
    • service

      void service(org.apache.mina.common.IoSession session, com.wowza.wms.server.RtmpRequestMessage req, com.wowza.wms.server.RtmpResponseMessage resp)
      Called to service each request
      Parameters:
      session - io session
      req - request
      resp - response
    • getProperties

      WMSProperties getProperties()
      Get properties
      Returns:
      properties
    • setProperties

      void setProperties(WMSProperties properties)
      Set properties
      Parameters:
      properties - properties
    • getHTTPStreamerItem

      com.wowza.wms.httpstreamer.model.HTTPStreamerItem getHTTPStreamerItem()
      Get the HTTP streamer item associated with this adapter
      Returns:
      HTTP streamer item
    • setHTTPStreamerItem

      void setHTTPStreamerItem(com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem)
      Set the HTTP streamer item associated with this adapter
      Parameters:
      httpStreamerItem - HTTP streamer item
    • getVHost

      IVHost getVHost()
      Get the vhost associated with this adapter
      Returns:
      vhost
    • setVHost

      void setVHost(IVHost vhost)
      Set the vhost associated with this adapter
      Parameters:
      vhost - vhost
    • init

      void init()
      Initialize the HTTP streaming adapter
    • shutdownSession

      void shutdownSession(IApplicationInstance appInstance, IHTTPStreamerSession session)
      Called when an HTTP streaming session is shutdown
      Parameters:
      appInstance - application instance
      session - HTTP streaming session
    • getIdleFrequency

      int getIdleFrequency()
      Get the idle frequency (milliseconds) for HTTP requests. This is how often the session is called back while active.
      Returns:
      idle frequency (milliseconds)
    • getAdapterName

      String getAdapterName()
      Get the name of this adapter
      Returns:
      name of this adapter
    • getID

      String getID()
      Get the id of this adapter
      Returns:
      id of this adapter
    • setID

      void setID(String id)
      Set the id of this adapter
      Parameters:
      id - id of this adapter
    • getSessionProtocol

      int getSessionProtocol()
      Set the adapter session protocol. See IHTTPStreamerSession.SESSIONPROTOCOL_*
      Returns:
      adapter session protocol
    • setSessionProtocol

      void setSessionProtocol(int sessionProtocol)
      Get the adapter session protocol. See IHTTPStreamerSession.SESSIONPROTOCOL_*
      Parameters:
      sessionProtocol - adapter session protocol
    • getLiveStreamPacketizer

      String getLiveStreamPacketizer(IApplicationInstance appInstance)
      Get the default live stream packetizer.
      Parameters:
      appInstance - application instance
    • getLiveStreamPacketizer

      String getLiveStreamPacketizer(IApplicationInstance appInstance, com.wowza.wms.httpstreamer.model.SegmentFormat segmentFormat)
      Get the default live stream packetizer.
      Parameters:
      appInstance - application instance
      segmentFormat - segmentFormat
    • getLiveStreamRepeater

      String getLiveStreamRepeater(IApplicationInstance appInstance)
      Get the default live stream repeater.
      Parameters:
      appInstance - application instance
    • getLiveStreamRepeater

      String getLiveStreamRepeater(IApplicationInstance appInstance, com.wowza.wms.httpstreamer.model.SegmentFormat segmentFormat)
      Get the default live stream repeater.
      Parameters:
      appInstance - application instance
      segmentFormat - segmentFormat