@mentra/glasses-media 3.2.1-dev.314 → 3.3.0-beta.1000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -2
- package/android/src/main/java/com/mentra/glassesmedia/network/InternetHold.kt +8 -7
- package/android/src/main/java/com/mentra/glassesmedia/publisher/PhoneWhipPublisher.kt +11 -8
- package/android/src/main/java/com/mentra/glassesmedia/source/DecodedFrameTap.kt +224 -0
- package/android/src/main/java/com/mentra/glassesmedia/source/StillPhotoInbox.kt +50 -0
- package/android/src/main/java/com/mentra/glassesmedia/source/WhipIngestProtocol.kt +22 -0
- package/android/src/main/java/com/mentra/glassesmedia/source/WhipIngestServer.kt +110 -10
- package/index.d.ts +11 -0
- package/index.js +9 -0
- package/ios/CoreKit/Sources/GlassesMediaCore/DecodedFrameTapCore.swift +204 -0
- package/ios/CoreKit/Sources/GlassesMediaCore/HotspotAccessPurpose.swift +5 -0
- package/ios/CoreKit/Sources/GlassesMediaCore/HotspotInterfacePolicy.swift +155 -0
- package/ios/CoreKit/Sources/GlassesMediaCore/HotspotJoinFailure.swift +23 -0
- package/ios/CoreKit/Sources/GlassesMediaCore/HotspotNetworkOwnership.swift +22 -0
- package/ios/CoreKit/Sources/GlassesMediaCore/MacHotspotAssociation.swift +161 -0
- package/ios/CoreKit/Sources/GlassesMediaCore/MacHotspotAuthorization.swift +59 -0
- package/ios/DecodedFrameTap.swift +64 -0
- package/ios/GlassesHotspotNetwork.swift +254 -73
- package/ios/GlassesMedia.podspec +1 -1
- package/ios/GlassesMediaRelayModule.swift +61 -11
- package/package.json +6 -1
- package/ios/CoreKit/Sources/GlassesMediaCore/MacE2EHotspotLease.swift +0 -20
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#if MENTRA_E2E
|
|
2
|
-
import Foundation
|
|
3
|
-
|
|
4
|
-
/// Test-build dependency input, not a production network discovery mechanism.
|
|
5
|
-
/// The Mac harness owns association and verifies the USB fixture, gateway MAC,
|
|
6
|
-
/// DHCP address, local health and Ethernet before launching this process.
|
|
7
|
-
public struct MacE2EHotspotLease: Decodable {
|
|
8
|
-
public let ssid: String
|
|
9
|
-
public let gateway: String
|
|
10
|
-
public let address: String
|
|
11
|
-
public let issuedAt: TimeInterval
|
|
12
|
-
|
|
13
|
-
public func matches(ssid: String, gateway: String?, address: String?, now: TimeInterval) -> Bool {
|
|
14
|
-
let age = now - issuedAt
|
|
15
|
-
return age >= 0 && age <= 300 && self.gateway == gateway && self.address == address &&
|
|
16
|
-
LocalMediaPolicy.canReuseHotspot(requestedSSID: ssid, currentSSID: self.ssid,
|
|
17
|
-
address: address, gateway: gateway)
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
#endif
|