ObservableVideoSource
open class ObservableVideoSource : NSObject, VideoSource
Helper class handling observers: storing, releasing, notifying. Observers are held weakly by the instance of the class. You may inherit your video source from this class to avoid handling observers yourself.
-
Provides default value of
isExternal
parameter. Override if your video source is represented by a module separate from the device.Declaration
Swift
open var isExternal: Bool
-
Use this method to notify all observers about newly available
VideoSample
orCameraParameters
.Declaration
Swift
public func notify(_ closure: (VideoSourceObserver) -> Void)