RevueSDK · Swift reference Guides

Enumeration

VideoCodec

視訊編碼器(含對應 encoding 參數)

enum VideoCodec

Overview

enum with associated value — codec 跟 encoding 綁在一起,型別系統保證不會出現 「codec 是 h264、但傳 vp8 encoding」的矛盾組合。

5 個 static preset 常數

VideoCodec.h264Default        // H.264 + 預設 bitrate 3 Mbps
VideoCodec.vp8LowLatency      // VP8 + 低延遲 preset (CBR)
VideoCodec.vp8HighQuality     // VP8 + 高畫質 preset (VBR)
VideoCodec.vp8LowBandwidth    // VP8 + 弱網優先 preset (CQ)
VideoCodec.vp8AllKeyframe     // VP8 + 每幀 keyframe(不破圖)

Topics

Enumeration Cases

Instance Properties

Type Properties