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 int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Accept the HTTP session.void
addHTTPSessionToTCPSession
(com.wowza.wms.server.RtmpSessionInfo wmsSessionInfo, IHTTPStreamerApplicationContext appContext) Add HTTP session to TCP session for trackingvoid
addIOPerformance
(IOPerformanceCounter totalIOPerformanceResult) Internal user, keep track of IO performancevoid
addIOPerformance2
(IOPerformanceCounter totalIOPerformanceResult) Internal user, keep track of IO performancevoid
addStreamDomainStr
(String streamDomainStr) Internal user, add stream namevoid
addStreamDomainStrs
(List<String> streamNames) Internal user, add stream namesvoid
Add VOD Transcoder action listenervoid
Internalboolean
If play has not been logged return false, else returns true, sets play has been loggedvoid
Internal user, clear logging valuesboolean
containsStreamDomainStr
(String streamDomainStr) Internal user, test stream nameboolean
containsStreamNameParts
(String streamName) Return true if stream name in stream name partsvoid
Internalvoid
doSessionRedirect
(IHTTPResponse resp, String redirectSessionURL, String redirectSessionContentType, int redirectSessionCode) Internalvoid
Extract information from HTTP requestboolean
Get the application instance associated with this HTTP sessioncom.wowza.wms.client.ConnectionHolder
Connection holder for this sessionGet cookie stringcom.wowza.wms.httpstreamer.model.HTTPCORSHeaders
com.wowza.wms.httpstreamer.model.DvrSessionInfo
This 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.HTTPStreamerFileInfo
getFileInfo
(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 namesint
getHTTPIntHeader
(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 addresslong
Get the last timestamp of the last Io requestGet the live stream packetizer namegetLock()
Get the synchronization lock for this HTTP sessionlong
Get the play duration (milliseconds) for video on demand playback.long
Get the seek location (milliseconds) where playback should startlong
Get the play start time offset (milliseconds) for video on demand playback.Get the properties associated with this sessionGet query stringbyte[]
Get redirect session bodyint
Get session redirect HTTP response code (default 302)Get redirect session HTTP Content-TypeGet redirect session URLGet referrerGet server IP addressint
Get server portint
Get format, see SESSIONFORMAT_*Get session idint
Get protocol, see SESSIONPROTOCOL_*int
Get the session timeout for this session (milliseconds)int
Get session type: see SESSIONTYPE_*Get the IMediaStream associated with this HTTP sessionGet stream extensionGet stream namecom.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts
getStreamNameParts
(String streamName) Break the stream name into partslong
Get stream positionGet the time this session has been running (milliseconds)double
Get 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.TranscoderVODSession
Get 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 namevoid
indexTranscoderVOD
(IHTTPStreamerApplicationContext appContext, String vodTranscodeNGRP) Index the HTTP session for VOD transcoder streamingboolean
Return true if this session has not been rejectedboolean
isActive()
Is this session active, false after shutdownboolean
isDelete()
Return true if this session is flagged for deletion.boolean
Get is session to be deleted.boolean
isFileInfo
(String streamName) Return true if the is file information for a given stream nameboolean
Return true if session in an HTTP origin sessionboolean
true, if play has been loggedboolean
Is session redirectboolean
isSecure()
Returns true if the stream is being streamed over an SSL portboolean
isTimeout
(long timecode) Return true if this session is timed out.boolean
Get is session timeout.boolean
Has this session been validatedboolean
isValidStreamDomainStr
(String streamDomainStr) Internal user, is stream name valid for HTTP sessionvoid
lockRepeaterStreams
(List<String> streamNames, String liveStreamPacketizer, String liveStreamRepeater, String streamTypeStr) Internal user, lock in reapter streamsvoid
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 startvoid
notifyTranscoderVODFillChunkStop
(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession, com.wowza.wms.transcoder.vod.TranscoderVODChunkContext transcoderVODChunkContext) Called to notify of VOD Transcoder fill stopvoid
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 chunkvoid
putFileInfo
(String streamName, com.wowza.wms.httpstreamer.model.HTTPStreamerFileInfo fileInfo) Set the file informationvoid
putStreamNameParts
(String streamName, com.wowza.wms.httpstreamer.model.HTTPStreamerStreamNameParts streamNameParts) Add stream name to stream name partsvoid
redirectSession
(String redirectSessionURL) Redirect sessionvoid
redirectSession
(String redirectSessionURL, int redirectSessionCode) Redirect sessionvoid
Reject this HTTP session.void
removeStreamDomainStr
(String streamDomainStr) Internal user, remove stream nameboolean
Remove VOD Transcoder action listenervoid
setAcceptSession
(boolean acceptSession) Set to false to reject sessionvoid
setActive
(boolean isActive) Set session activevoid
setAppInstance
(IApplicationInstance appInstance) Set the application instance associated with this HTTP sessionvoid
setCookieStr
(String cookieStr) Set cookie stringvoid
Set session to be deleted.void
setDvrSessionInfo
(com.wowza.wms.httpstreamer.model.DvrSessionInfo dvr) This information is used to manage the connection to the DVR store.void
setForwardedIP
(String ipAddress) Set the x-[real|forwarded] IP addressvoid
setHTTPOrigin
(boolean isHTTPOrigin) Set to true if HTTP origin sessionvoid
setHTTPStreamerAdapter
(IHTTPStreamerAdapter httpStreamerAdapter) Set the HTTP streaming adapter associated with this HTTP sessionvoid
setIpAddress
(String ipAddress) Set the IP addressvoid
setLiveStreamingPacketizer
(String liveStreamingPacketizer) Set the live stream packetizer namevoid
setPlayDuration
(long playDuration) Set the play duration (milliseconds) for video on demand playback.void
setPlayLogged
(boolean isPlayLogged) true, if play has been loggedvoid
setPlaySeek
(long playSeek) Set the seek location (milliseconds) where playback should startvoid
setPlayStart
(long playStart) Set the play start time offset (milliseconds) for video on demand playback.void
setQueryStr
(String queryStr) Set query stringvoid
setRedirectSession
(boolean redirectSession) Set session redirectvoid
setRedirectSessionBody
(byte[] redirectSessionBody) Set redirect session bodyvoid
setRedirectSessionCode
(int redirectSessionCode) Set session redirect HTTP response code (default 302)void
setRedirectSessionContentType
(String redirectSessionContentType) Set redirect session HTTP Content-Typevoid
setRedirectSessionURL
(String redirectSessionURL) Set redirect session URLvoid
setReferrer
(String referrer) Set referrervoid
setSecure
(boolean isSecure) Set to true if the stream is being streamed over an SSL portvoid
setServerIp
(String serverIp) Set server IP addressvoid
setServerPort
(int serverPort) Set server portvoid
setSessionFormat
(int sessionFormat) Set format, see SESSIONFORMAT_*void
setSessionId
(String sessionId) Set session idvoid
setSessionProtocol
(int sessionProtocol) Set protocol, see SESSIONPROTOCOL_*void
setSessionTimeout
(int sessionTimeout) Set the session timeout for this session (milliseconds)void
setSessionType
(int sessionType) Set session type: see SESSIONTYPE_*void
setStream
(IMediaStream stream) Set the IMediaStream associated with this HTTP sessionvoid
setStreamExt
(String streamExt) Set stream extensionvoid
setStreamName
(String streamName) Set stream namevoid
setStreamPosition
(long streamPosition) Set stream position (will not cause seek)void
setTimeoutSession
(boolean timeoutSession) Set is session timeout.void
setTranscoderVODIndex
(IHTTPStreamerTranscoderVODIndex transcoderVODIndex) Set the VOD Transcoder index informationvoid
setTranscoderVODSession
(com.wowza.wms.transcoder.vod.TranscoderVODSession transcoderVODSession) Set the vod transcoder session associated with this HTTP sessionvoid
Set the URI associated with initial requestvoid
setUserAgent
(String userAgent) Set user agentvoid
setUserHTTPHeader
(String name, String value) Set user HTTP header.void
setUserQueryStr
(String userQueryStr) This query string will be added to URLs used in HTTP streamingvoid
Set vhostvoid
setVODTranscodeNGRP
(String vodTranscodeNGRP) Set the VOD Transcoder NGRP namevoid
shutdown()
Called then the HTTP session is shutting downvoid
touch
(long timecode) Touch this session to keep it active.void
Internal 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
-