IMAudioView.swift 655 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // IMAudioView.swift
  3. // O2Platform
  4. //
  5. // Created by FancyLou on 2020/6/17.
  6. // Copyright © 2020 zoneland. All rights reserved.
  7. //
  8. import UIKit
  9. class IMAudioView: UIView {
  10. static let IMAudioView_width: CGFloat = 76
  11. static let IMAudioView_height: CGFloat = 36
  12. @IBOutlet weak var playImageView: UIImageView!
  13. @IBOutlet weak var durationLabel: UILabel!
  14. private var playUrl: String? = nil
  15. override func awakeFromNib() {
  16. }
  17. func setPlayUrl(url: String?) {
  18. self.playUrl = url
  19. }
  20. func setDuration(duration: String) {
  21. self.durationLabel.text = "\(duration)\""
  22. }
  23. }