Pm
Multimedia Packet
Added on v2.6.0
TCP
HTTP
Defines the multimedia packet of Layrz Protocol, this packet is used to send multimedia data from the client to the server. The restrictions of the supported media will depend on your server configuration.
Example Usage
<Pm>FILENAME;CONTENT_TYPE;BASE64_CONTENT;CRC16</Pm>
Parameter | Type | Description | Example |
---|---|---|---|
FILENAME | string | File name of the media file, this name should not contain the extension. | video1 |
CONTENT_TYPE | string | Content Type (or Mime Type) of the file, used to infer the extension. | video/mp4 |
BASE64_CONTENT | string | Base64 encoded content of the media file, this content should be the full content of the file. | AAAA...== |
CRC16 | integer | Cyclic Redundancy Check for error checking. | 1234 |