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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidonHTTPCupertinoEncryptionKeyCreateLive(IApplicationInstance appInstance, String streamName, byte[] encKey) Called when live stream key is requested (per-published stream)voidonHTTPCupertinoEncryptionKeyCreateVOD(HTTPStreamerSessionCupertino httpSession, byte[] encKey) Called when video on demand key is requested (per-session)voidonHTTPCupertinoEncryptionKeyData(HTTPStreamerSessionCupertino httpSession, IHTTPRequest req, IHTTPResponse resp, byte[] encKeyData) Called when a key data is requested.voidonHTTPCupertinoEncryptionKeyLiveChunk(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)voidonHTTPCupertinoEncryptionKeyRequest(HTTPStreamerSessionCupertino httpSession, IHTTPRequest req, IHTTPResponse resp) Called when a key is requested.voidonHTTPCupertinoEncryptionKeyVODChunk(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 Details
-
KEYDATA_MODE_INIT
static final int KEYDATA_MODE_INIT- See Also:
-
KEYDATA_MODE_PLAYLIST
static final int KEYDATA_MODE_PLAYLIST- See Also:
-
KEYDATA_MODE_ENCRYPT
static final int KEYDATA_MODE_ENCRYPT- See Also:
-
KEYDATA_MODE_KEYFRAME_INIT
static final int KEYDATA_MODE_KEYFRAME_INIT- See Also:
-
KEYDATA_MODE_KEYFRAME_PLAYLIST
static final int KEYDATA_MODE_KEYFRAME_PLAYLIST- See Also:
-
KEYDATA_MODE_KEYFRAME_ENCRYPT
static final int KEYDATA_MODE_KEYFRAME_ENCRYPT- See Also:
-
-
Method Details
-
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
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_*
-