From a3002a20bd36c03df6828268434ab02146b69f73 Mon Sep 17 00:00:00 2001 From: Mike McLaughlin Date: Fri, 19 Jul 2024 06:24:49 -0500 Subject: [PATCH] added support for LiveKit Meet - https://meet.livekit.io/ - meeting links --- .../livekit_icon.imageset/Contents.json | 12 ++++++++++++ .../livekit_icon.imageset/livekit.png | Bin 0 -> 678 bytes MeetingBar/MeetingServices.swift | 6 ++++++ MeetingBarTests/MeetingServicesTests.swift | 4 +++- 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 MeetingBar/Assets.xcassets/vendor-icons/livekit_icon.imageset/Contents.json create mode 100644 MeetingBar/Assets.xcassets/vendor-icons/livekit_icon.imageset/livekit.png diff --git a/MeetingBar/Assets.xcassets/vendor-icons/livekit_icon.imageset/Contents.json b/MeetingBar/Assets.xcassets/vendor-icons/livekit_icon.imageset/Contents.json new file mode 100644 index 00000000..9fce8f10 --- /dev/null +++ b/MeetingBar/Assets.xcassets/vendor-icons/livekit_icon.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "livekit.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MeetingBar/Assets.xcassets/vendor-icons/livekit_icon.imageset/livekit.png b/MeetingBar/Assets.xcassets/vendor-icons/livekit_icon.imageset/livekit.png new file mode 100644 index 0000000000000000000000000000000000000000..bd9abb0f1dce8e855b63bbfc43a0c1b948e9f881 GIT binary patch literal 678 zcmeAS@N?(olHy`uVBq!ia0vp^CqS5k2}mkgS)OEIV9ND$aSW-L^XAq@UuH)Mwm^q< z33m@}b>_U{&bei?>;-1cX&rB5`NG~mU4A>^i~If5o{uc6_s;pt@J&TW=#Y{k{fR=$ z-;DONi|_q?TPWjw|C6-c{kZr4zWw^Q@r!QujtG?&S100$e=nZ>wZE0W{U3*TcgqG3 z4&sTkzj=3m4UHku`)2RW3p4&X#fBo@}-?#sM`=m#T xW&yFz=Z42_<|jClsEq^%67o&wdSH_K|NrSDiL}0a!?{2XgQu&X%Q~loCID+)+ NSRegularExpression? { @@ -615,6 +617,10 @@ func getIconForMeetingService(_ meetingService: MeetingServices?) -> NSImage { image = NSImage(named: "zm_page_icon")! image.size = NSSize(width: 16, height: 16) + case .some(.livekit): + image = NSImage(named: "livekit_icon")! + image.size = NSSize(width: 16, height: 16) + // tested and verified case .none: image = NSImage(named: "no_online_session")! diff --git a/MeetingBarTests/MeetingServicesTests.swift b/MeetingBarTests/MeetingServicesTests.swift index 318a3e21..65d13faa 100644 --- a/MeetingBarTests/MeetingServicesTests.swift +++ b/MeetingBarTests/MeetingServicesTests.swift @@ -43,7 +43,9 @@ let meetings = [ MeetingLink(service: .suitConference, url: URL(string: "https://turkcell.conference.istesuit.com/username")!), MeetingLink(service: .doxyMe, url: URL(string: "https://bbc.doxy.me/dr.who")!), MeetingLink(service: .calcom, url: URL(string: "https://app.cal.com/video/1de4BmdXEb983kIUHomUnA")!), - MeetingLink(service: .zmPage, url: URL(string: "https://meetingbar.zm.page")!) + MeetingLink(service: .zmPage, url: URL(string: "https://meetingbar.zm.page")!), + MeetingLink(service: .livekit, url: URL(string: "https://meet.livekit.io/rooms/et5r-y80t#r56ryirofs8jjfi3rnxu8ab3qhjsRn6die6mvjhwux82opmkao8bfjb9wggnr2L6")!), + MeetingLink(service: .livekit, url: URL(string: "https://meet.staging.livekit.io/rooms/of4q-y10s")!) ] class MeetingServicesTests: XCTestCase {