 				label: label,
 				options: options,
 				eventListener: { (data: NSDictionary) -> Void in
-					let result = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: data as! [AnyHashable: Any])
+					let result = CDVPluginResult(
+						status: CDVCommandStatus_OK,
+						messageAs: data as? [AnyHashable: Any]
+					)
 
 					// Allow more callbacks.
 					result!.setKeepCallbackAs(true);

		}
	}


	fileprivate func deleteMediaStream(_ id: String) {
		self.pluginMediaStreams[id] = nil
	}


	fileprivate func saveMediaStreamTrack(_ pluginMediaStreamTrack: PluginMediaStreamTrack) {
		if self.pluginMediaStreamTracks[pluginMediaStreamTrack.id] == nil {

				data: data,
				callback: { (data: NSDictionary) -> Void in
					self.emit(command.callbackId,
						result: CDVPluginResult(
							status: CDVCommandStatus_OK,
							messageAs: data as? [AnyHashable: Any]
						)
					)
				}
			)
