Support voice broadcast live playback (#7094)

This commit is contained in:
Yoan Pintas
2022-11-25 20:59:34 +01:00
committed by GitHub
parent 5e5272ad03
commit 0cb4e69f05
17 changed files with 116 additions and 148 deletions
@@ -19,36 +19,29 @@ import Foundation
extension VoiceBroadcastInfo {
// MARK: - Constants
public enum State: String {
case started
case paused
case resumed
case stopped
}
// MARK: - Public
@objc static func isStarted(for name: String) -> Bool {
return name == State.started.rawValue
return name == VoiceBroadcastInfoState.started.rawValue
}
@objc static func isStopped(for name: String) -> Bool {
return name == State.stopped.rawValue
return name == VoiceBroadcastInfoState.stopped.rawValue
}
@objc static func startedValue() -> String {
return State.started.rawValue
return VoiceBroadcastInfoState.started.rawValue
}
@objc static func pausedValue() -> String {
return State.paused.rawValue
return VoiceBroadcastInfoState.paused.rawValue
}
@objc static func resumedValue() -> String {
return State.resumed.rawValue
return VoiceBroadcastInfoState.resumed.rawValue
}
@objc static func stoppedValue() -> String {
return State.stopped.rawValue
return VoiceBroadcastInfoState.stopped.rawValue
}
}