feat: implement Linphone SDK integration with video call support
Complete rewrite from stub plugin to (probably) functional liblinphone integration featuring: - Core SDK bridge with registration, calls, and media controls - Platform views for remote and local video rendering - Event channels for registration and call state updates
This commit is contained in:
parent
7bbaf1b827
commit
0375fe4d1a
18 changed files with 901 additions and 52 deletions
27
ios/Classes/Views/LocalView.swift
Normal file
27
ios/Classes/Views/LocalView.swift
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import Flutter
|
||||
import linphonesw
|
||||
|
||||
class LocalView: NSObject, FlutterPlatformView {
|
||||
private var _lvvh: LinphoneVideoViewHolder? = nil
|
||||
private var _view: UIView? = nil
|
||||
|
||||
init(
|
||||
frame: CGRect,
|
||||
viewIdentifier viewId: Int64,
|
||||
arguments args: Any?,
|
||||
binaryMessenger messenger: FlutterBinaryMessenger?,
|
||||
cacher: (UIView) -> Void
|
||||
) {
|
||||
super.init()
|
||||
|
||||
_lvvh = LinphoneVideoViewHolder { view in
|
||||
self._view = view
|
||||
}
|
||||
|
||||
cacher(_view!)
|
||||
}
|
||||
|
||||
func view() -> UIView {
|
||||
return _view!
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue