Package com.wowza.wms.httpstreamer.model
Interface IHTTPStreamerAdapter
-
public interface IHTTPStreamerAdapter
IHTTPStreamerAdapter: HTTP streaming adapter interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canHandle(String path)
Return true if can handle requestString
getAdapterName()
Get the name of this adaptercom.wowza.wms.httpstreamer.model.HTTPStreamerItem
getHTTPStreamerItem()
Get the HTTP streamer item associated with this adapterString
getID()
Get the id of this adapterint
getIdleFrequency()
Get the idle frequency (milliseconds) for HTTP requests.String
getLiveStreamPacketizer(IApplicationInstance appInstance)
Get the default live stream packetizer.String
getLiveStreamPacketizer(IApplicationInstance appInstance, com.wowza.wms.httpstreamer.model.SegmentFormat segmentFormat)
Get the default live stream packetizer.String
getLiveStreamRepeater(IApplicationInstance appInstance)
Get the default live stream repeater.String
getLiveStreamRepeater(IApplicationInstance appInstance, com.wowza.wms.httpstreamer.model.SegmentFormat segmentFormat)
Get the default live stream repeater.WMSProperties
getProperties()
Get propertiesint
getSessionProtocol()
Set the adapter session protocol.IVHost
getVHost()
Get the vhost associated with this adaptervoid
init()
Initialize the HTTP streaming adaptervoid
service(org.apache.mina.common.IoSession session, com.wowza.wms.server.RtmpRequestMessage req, com.wowza.wms.server.RtmpResponseMessage resp)
Called to service each requestvoid
setHTTPStreamerItem(com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem)
Set the HTTP streamer item associated with this adaptervoid
setID(String id)
Set the id of this adaptervoid
setProperties(WMSProperties properties)
Set propertiesvoid
setSessionProtocol(int sessionProtocol)
Get the adapter session protocol.void
setVHost(IVHost vhost)
Set the vhost associated with this adaptervoid
shutdownSession(IApplicationInstance appInstance, IHTTPStreamerSession session)
Called when an HTTP streaming session is shutdown
-
-
-
Method Detail
-
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 sessionreq
- requestresp
- 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 instancesession
- 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 instancesegmentFormat
- 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 instancesegmentFormat
- segmentFormat
-
-