diff --git a/app/xcode/Sources/VCamMedia/VideoFormat+.swift b/app/xcode/Sources/VCamMedia/VideoFormat+.swift new file mode 100644 index 0000000..00c716c --- /dev/null +++ b/app/xcode/Sources/VCamMedia/VideoFormat+.swift @@ -0,0 +1,22 @@ +// +// VideoFormat+.swift +// +// +// Created by Tatsuya Tanaka on 2022/04/22. +// + +import VCamEntity +import AVFoundation + +public extension VideoFormat { + var fileType: AVFileType { + switch self { + case .mp4: + return .mp4 + case .mov: + return .mov + case .m4v: + return .m4v + } + } +} diff --git a/app/xcode/Sources/VCamTracking/InterfaceType+.swift b/app/xcode/Sources/VCamTracking/InterfaceType+.swift index 32ca74f..f6c16c5 100644 --- a/app/xcode/Sources/VCamTracking/InterfaceType+.swift +++ b/app/xcode/Sources/VCamTracking/InterfaceType+.swift @@ -14,7 +14,7 @@ public extension NWInterface.InterfaceType { private var names: [String] { switch self { case .wifi: - return ["en0"] + return ["en0", "en1"] case .wiredEthernet: return ["en2", "en3", "en4"] case .cellular: