rurico / flutter_record

⛔️[DEPRECATED] A flutter plugin for recorder audio and audio player.of course, you can cancel the recording.
MIT License
19 stars 5 forks source link

run mistake #4

Closed isRaining closed 5 years ago

isRaining commented 5 years ago

我下载了你的项目,运行后报出一下错误:

optional public func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool)
^
/Users/zhangzhengyu/Downloads/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:147:33: error: cannot convert value of type 'Int' to expected argument type 'TimeInterval' (aka 'Double')
player!.play(atTime: self.pausePosition)
~~~~~^~~~~~~~~~~~~
TimeInterval(     )
/Users/zhangzhengyu/Downloads/flutter_record-0.1.3/ios/Classes/SwiftFlutterRecordPlugin.swift:174:38: error: cannot assign value of type 'TimeInterval' (aka 'Double') to type 'Int'
self.pausePosition = player!.currentTime
~~~~~~~~^~~~~~~~~~~
Int(               )
Could not build the precompiled application for the device.
rurico commented 5 years ago

解决了