Determine if user is in speaker or gallery mode

Is there a way to determine whether a user is in gallery mode or in speaker mode during a zoom call using the JS zoom sdk, webhooks or the api?