Video call improvements

This commit is contained in:
Ali
2020-07-10 19:57:40 +04:00
parent e1ac3c98df
commit eee4036987
50 changed files with 454 additions and 17960 deletions

View File

@@ -46,9 +46,10 @@ public struct PresentationCallState: Equatable {
public enum VideoState: Equatable {
case notAvailable
case available(Bool)
case possible
case outgoingRequested
case incomingRequested
case active
case activeOutgoing
}
public enum RemoteVideoState: Equatable {
@@ -87,6 +88,7 @@ public protocol PresentationCall: class {
var peerId: PeerId { get }
var isOutgoing: Bool { get }
var isVideo: Bool { get }
var isVideoPossible: Bool { get }
var peer: Peer? { get }
var state: Signal<PresentationCallState, NoError> { get }
@@ -103,7 +105,7 @@ public protocol PresentationCall: class {
func toggleIsMuted()
func setIsMuted(_ value: Bool)
func setEnableVideo(_ value: Bool)
func requestVideo()
func setOutgoingVideoIsPaused(_ isPaused: Bool)
func switchVideoCamera()
func setCurrentAudioOutput(_ output: AudioSessionOutput)