Web SDK - IMediaBody

Home > rainway-sdk > IMediaBody

IMediaBody type

The body of a MediaDatagram.

Signature:

export declare type IMediaBody = {
    discriminator: 1;
    value: IVideoData;
} | {
    discriminator: 2;
    value: IPointerData;
} | {
    discriminator: 3;
    value: IAudioData;
} | {
    discriminator: 4;
    value: IMediaChunk;
};

References: IVideoData, IPointerData, IAudioData, IMediaChunk