AVPlayer.swift 583 B

1234567891011121314151617181920212223
  1. //
  2. // AVPlayer.swift
  3. // Mastodon
  4. //
  5. // Created by xiaojian sun on 2021/3/10.
  6. //
  7. import AVKit
  8. // MARK: - CustomDebugStringConvertible
  9. extension AVPlayer.TimeControlStatus: CustomDebugStringConvertible {
  10. public var debugDescription: String {
  11. switch self {
  12. case .paused: return "paused"
  13. case .waitingToPlayAtSpecifiedRate: return "waitingToPlayAtSpecifiedRate"
  14. case .playing: return "playing"
  15. @unknown default:
  16. assertionFailure()
  17. return ""
  18. }
  19. }
  20. }