• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to distinguish between different MS Teams statuses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to distinguish between different MS Teams statuses


  • Subject: How to distinguish between different MS Teams statuses
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Thu, 22 Jul 2021 19:45:14 +0200

My questions is quite simple:
is it possible to determine - in my own app - whether or not there is an MS
Teams video call taking place at the moment?

So far, i have been checking whether or not MS Teams is running by the
following snippet (omitting some of the safety guards):

let mainScreen = NSScreen.main
let options : CGWindowListOption = [.excludeDesktopElements ,
.optionOnScreenOnly ]
let winArray = CGWindowListCopyWindowInfo(options, kCGNullWindowID) as? [[
String : Any]]
let win_name : String = winInfo[kCGWindowName as String] as? String
                                    ?? winInfo[kCGWindowOwnerName as String]
as? String
                                    ?? "???"
if ( win_name == "Microsoft Teams" )
    increment counter for that VC Tool

This works pretty well for other kinds of VC tools, such as Zoom and Webex.

But with MS Teams, it does not quite work.

With other VC tools, there is usually two windows, the second one being created
only when an actual video call is occurring at the moment.
Not so with MS Teams. It always has only one window.

The problem is that even if a video call is going on, the window's name is only
"Microsoft Teams".

So, I was wondering if there is any other method how I could detect whether or
not a video call in MS Teams is taking place.


Best regards, Gabriel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to distinguish between different MS Teams statuses
      • From: Alex Zavatone via Cocoa-dev <email@hidden>
    • Re: How to distinguish between different MS Teams statuses
      • From: Ben Kennedy via Cocoa-dev <email@hidden>
  • Next by Date: Re: How to distinguish between different MS Teams statuses
  • Next by thread: Re: How to distinguish between different MS Teams statuses
  • Index(es):
    • Date
    • Thread