HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - IMediaBody

Home > @rainway/web > 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