gstsdp.mikeymessage
Module for [MIKEYMessage] class
class MIKEYMessage
Types 1
classMIKEYMessage : gobject.boxed.Boxed
Structure holding the information of the MIKEY message
Methods
MIKEYMessage self()Returns `this`, for use in `with` statements.void type(gstsdp.types.MIKEYType propval) @propertySet `type` field. Params: propval = the #GstMIKEYType message typevoid prfFunc(gstsdp.types.MIKEYPRFFunc propval) @propertySet `prfFunc` field. Params: propval = a #GstMIKEYPRFFuncvoid CSBId(uint propval) @propertySet `CSBId` field. Params: propval = Identifies the Crypto Session Bundlevoid mapType(gstsdp.types.MIKEYMapType propval) @propertySet `mapType` field. Params: propval = a #GstMIKEYMapTypegstsdp.mikeymessage.MIKEYMessage newFromBytes(glib.bytes.Bytes bytes, gstsdp.types.MIKEYDecryptInfo info)Make a new #GstMIKEYMessage from bytes.gstsdp.mikeymessage.MIKEYMessage newFromCaps(gst.caps.Caps caps)Makes mikey message including: Security Policy Payload Key Data Transport Payload * Key Data Sub-Payloadgstsdp.mikeymessage.MIKEYMessage newFromData(ubyte[] data, gstsdp.types.MIKEYDecryptInfo info)Parse size bytes from data into a #GstMIKEYMessage. info contains the parameters to decrypt and verify the data.bool addCsSrtp(ubyte policy, uint ssrc, uint roc)Add a Crypto policy for SRTP to msg.bool addPayload(gstsdp.mikeypayload.MIKEYPayload payload)Add a new payload to msg.bool addPke(gstsdp.types.MIKEYCacheType C, ubyte[] data)Add a new PKE payload to msg with the given parameters.bool addRand(ubyte[] rand)Add a new RAND payload to msg with the given parameters.bool addRandLen(ubyte len)Add a new RAND payload to msg with len random bytes.bool addTNowNtpUtc()Add a new T payload to msg that contains the current time in NTP-UTC format. Returns: true on successstring base64Encode()gstsdp.mikeypayload.MIKEYPayload findPayload(gstsdp.types.MIKEYPayloadType type, uint nth)Find the nth occurrence of the payload with type in msg.gstsdp.types.MIKEYMapSRTP getCsSrtp(uint idx)Get the policy information of msg at idx.uint getNCs()Get the number of crypto sessions in msg. Returns: the number of crypto sessionsuint getNPayloads()Get the number of payloads in msg. Returns: the number of payloads in msggstsdp.mikeypayload.MIKEYPayload getPayload(uint idx)Get the #GstMIKEYPayload at idx in msgbool insertCsSrtp(int idx, gstsdp.types.MIKEYMapSRTP map)Insert a Crypto Session map for SRTP in msg at idxbool insertPayload(uint idx, gstsdp.mikeypayload.MIKEYPayload payload)Insert the payload at index idx in msg. If idx is -1, the payload will be appended to msg.bool removeCsSrtp(int idx)Remove the SRTP policy at idx.bool removePayload(uint idx)Remove the payload in msg at idxbool replaceCsSrtp(int idx, gstsdp.types.MIKEYMapSRTP map)Replace a Crypto Session map for SRTP in msg at idx with map.bool replacePayload(uint idx, gstsdp.mikeypayload.MIKEYPayload payload)Replace the payload at idx in msg with payload.bool setInfo(ubyte version_, gstsdp.types.MIKEYType type, bool V, gstsdp.types.MIKEYPRFFunc prfFunc, uint CSBId, gstsdp.types.MIKEYMapType mapType)Set the information in msg.glib.bytes.Bytes toBytes(gstsdp.types.MIKEYEncryptInfo info)Convert msg to a #GBytes.bool toCaps(gst.caps.Caps caps)