Skip to content
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>
ParameterTypeDescriptionExample
FILENAMEstringFile name of the media file, this name should not contain the extension.video1
CONTENT_TYPEstringContent Type (or Mime Type) of the file, used to infer the extension.video/mp4
BASE64_CONTENTstringBase64 encoded content of the media file, this content should be the full content of the file.AAAA...==
CRC16integerCyclic Redundancy Check for error checking.1234