 
 
 	// This is just called if <param name="onload" value="true" /> in plugin.xml.
-	override init(webView: UIWebView) {
-		NSLog("iosrtcPlugin#init()")
+	override func pluginInitialize() {
+		NSLog("iosrtcPlugin#pluginInitialize()")
 
 		// Initialize DTLS stuff.
 		RTCPeerConnectionFactory.initializeSSL()

@objc(iosrtcPlugin) // This class must be accesible from Objective-C.
class iosrtcPlugin : CDVPlugin {
	// RTCPeerConnectionFactory single instance.
	var rtcPeerConnectionFactory: RTCPeerConnectionFactory
	// Single PluginGetUserMedia instance.
	var pluginGetUserMedia: PluginGetUserMedia;
	// PluginRTCPeerConnection dictionary.
	var pluginRTCPeerConnections: [Int : PluginRTCPeerConnection] = [:]
	// PluginMediaStream dictionary.

		self.pluginGetUserMedia = PluginGetUserMedia(
			rtcPeerConnectionFactory: rtcPeerConnectionFactory
		)
	}


