Package com.wowza.wms.httpstreamer.model
Interface IHTTPStreamerSession
- All Known Implementing Classes:
com.wowza.wms.httpstreamer.model.HTTPStreamerSessionBase,HTTPStreamerSessionCupertino,HTTPStreamerSessionDirect,HTTPStreamerSessionMPEGDash,HTTPStreamerSessionTS,HTTPStreamerSessionWebM
public interface IHTTPStreamerSession
IHTTPStreamerSession: HTTP streaming session interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidAccept the HTTP session.voidaddHTTPSessionToTCPSession(com.wowza.wms.server.RtmpSessionInfo wmsSessionInfo, IHTTPStreamerApplicationContext appContext) Add HTTP session to TCP session for trackingvoidaddIOPerformance(IOPerformanceCounter totalIOPerformanceResult) Internal user, keep track of IO performancevoidaddIOPerformance2(IOPerformanceCounter totalIOPerformanceResult) Internal user, keep track of IO performancevoidaddStreamDomainStr(String streamDomainStr) Internal user, add stream namevoidaddStreamDomainStrs(List<String> streamNames) Internal user, add stream namesvoidAdd VOD Transcoder action listenervoidInternalbooleanIf play has not been logged return false, else returns true, sets play has been loggedvoidInternal user, clear logging valuesbooleancontainsStreamDomainStr(String streamDomainStr) Internal user, test stream namebooleancontainsStreamNameParts(String streamName) Return true if stream name in stream name partsvoidInternalvoiddoSessionRedirect(IHTTPResponse resp, String redirectSessionURL, String redirectSessionContentType, int redirectSessionCode) InternalvoidExtract information from HTTP requestbooleanGet the application instance associated with this HTTP sessioncom.wowza.wms.client.ConnectionHolderConnection holder for this sessionGet cookie stringcom.wowza.wms.httpstreamer.model.HTTPCORSHeaderscom.wowza.wms.httpstreamer.model.DvrSessionInfoThis information is used to manage the connection to the DVR store.Get the elapsed timer to see how long this session has been runningcom.wowza.wms.httpstreamer.model.HTTPStreamerFileInfogetFileInfo(String streamName) Get the file information if video on demand streamingGet the x-[real|forwarded] IP addressgetHTTPHeader(String name) Get a HTTP header value such as 'Content-Length'Get a copy of the HTTP request header mapGet a Set of the header namesintgetHTTPIntHeader(String name) Get a HTTP header value such as 'Content-Length' and return as intGet the HTTP streaming adapter associated with this HTTP sessionGet IO performance counterGet the IP addresslongGet the last timestamp of the last Io requestGet the live stream packetizer namegetLock()Get the synchronization lock for this HTTP sessionlongGet the play duration (milliseconds) for video on demand playback.longGet the seek location (milliseconds) where playback should startlongGet the play start time offset (milliseconds) for video on demand playback.Get the properties associated with this sessionGet query stringbyte[]Get redirect session bodyintGet session redirect HTTP response code (default 302)Get redirect session HTTP Content-TypeGet redirect session URLGet referrerGet server IP addressintGet server portintGet format, see SESSIONFORMAT_*Get session idintGet protocol, see SESSIONPROTOCOL_*intGet the session timeout for this session (milliseconds)intGet session type: see SESSIONTYPE_*Get the IMediaStream associated with this HTTP sessionGet stream extensionGet stream namecom.wowza.wms.httpstreamer.model.HTTPStreamerStreamNamePartsgetStreamNameParts(String streamName) Break the stream name into partslongGet stream positionGet the time this session has been running (milliseconds)doubleGet the time this session has been running (seconds)Get the VOD Transcoder index informationgetTranscoderVODIndex(String bitrateStr) Get VOD transcoder index for given bitrateGet the VOD Transcoder destination mapGet the list of VOD Transcoder destinations in playlist ordercom.wowza.wms.transcoder.vod.TranscoderVODSessionGet the vod transcoder session associated with this HTTP sessiongetUri()Get the URI associated with initial requestGet user agentGet user HTTP header.This query string will be added to URLs used in HTTP streaminggetVHost()Get vhostGet the VOD Transcoder NGRP namevoidindexTranscoderVOD(IHTTPStreamerApplicationContext appContext, String vodTranscodeNGRP) Index the HTTP session for VOD transcoder streamingbooleanReturn true if this session has not been rejectedbooleanisActive()Is this session active, false after shutdownbooleanisDelete()Return true if this session is flagged for deletion.booleanGet is session to be deleted.booleanisFileInfo(String streamName) Return true if the is file information for a given stream namebooleanReturn true if session in an HTTP origin sessionbooleantrue, if play has been loggedbooleanIs session redirectbooleanisSecure()Returns true if the stream is being streamed over an SSL portbooleanisTimeout(long timecode) Return true if this session is timed out.booleanGet is session timeout.booleanHas this session been validatedbooleanisValidStreamDomainStr(String streamDomainStr) Internal user, is stream name valid for HTTP sessionvoidlockRepeaterStreams(List<String> streamNames, String liveStreamPacketizer, String liveStreamRepeater, String streamTypeStr) Internal user, lock in reapter streamsvoidnotifyTranscoderVODFillChunkStart(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODDestination transcoderVODDestination, com.wowza.wms.httpstreamer.model.MediaReaderH264Chunk mediaReaderChunk, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext) Called to notify of VOD Transcoder fill chunk startvoidnotifyTranscoderVODFillChunkStop(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext) Called to notify of VOD Transcoder fill stopvoidnotifyTranscoderVODFillChunkTranscode(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext, List<com.wowza.wms.httpstreamer.model.MediaReaderH264Packet> packets) Called to notify of VOD Transcoder fill chunkvoidputFileInfo(String streamName, com.wowza.wms.httpstreamer.model.HTTPStreamerFileInfo fileInfo) Set the file informationvoidputStreamNameParts(String streamName, com.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts streamNameParts) Add stream name to stream name partsvoidredirectSession(String redirectSessionURL) Redirect sessionvoidredirectSession(String redirectSessionURL, int redirectSessionCode) Redirect sessionvoidReject this HTTP session.voidremoveStreamDomainStr(String streamDomainStr) Internal user, remove stream namebooleanRemove VOD Transcoder action listenervoidsetAcceptSession(boolean acceptSession) Set to false to reject sessionvoidsetActive(boolean isActive) Set session activevoidsetAppInstance(IApplicationInstance appInstance) Set the application instance associated with this HTTP sessionvoidsetCookieStr(String cookieStr) Set cookie stringvoidSet session to be deleted.voidsetDvrSessionInfo(com.wowza.wms.httpstreamer.model.DvrSessionInfo dvr) This information is used to manage the connection to the DVR store.voidsetForwardedIP(String ipAddress) Set the x-[real|forwarded] IP addressvoidsetHTTPOrigin(boolean isHTTPOrigin) Set to true if HTTP origin sessionvoidsetHTTPStreamerAdapter(IHTTPStreamerAdapter httpStreamerAdapter) Set the HTTP streaming adapter associated with this HTTP sessionvoidsetIpAddress(String ipAddress) Set the IP addressvoidsetLiveStreamingPacketizer(String liveStreamingPacketizer) Set the live stream packetizer namevoidsetPlayDuration(long playDuration) Set the play duration (milliseconds) for video on demand playback.voidsetPlayLogged(boolean isPlayLogged) true, if play has been loggedvoidsetPlaySeek(long playSeek) Set the seek location (milliseconds) where playback should startvoidsetPlayStart(long playStart) Set the play start time offset (milliseconds) for video on demand playback.voidsetQueryStr(String queryStr) Set query stringvoidsetRedirectSession(boolean redirectSession) Set session redirectvoidsetRedirectSessionBody(byte[] redirectSessionBody) Set redirect session bodyvoidsetRedirectSessionCode(int redirectSessionCode) Set session redirect HTTP response code (default 302)voidsetRedirectSessionContentType(String redirectSessionContentType) Set redirect session HTTP Content-TypevoidsetRedirectSessionURL(String redirectSessionURL) Set redirect session URLvoidsetReferrer(String referrer) Set referrervoidsetSecure(boolean isSecure) Set to true if the stream is being streamed over an SSL portvoidsetServerIp(String serverIp) Set server IP addressvoidsetServerPort(int serverPort) Set server portvoidsetSessionFormat(int sessionFormat) Set format, see SESSIONFORMAT_*voidsetSessionId(String sessionId) Set session idvoidsetSessionProtocol(int sessionProtocol) Set protocol, see SESSIONPROTOCOL_*voidsetSessionTimeout(int sessionTimeout) Set the session timeout for this session (milliseconds)voidsetSessionType(int sessionType) Set session type: see SESSIONTYPE_*voidsetStream(IMediaStream stream) Set the IMediaStream associated with this HTTP sessionvoidsetStreamExt(String streamExt) Set stream extensionvoidsetStreamName(String streamName) Set stream namevoidsetStreamPosition(long streamPosition) Set stream position (will not cause seek)voidsetTimeoutSession(boolean timeoutSession) Set is session timeout.voidsetTranscoderVODIndex(IHTTPStreamerTranscoderVODIndex transcoderVODIndex) Set the VOD Transcoder index informationvoidsetTranscoderVODSession(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession) Set the vod transcoder session associated with this HTTP sessionvoidSet the URI associated with initial requestvoidsetUserAgent(String userAgent) Set user agentvoidsetUserHTTPHeader(String name, String value) Set user HTTP header.voidsetUserQueryStr(String userQueryStr) This query string will be added to URLs used in HTTP streamingvoidSet vhostvoidsetVODTranscodeNGRP(String vodTranscodeNGRP) Set the VOD Transcoder NGRP namevoidshutdown()Called then the HTTP session is shutting downvoidtouch(long timecode) Touch this session to keep it active.voidInternal user, update logging valuesReturn the valid domain strings as a string
-
Field Details
-
SESSIONTYPE_UNKNOWN
static final int SESSIONTYPE_UNKNOWN- See Also:
-
SESSIONTYPE_LIVE
static final int SESSIONTYPE_LIVE- See Also:
-
SESSIONTYPE_VOD
static final int SESSIONTYPE_VOD- See Also:
-
SESSIONTYPE_LIVEDVR
static final int SESSIONTYPE_LIVEDVR- See Also:
-
SESSIONPROTOCOL_UNKNOWN
static final int SESSIONPROTOCOL_UNKNOWN- See Also:
-
SESSIONPROTOCOL_SMOOTHSTREAMING
static final int SESSIONPROTOCOL_SMOOTHSTREAMING- See Also:
-
SESSIONPROTOCOL_CUPERTINOSTREAMING
static final int SESSIONPROTOCOL_CUPERTINOSTREAMING- See Also:
-
SESSIONPROTOCOL_SANJOSESTREAMING
static final int SESSIONPROTOCOL_SANJOSESTREAMING- See Also:
-
SESSIONPROTOCOL_WEBMSTREAMING
static final int SESSIONPROTOCOL_WEBMSTREAMING- See Also:
-
SESSIONPROTOCOL_MPEGDASHSTREAMING
static final int SESSIONPROTOCOL_MPEGDASHSTREAMING- See Also:
-
SESSIONPROTOCOL_DVRCHUNKSTREAMING
static final int SESSIONPROTOCOL_DVRCHUNKSTREAMING- See Also:
-
SESSIONPROTOCOL_DIRECTSTREAMING
static final int SESSIONPROTOCOL_DIRECTSTREAMING- See Also:
-
SESSIONPROTOCOL_TSSTREAMING
static final int SESSIONPROTOCOL_TSSTREAMING- See Also:
-
SESSIONPROTOCOL_COUNT
static final int SESSIONPROTOCOL_COUNT- See Also:
-
SESSIONFORMAT_DEFAULT
static final int SESSIONFORMAT_DEFAULT- See Also:
-
SESSIONFORMAT_CMAF
static final int SESSIONFORMAT_CMAF- See Also:
-
SESSIONFORMAT_CMAF_LL
static final int SESSIONFORMAT_CMAF_LL- See Also:
-
-
Method Details
-
getSessionId
String getSessionId()Get session id- Returns:
- session id
-
setSessionId
Set session id- Parameters:
sessionId- session id
-
getVHost
IVHost getVHost()Get vhost- Returns:
- vhost
-
setVHost
Set vhost- Parameters:
vhost- vhost
-
touch
void touch(long timecode) Touch this session to keep it active.- Parameters:
timecode- timecode of touch - System.currentTimeMillis();
-
isTimeout
boolean isTimeout(long timecode) Return true if this session is timed out.- Parameters:
timecode- last touch - System.currentTimeMillis();- Returns:
- true, if timed out
-
isDelete
boolean isDelete()Return true if this session is flagged for deletion.- Returns:
- true, if flagged for deletion
-
getLock
Object getLock()Get the synchronization lock for this HTTP session- Returns:
- synchronization lock
-
shutdown
void shutdown()Called then the HTTP session is shutting down -
isActive
boolean isActive()Is this session active, false after shutdown- Returns:
- true if session is active
-
setActive
void setActive(boolean isActive) Set session active- Parameters:
isActive- session active
-
getStream
IMediaStream getStream()Get the IMediaStream associated with this HTTP session- Returns:
- IMediaStream associated with this HTTP session
-
setStream
Set the IMediaStream associated with this HTTP session- Parameters:
stream- IMediaStream associated with this HTTP session
-
isTimeoutSession
boolean isTimeoutSession()Get is session timeout.- Returns:
- true if this session is timed out
-
setTimeoutSession
void setTimeoutSession(boolean timeoutSession) Set is session timeout.- Parameters:
timeoutSession- true if this session is timed out
-
isDeleteSession
boolean isDeleteSession()Get is session to be deleted.- Returns:
- true if this session is flagged for deletion
-
setDeleteSession
void setDeleteSession()Set session to be deleted. -
getSessionTimeout
int getSessionTimeout()Get the session timeout for this session (milliseconds)- Returns:
- session timeout for this session (milliseconds)
-
setSessionTimeout
void setSessionTimeout(int sessionTimeout) Set the session timeout for this session (milliseconds)- Parameters:
sessionTimeout- session timeout for this session (milliseconds)
-
isValidated
boolean isValidated()Has this session been validated- Returns:
- true, if validated
-
checkAndSetPlayLogged
boolean checkAndSetPlayLogged()If play has not been logged return false, else returns true, sets play has been logged- Returns:
- true, if play has been logged
-
isPlayLogged
boolean isPlayLogged()true, if play has been logged- Returns:
- true, if play has been logged
-
setPlayLogged
void setPlayLogged(boolean isPlayLogged) true, if play has been logged- Parameters:
isPlayLogged- true, if play has been logged
-
addIOPerformance
Internal user, keep track of IO performance- Parameters:
totalIOPerformanceResult- IO performance
-
addIOPerformance2
Internal user, keep track of IO performance- Parameters:
totalIOPerformanceResult- IO performance
-
getConnectionHolder
com.wowza.wms.client.ConnectionHolder getConnectionHolder()Connection holder for this session- Returns:
- connection holder
-
getHTTPStreamerAdapter
IHTTPStreamerAdapter getHTTPStreamerAdapter()Get the HTTP streaming adapter associated with this HTTP session- Returns:
- HTTP streaming adapter
-
setHTTPStreamerAdapter
Set the HTTP streaming adapter associated with this HTTP session- Parameters:
httpStreamerAdapter- HTTP streaming adapter
-
getAppInstance
IApplicationInstance getAppInstance()Get the application instance associated with this HTTP session- Returns:
- application instance associated with this HTTP session
-
setAppInstance
Set the application instance associated with this HTTP session- Parameters:
appInstance- application instance associated with this HTTP session
-
getSessionType
int getSessionType()Get session type: see SESSIONTYPE_*- Returns:
- session type: see SESSIONTYPE_*
-
setSessionType
void setSessionType(int sessionType) Set session type: see SESSIONTYPE_*- Parameters:
sessionType- session type: see SESSIONTYPE_*
-
getLiveStreamingPacketizer
String getLiveStreamingPacketizer()Get the live stream packetizer name- Returns:
- live stream packetizer name
-
setLiveStreamingPacketizer
Set the live stream packetizer name- Parameters:
liveStreamingPacketizer- live stream packetizer name
-
getIpAddress
String getIpAddress()Get the IP address- Returns:
- IP address
-
setIpAddress
Set the IP address- Parameters:
ipAddress- IP address
-
getForwardedIP
String getForwardedIP()Get the x-[real|forwarded] IP address- Returns:
- IP address
-
setForwardedIP
Set the x-[real|forwarded] IP address- Parameters:
ipAddress- IP address
-
updateLoggingValues
void updateLoggingValues()Internal user, update logging values -
clearLoggingValues
void clearLoggingValues()Internal user, clear logging values -
getSessionProtocol
int getSessionProtocol()Get protocol, see SESSIONPROTOCOL_*- Returns:
- protocol, see SESSIONPROTOCOL_*
-
setSessionProtocol
void setSessionProtocol(int sessionProtocol) Set protocol, see SESSIONPROTOCOL_*- Parameters:
sessionProtocol- protocol, see SESSIONPROTOCOL_*
-
getSessionFormat
int getSessionFormat()Get format, see SESSIONFORMAT_*- Returns:
- format, see SESSIONFORMAT_*
-
setSessionFormat
void setSessionFormat(int sessionFormat) Set format, see SESSIONFORMAT_*- Parameters:
sessionFormat- format, see SESSIONFORMAT_*
-
getServerIp
String getServerIp()Get server IP address- Returns:
- server IP address
-
setServerIp
Set server IP address- Parameters:
serverIp- server IP address
-
getServerPort
int getServerPort()Get server port- Returns:
- server port
-
setServerPort
void setServerPort(int serverPort) Set server port- Parameters:
serverPort- server port
-
getUserAgent
String getUserAgent()Get user agent- Returns:
- user agent
-
setUserAgent
Set user agent- Parameters:
userAgent- user agent
-
getUri
String getUri()Get the URI associated with initial request- Returns:
- URI associated with initial request
-
setUri
Set the URI associated with initial request- Parameters:
uri- URI associated with initial request
-
getReferrer
String getReferrer()Get referrer- Returns:
- referrer
-
setReferrer
Set referrer- Parameters:
referrer- referrer
-
getQueryStr
String getQueryStr()Get query string- Returns:
- query string
-
setQueryStr
Set query string- Parameters:
queryStr- query string
-
lockRepeaterStreams
void lockRepeaterStreams(List<String> streamNames, String liveStreamPacketizer, String liveStreamRepeater, String streamTypeStr) Internal user, lock in reapter streams- Parameters:
streamNames- list of stream namesliveStreamPacketizer- live stream packetizer nameliveStreamRepeater- live repeater namestreamTypeStr- stream type
-
rejectSession
void rejectSession()Reject this HTTP session. No further processing should occur -
acceptSession
void acceptSession()Accept the HTTP session. -
isAcceptSession
boolean isAcceptSession()Return true if this session has not been rejected- Returns:
- true if this session has not been rejected
-
setAcceptSession
void setAcceptSession(boolean acceptSession) Set to false to reject session- Parameters:
acceptSession- false to reject session
-
getCookieStr
String getCookieStr()Get cookie string- Returns:
- cookie string
-
setCookieStr
Set cookie string- Parameters:
cookieStr- cookie string
-
getStreamName
String getStreamName()Get stream name- Returns:
- stream name
-
setStreamName
Set stream name- Parameters:
streamName- stream name
-
getStreamExt
String getStreamExt()Get stream extension- Returns:
- stream extension
-
setStreamExt
Set stream extension- Parameters:
streamExt- stream extension
-
getStreamNameParts
Break the stream name into parts- Parameters:
streamName- stream name- Returns:
- stream name parts
-
containsStreamNameParts
Return true if stream name in stream name parts- Parameters:
streamName- stream name- Returns:
- true if stream name in stream name parts
-
putStreamNameParts
void putStreamNameParts(String streamName, com.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts streamNameParts) Add stream name to stream name parts- Parameters:
streamName- stream namestreamNameParts- stream name parts
-
getStreamPosition
long getStreamPosition()Get stream position- Returns:
- stream position
-
setStreamPosition
void setStreamPosition(long streamPosition) Set stream position (will not cause seek)- Parameters:
streamPosition- stream position
-
getIOPerformanceCounter
IOPerformanceCounter getIOPerformanceCounter()Get IO performance counter- Returns:
- IO performance counter
-
getFileInfo
Get the file information if video on demand streaming- Parameters:
streamName- stream name- Returns:
- file information
-
putFileInfo
Set the file information- Parameters:
streamName- stream namefileInfo- file information
-
isFileInfo
Return true if the is file information for a given stream name- Parameters:
streamName- stream name- Returns:
- true if the is file information for a given stream name
-
isValidStreamDomainStr
Internal user, is stream name valid for HTTP session- Parameters:
streamDomainStr- stream name- Returns:
- true if valid
-
validStreamDomainToString
String validStreamDomainToString()Return the valid domain strings as a string- Returns:
- valid domain strings as a string
-
containsStreamDomainStr
Internal user, test stream name- Parameters:
streamDomainStr- stream name- Returns:
- true if valid
-
removeStreamDomainStr
Internal user, remove stream name- Parameters:
streamDomainStr- stream name
-
addStreamDomainStr
Internal user, add stream name- Parameters:
streamDomainStr- stream name
-
addStreamDomainStrs
Internal user, add stream names- Parameters:
streamNames- stream names
-
getElapsedTime
ElapsedTimer getElapsedTime()Get the elapsed timer to see how long this session has been running- Returns:
- elapsed timer (milliseconds)
-
getTimeRunning
String getTimeRunning()Get the time this session has been running (milliseconds)- Returns:
- time this session has been running (milliseconds)
-
getTimeRunningSeconds
double getTimeRunningSeconds()Get the time this session has been running (seconds)- Returns:
- time this session has been running (seconds)
-
getProperties
WMSProperties getProperties()Get the properties associated with this session- Returns:
- properties
-
getUserQueryStr
String getUserQueryStr()This query string will be added to URLs used in HTTP streaming- Returns:
- user query string
-
setUserQueryStr
This query string will be added to URLs used in HTTP streaming- Parameters:
userQueryStr- user query string
-
setDvrSessionInfo
void setDvrSessionInfo(com.wowza.wms.httpstreamer.model.DvrSessionInfo dvr) This information is used to manage the connection to the DVR store.- Parameters:
dvr- The DVR session info.
-
getDvrSessionInfo
com.wowza.wms.httpstreamer.model.DvrSessionInfo getDvrSessionInfo()This information is used to manage the connection to the DVR store.- Returns:
- DVR session info.
-
extractHTTPRequestInfo
Extract information from HTTP request- Parameters:
req- HTTP request
-
getHTTPHeaderMap
Get a copy of the HTTP request header map- Returns:
- copy of the HTTP request header map
-
getHTTPHeader
Get a HTTP header value such as 'Content-Length'- Parameters:
name- header name- Returns:
- header value
-
getHTTPIntHeader
Get a HTTP header value such as 'Content-Length' and return as int- Parameters:
name- header name- Returns:
- header value
-
getHTTPHeaderNames
Get a Set of the header names- Returns:
- Set of header names
-
getPlayStart
long getPlayStart()Get the play start time offset (milliseconds) for video on demand playback.- Returns:
- play start time offset (milliseconds)
-
setPlayStart
void setPlayStart(long playStart) Set the play start time offset (milliseconds) for video on demand playback.- Parameters:
playStart- play start time offset (milliseconds)
-
getPlayDuration
long getPlayDuration()Get the play duration (milliseconds) for video on demand playback. A values of -1 means play to end.- Returns:
- play duration (milliseconds)
-
setPlayDuration
void setPlayDuration(long playDuration) Set the play duration (milliseconds) for video on demand playback. A values of -1 means play to end.- Parameters:
playDuration- play duration (milliseconds)
-
getPlaySeek
long getPlaySeek()Get the seek location (milliseconds) where playback should start- Returns:
- seek location (milliseconds)
-
setPlaySeek
void setPlaySeek(long playSeek) Set the seek location (milliseconds) where playback should start- Parameters:
playSeek- seek location (milliseconds)
-
setUserHTTPHeader
Set user HTTP header. This header value will be added to all HTTP responses- Parameters:
name- namevalue- value
-
getUserHTTPHeaders
Get user HTTP header. This header value will be added to all HTTP responses- Returns:
- header map
-
addUserHTTPHeaders
Internal- Parameters:
resp- response
-
getCORSHeaders
com.wowza.wms.httpstreamer.model.HTTPCORSHeaders getCORSHeaders()- Returns:
- HTTPCORSHeaders object
-
doSessionRedirect
Internal- Parameters:
resp- response
-
doSessionRedirect
void doSessionRedirect(IHTTPResponse resp, String redirectSessionURL, String redirectSessionContentType, int redirectSessionCode) Internal- Parameters:
resp- responseredirectSessionURL- redirect session URLredirectSessionContentType-redirectSessionCode- redirect session response code (default 302)
-
isRedirectSession
boolean isRedirectSession()Is session redirect- Returns:
- session redirect
-
setRedirectSession
void setRedirectSession(boolean redirectSession) Set session redirect- Parameters:
redirectSession- session redirect
-
getRedirectSessionCode
int getRedirectSessionCode()Get session redirect HTTP response code (default 302)- Returns:
- session redirect HTTP response code
-
setRedirectSessionCode
void setRedirectSessionCode(int redirectSessionCode) Set session redirect HTTP response code (default 302)- Parameters:
redirectSessionCode- session redirect HTTP response code
-
getRedirectSessionURL
String getRedirectSessionURL()Get redirect session URL- Returns:
- redirect session URL
-
setRedirectSessionURL
Set redirect session URL- Parameters:
redirectSessionURL- redirect session URL
-
redirectSession
Redirect session- Parameters:
redirectSessionURL- redirect session URL
-
redirectSession
Redirect session- Parameters:
redirectSessionURL- redirect session URLredirectSessionCode- redirect session response code (default 302)
-
getRedirectSessionBody
byte[] getRedirectSessionBody()Get redirect session body- Returns:
- redirect session body
-
setRedirectSessionBody
void setRedirectSessionBody(byte[] redirectSessionBody) Set redirect session body- Parameters:
redirectSessionBody- redirect session body
-
getRedirectSessionContentType
String getRedirectSessionContentType()Get redirect session HTTP Content-Type- Returns:
- redirect session HTTP Content-Type
-
setRedirectSessionContentType
Set redirect session HTTP Content-Type- Parameters:
redirectSessionContentType-
-
getLastRequest
long getLastRequest()Get the last timestamp of the last Io request- Returns:
- last timestamp of the last Io request (milliseconds)
-
isHTTPOrigin
boolean isHTTPOrigin()Return true if session in an HTTP origin session- Returns:
- true if session in an HTTP origin session
-
setHTTPOrigin
void setHTTPOrigin(boolean isHTTPOrigin) Set to true if HTTP origin session- Parameters:
isHTTPOrigin- true if HTTP origin session
-
getAndClearNotifyCreate
boolean getAndClearNotifyCreate() -
getTranscoderVODSession
com.wowza.wms.transcoder.vod.TranscoderVODSession getTranscoderVODSession()Get the vod transcoder session associated with this HTTP session- Returns:
- vod transcoder session
-
setTranscoderVODSession
void setTranscoderVODSession(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession) Set the vod transcoder session associated with this HTTP session- Parameters:
transcoderVODSession- vod transcoder session
-
getVODTranscodeNGRP
String getVODTranscodeNGRP()Get the VOD Transcoder NGRP name- Returns:
- VOD Transcoder NGRP name
-
setVODTranscodeNGRP
Set the VOD Transcoder NGRP name- Parameters:
vodTranscodeNGRP- VOD Transcoder NGRP name
-
getTranscoderVODIndex
IHTTPStreamerTranscoderVODIndex getTranscoderVODIndex()Get the VOD Transcoder index information- Returns:
- VOD Transcoder index
-
setTranscoderVODIndex
Set the VOD Transcoder index information- Parameters:
transcoderVODIndex- VOD Transcoder index
-
getTranscoderVODIndexDestinationsOrder
Get the list of VOD Transcoder destinations in playlist order- Returns:
- list of VOD Transcoder destinations
-
getTranscoderVODIndexDestinationsMap
Map<String,IHTTPStreamerTranscoderVODDestinationIndex> getTranscoderVODIndexDestinationsMap()Get the VOD Transcoder destination map- Returns:
- VOD Transcoder destination map
-
indexTranscoderVOD
Index the HTTP session for VOD transcoder streaming- Parameters:
appContext- application contextvodTranscodeNGRP- transcoder name group
-
getTranscoderVODIndex
Get VOD transcoder index for given bitrate- Parameters:
bitrateStr- bitrate string- Returns:
- VOD transcoder index
-
addHTTPSessionToTCPSession
void addHTTPSessionToTCPSession(com.wowza.wms.server.RtmpSessionInfo wmsSessionInfo, IHTTPStreamerApplicationContext appContext) Add HTTP session to TCP session for tracking- Parameters:
wmsSessionInfo- TCP session infoappContext- app context
-
isSecure
boolean isSecure()Returns true if the stream is being streamed over an SSL port- Returns:
- true if the stream is being streamed over an SSL port
-
setSecure
void setSecure(boolean isSecure) Set to true if the stream is being streamed over an SSL port- Parameters:
isSecure- true if the stream is being streamed over an SSL port
-
addTranscoderVODListener
Add VOD Transcoder action listener- Parameters:
listener- VOD Transcoder action listener
-
removeTranscoderVODListener
Remove VOD Transcoder action listener- Parameters:
listener- VOD Transcoder action listener- Returns:
- true/false is successful
-
notifyTranscoderVODFillChunkStart
void notifyTranscoderVODFillChunkStart(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODDestination transcoderVODDestination, com.wowza.wms.httpstreamer.model.MediaReaderH264Chunk mediaReaderChunk, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext) Called to notify of VOD Transcoder fill chunk start- Parameters:
transcoderVODSession- VOD Transcoder sessiontranscoderVODDestination- VOD Transcoder destinationmediaReaderChunk- media reader for the chunktranscoderVODChunkContext- VOD Transcoder context
-
notifyTranscoderVODFillChunkTranscode
void notifyTranscoderVODFillChunkTranscode(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext, List<com.wowza.wms.httpstreamer.model.MediaReaderH264Packet> packets) Called to notify of VOD Transcoder fill chunk- Parameters:
transcoderVODSession- VOD Transcoder sessiontranscoderVODChunkContext- VOD Transcoder contextpackets-
-
notifyTranscoderVODFillChunkStop
void notifyTranscoderVODFillChunkStop(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext) Called to notify of VOD Transcoder fill stop- Parameters:
transcoderVODSession- VOD Transcoder sessiontranscoderVODChunkContext- VOD Transcoder context
-