MTHKView
public class MTHKView : MTKView
extension MTHKView: MediaMixerOutput
extension MTHKView: HKStreamOutput
A view that displays a video content of a NetStream object which uses Metal api.
-
Specifies how the video is displayed within a player layer’s bounds.
Declaration
Swift
public var videoGravity: AVLayerVideoGravity
-
Declaration
Swift
public var videoTrackId: UInt8?
-
Declaration
Swift
public var audioTrackId: UInt8?
-
Initializes and returns a newly allocated view object with the specified frame rectangle.
Declaration
Swift
public init(frame: CGRect)
-
Returns an object initialized from data in a given unarchiver.
Declaration
Swift
public required init(coder aDecoder: NSCoder)
-
Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file.
Declaration
Swift
override public func awakeFromNib()
-
Redraws the view’s contents.
Declaration
Swift
override public func draw(_ rect: CGRect)
-
Registers a video effect.
Declaration
Swift
public func registerVideoEffect(_ effect: some VideoEffect) -> Bool
-
Unregisters a video effect.
Declaration
Swift
public func unregisterVideoEffect(_ effect: some VideoEffect) -> Bool
-
selectTrack(_:
AsynchronousmediaType: ) Declaration
Swift
public func selectTrack(_ id: UInt8?, mediaType: CMFormatDescription.MediaType) async
-
Declaration
Swift
nonisolated public func mixer(_ mixer: MediaMixer, didOutput buffer: AVAudioPCMBuffer, when: AVAudioTime)
-
Declaration
Swift
nonisolated public func mixer(_ mixer: MediaMixer, didOutput sampleBuffer: CMSampleBuffer)