Native iOS API
NativeVideoViewFactory
Conforms to FlutterPlatformViewFactory to create and manage NativeVideoView instances.
- create(...): Instantiates NativeVideoView and stores by viewId.
- getView(byId:): Retrieves the underlying UIView for a given viewId.
NativeVideoView
Encapsulates a UIView container for the native player.
- setupView(): (Placeholder) Initialize your native AVPlayer or SDK player here.
- view(): Returns the UIView instance.
TargetvideoFlutterPlugin (iOS)
Main plugin class conforming to FlutterPlugin and FlutterStreamHandler.
- register(with:): Registers method and event channels, and platform view factory.
- handle(_ call:, result:): Dispatches method calls (load, pauseVideo, etc.) to native SDK.
- StreamHandler: Emits playback/ad events to Dart via eventSink.
Updated 1 day ago