canSwitchToVideo() calls getVideoTracksCount() which can block main thread. (cherry picked from commit 95c9aa0a)