Package com.wowza.wms.module
Interface IModuleOnHTTPCupertinoEncryption
-
- All Known Subinterfaces:
IModuleOnHTTPCupertinoEncryption2
public interface IModuleOnHTTPCupertinoEncryption
IModuleOnHTTPCupertinoEncryption: listener interface for listening to AES-128 encryption events.
-
-
Field Summary
Fields Modifier and Type Field Description static int
KEYDATA_MODE_ENCRYPT
static int
KEYDATA_MODE_INIT
static int
KEYDATA_MODE_KEYFRAME_ENCRYPT
static int
KEYDATA_MODE_KEYFRAME_INIT
static int
KEYDATA_MODE_KEYFRAME_PLAYLIST
static int
KEYDATA_MODE_PLAYLIST
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onHTTPCupertinoEncryptionKeyCreateLive(IApplicationInstance appInstance, String streamName, byte[] encKey)
Called when live stream key is requested (per-published stream)void
onHTTPCupertinoEncryptionKeyCreateVOD(HTTPStreamerSessionCupertino httpSession, byte[] encKey)
Called when video on demand key is requested (per-session)void
onHTTPCupertinoEncryptionKeyData(HTTPStreamerSessionCupertino httpSession, IHTTPRequest req, IHTTPResponse resp, byte[] encKeyData)
Called when a key data is requested.void
onHTTPCupertinoEncryptionKeyLiveChunk(ILiveStreamPacketizer liveStreamPacketizer, String streamName, com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo encInfo, long chunkId, int mode)
Called when live stream key is requested (per-published stream, per-chunk - for rotating keys)void
onHTTPCupertinoEncryptionKeyRequest(HTTPStreamerSessionCupertino httpSession, IHTTPRequest req, IHTTPResponse resp)
Called when a key is requested.void
onHTTPCupertinoEncryptionKeyVODChunk(HTTPStreamerSessionCupertino httpSession, IHTTPStreamerCupertinoIndex index, com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo encInfo, long chunkId, int mode)
Called when video on demand key is requested (per-session).
-
-
-
Field Detail
-
KEYDATA_MODE_INIT
static final int KEYDATA_MODE_INIT
- See Also:
- Constant Field Values
-
KEYDATA_MODE_PLAYLIST
static final int KEYDATA_MODE_PLAYLIST
- See Also:
- Constant Field Values
-
KEYDATA_MODE_ENCRYPT
static final int KEYDATA_MODE_ENCRYPT
- See Also:
- Constant Field Values
-
KEYDATA_MODE_KEYFRAME_INIT
static final int KEYDATA_MODE_KEYFRAME_INIT
- See Also:
- Constant Field Values
-
KEYDATA_MODE_KEYFRAME_PLAYLIST
static final int KEYDATA_MODE_KEYFRAME_PLAYLIST
- See Also:
- Constant Field Values
-
KEYDATA_MODE_KEYFRAME_ENCRYPT
static final int KEYDATA_MODE_KEYFRAME_ENCRYPT
- See Also:
- Constant Field Values
-
-
Method Detail
-
onHTTPCupertinoEncryptionKeyRequest
void onHTTPCupertinoEncryptionKeyRequest(HTTPStreamerSessionCupertino httpSession, IHTTPRequest req, IHTTPResponse resp)
Called when a key is requested. Call httpSession.rejectSession to reject the streaming session and stop delivery of the encryption key.- Parameters:
httpSession
- HTTP sessionreq
- HTTP requestresp
- HTTP response
-
onHTTPCupertinoEncryptionKeyData
void onHTTPCupertinoEncryptionKeyData(HTTPStreamerSessionCupertino httpSession, IHTTPRequest req, IHTTPResponse resp, byte[] encKeyData)
Called when a key data is requested. Set encKeyData to the key data to be sent to the client.- Parameters:
httpSession
- HTTP sessionreq
- requestresp
- responseencKeyData
- key data
-
onHTTPCupertinoEncryptionKeyCreateVOD
void onHTTPCupertinoEncryptionKeyCreateVOD(HTTPStreamerSessionCupertino httpSession, byte[] encKey)
Called when video on demand key is requested (per-session)- Parameters:
httpSession
- HTTP sessionencKey
- encryption key
-
onHTTPCupertinoEncryptionKeyVODChunk
void onHTTPCupertinoEncryptionKeyVODChunk(HTTPStreamerSessionCupertino httpSession, IHTTPStreamerCupertinoIndex index, com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo encInfo, long chunkId, int mode)
Called when video on demand key is requested (per-session). Allows setting of encryption key and URL.- Parameters:
httpSession
- HTTP sessionindex
- file indexencInfo
- encryption keymode
- KEYDATA_MODE_*
-
onHTTPCupertinoEncryptionKeyCreateLive
void onHTTPCupertinoEncryptionKeyCreateLive(IApplicationInstance appInstance, String streamName, byte[] encKey)
Called when live stream key is requested (per-published stream)- Parameters:
appInstance
- application instancestreamName
- stream nameencKey
- encryption key
-
onHTTPCupertinoEncryptionKeyLiveChunk
void onHTTPCupertinoEncryptionKeyLiveChunk(ILiveStreamPacketizer liveStreamPacketizer, String streamName, com.wowza.wms.httpstreamer.cupertinostreaming.util.CupertinoEncInfo encInfo, long chunkId, int mode)
Called when live stream key is requested (per-published stream, per-chunk - for rotating keys)- Parameters:
liveStreamPacketizer
- live stream packetizerstreamName
- stream nameencInfo
- encryption infochunkId
- chunk ID, -1 for stream creationmode
- KEYDATA_MODE_*
-
-