Skip to content

Moving from 1.5.5 APIs to 1.6.x

shogo4405 edited this page Sep 17, 2023 · 3 revisions

I have switched development to Xcode 15. Consequently, the supported iOS and tvOS versions will be 12.0 and later.

RTMPStream

1.5.5

open class RTMPStream:: AnyObject {
   open func createMetaData() -> ASObject
}

1.6.0

open class RTMPStream:: AnyObject {
   open func makeMetaData() -> ASObject
}

VideoCodecSettings

1.5.5

struct VideoCodecSettings: Codable {
    /// Specifies the video size of encoding video.
    public var videoSize: VideoSize
}

1.6.0

struct VideoCodecSettings: Codable {
    /// Specifies the video size of encoding video.
    public var videoSize: CGSize
}

IOUIScreenCaptureUnit

1.5.5

public class IOUIScreenCaptureUnit: NSObject, IOScreenCaptureUnit {
    public var frameInterval: Int = IOUIScreenCaptureUnit.defaultFrameInterval
}

1.6.0

public class IOUIScreenCaptureUnit: NSObject, IOScreenCaptureUnit {
    public var preferredFramesPerSecond: Int = IOUIScreenCaptureUnit.defaultPreferredFramesPerSecond
}