PiPHKView
public class PiPHKView : NSView
extension PiPHKView: MediaMixerOutput
extension PiPHKView: HKStreamOutput
A view that displays a video content of a NetStream object which uses AVSampleBufferDisplayLayer api.
-
The view’s background color.
Declaration
Swift
public static var defaultBackgroundColor: NSColor
-
A value that specifies how the video is displayed within a player layer’s bounds.
Declaration
Swift
public var videoGravity: AVLayerVideoGravity { get set }
-
Specifies how the video is displayed with in track.
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
override 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()
-
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)