Package com.wowza.wms.httpstreamer.model
Interface IHTTPStreamerAdapter
public interface IHTTPStreamerAdapter
IHTTPStreamerAdapter: HTTP streaming adapter interface
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if can handle requestGet the name of this adaptercom.wowza.wms.httpstreamer.model.HTTPStreamerItemGet the HTTP streamer item associated with this adaptergetID()Get the id of this adapterintGet the idle frequency (milliseconds) for HTTP requests.getLiveStreamPacketizer(IApplicationInstance appInstance) Get the default live stream packetizer.getLiveStreamPacketizer(IApplicationInstance appInstance, com.wowza.wms.httpstreamer.model.SegmentFormat segmentFormat) Get the default live stream packetizer.getLiveStreamRepeater(IApplicationInstance appInstance) Get the default live stream repeater.getLiveStreamRepeater(IApplicationInstance appInstance, com.wowza.wms.httpstreamer.model.SegmentFormat segmentFormat) Get the default live stream repeater.Get propertiesintSet the adapter session protocol.getVHost()Get the vhost associated with this adaptervoidinit()Initialize the HTTP streaming adaptervoidservice(org.apache.mina.common.IoSession session, com.wowza.wms.server.RtmpRequestMessage req, com.wowza.wms.server.RtmpResponseMessage resp) Called to service each requestvoidsetHTTPStreamerItem(com.wowza.wms.httpstreamer.model.HTTPStreamerItem httpStreamerItem) Set the HTTP streamer item associated with this adaptervoidSet the id of this adaptervoidsetProperties(WMSProperties properties) Set propertiesvoidsetSessionProtocol(int sessionProtocol) Get the adapter session protocol.voidSet the vhost associated with this adaptervoidshutdownSession(IApplicationInstance appInstance, IHTTPStreamerSession session) Called when an HTTP streaming session is shutdown
-
Method Details
-
canHandle
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
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
Set the vhost associated with this adapter- Parameters:
vhost- vhost
-
init
void init()Initialize the HTTP streaming adapter -
shutdownSession
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
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
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
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
-