Skip to content

Commit

Permalink
Fix the information about WiFi
Browse files Browse the repository at this point in the history
  • Loading branch information
tattn committed Aug 27, 2023
1 parent d0473a1 commit 1e0397e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions app/xcode/Sources/VCamMedia/VideoFormat+.swift
Original file line number Diff line number Diff line change
@@ -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
}
}
}
2 changes: 1 addition & 1 deletion app/xcode/Sources/VCamTracking/InterfaceType+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1e0397e

Please sign in to comment.