Instance Property
type
取出 codec type(忽略 associated encoding),用於 map key / 比對 codec 類型
var type: VideoCodecType { get }Discussion
let codec: VideoCodec = .vp8(Vp8Encoding())
codec.type == .vp8 // true
Instance Property
取出 codec type(忽略 associated encoding),用於 map key / 比對 codec 類型
var type: VideoCodecType { get }let codec: VideoCodec = .vp8(Vp8Encoding())
codec.type == .vp8 // true