Commit 818a59b3 authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

no message

parent c5feba56
......@@ -186,9 +186,17 @@ class SHRecordShowViewController: SHBaseViewController {
playingTimeLab.text = self.countSecond(playerTimeCount)
progress.value = Float(playerTimeCount)
if playerTimeCount >= model!.during{
var total: Int?
if let time = player?.duration{
total = Int(time)
totalTimeLab.text = self.countSecond(total!)
progress.maximumValue = Float(total!)
}
if playerTimeCount >= ((total != nil ? total : model!.during)!){
playerTimer?.invalidate()
progress.value = 1.0
progress.value = Float(((total != nil ? total : model!.during)!))
recorderBtn.isSelected = true
playerTimeCount = 0
}
......
......@@ -346,11 +346,12 @@ class SHRecordViewController: SHBaseViewController {
}
if self.recorderBtn.isSelected == true {
if self.start == false {
if self.start == true {
self.speechStop()
self.configSpeechTask()
}else{
self.start = false
}else{
// self.start = false
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment