HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - IVideoCodec

Home > @rainway/web > IVideoCodec

IVideoCodec interface

A video codec recognized by Rainway.

Signature:

export interface IVideoCodec 

Properties

PropertyTypeDescription
dataUint8ArrayBytes encoding a "Parameter Set" for this codec. In particular, data[5..7] are the "avcoti" bytes that can be used to construct a MIME type string like video/mp4; codecs="avc1.42001e".
friendlyNamestringA human-readable name for this codec setting.
heightnumberThe video height in pixels.
refreshRatenumberThe video refresh rate in frames per second.
typeVideoCodecTypeA bitmask enum value coarsely describing this codec.
widthnumberThe video width in pixels.