VideoCodec
@objcMembers
@objc(PESDKVideoCodec)
open class VideoCodec : NSObject
Represents different video codecs.
-
The H264 video codec.
Declaration
Swift
public static func h264(withBitRate bitRate: NSNumber?) -> VideoCodec
Parameters
bitRate
The bit rate to use in bits per second. The value of the input video will be used if you do not specify this value.
Return Value
The H264 video codec.
-
The HEVC video codec. This can only be used with iOS 11 and above.
Declaration
Swift
@available(iOS 11.0, *) public static func hevc(withQuality quality: NSNumber) -> VideoCodec
Parameters
quality
The compression quality between 0.0 and 1.0. 1.0 indicates lossless compression.
Return Value
The HEVC video codec.