forked from AgoraIO/API-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigs.swift
More file actions
55 lines (50 loc) · 1.18 KB
/
Configs.swift
File metadata and controls
55 lines (50 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
// Configs.swift
// APIExample
//
// Created by 张乾泽 on 2020/8/29.
// Copyright © 2020 Agora Corp. All rights reserved.
//
import Foundation
struct Resolution {
var width: Int
var height: Int
func name() -> String {
return "\(width)x\(height)"
}
func size() -> CGSize {
return CGSize(width: width, height: height)
}
}
struct Layout {
let label: String
let value: Int
init(_ k: String, _ v: Int) {
self.label = k
self.value = v
}
}
class Configs {
static var defaultProxySettingIdx: Int = 1
static var defaultResolutionIdx: Int = 2
static var Resolutions:[Resolution] = [
Resolution(width: 320, height: 240),
Resolution(width: 640, height: 480),
Resolution(width: 960, height: 720),
Resolution(width: 1920, height: 1080)
]
static var defaultFpsIdx: Int = 1
static var Fps:[Int] = [
15,
30
]
static var Proxy:[Bool] = [
true,
false
]
static var VideoContentHints:[AgoraVideoContentHint] = [
AgoraVideoContentHint.none,
AgoraVideoContentHint.motion,
AgoraVideoContentHint.details
]
}