- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
class ConferenceViewController: UIViewController { var token: String! @IBOutlet weak var videoView: RTCEAGLVideoView! lazy var client: RTCConferenceClient = {[unowned self] in let config = RTCConferenceClientConfiguration() config.iceServers = [] config.mediaCodec.videoCodec = VideoCodec.H264.rawValue let client = RTCConferenceClient(configuration: config)! return client }() override func viewDidLoad() { super.viewDidLoad() client.add(self) print(client) } override func viewDidDisappear(_ animated: Bool) { super.viewDidDisappear(animated) client.remove(self) } deinit { print("deinit") } }
析构函数永远不会执行,但是如果不执行client.add(self)这句析构函数就会正常执行(SDK3.1)
- Tags:
- HTML5
- JavaScript*
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi xiuming,
removeObserver is an undocumented API, and it is not implemented yet.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page