Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Is it possible to detect / get a callback when headphones are connected / disconnected

As per the title: Is it possible to detect / get a callback when headphones are connected / disconnected?

Best thing I've found so far is to build a tiny android lib myself, but if there's a native Oculus API to do this that would keep things tidier.
Tagged:

Comments

  • Tolin93Tolin93 Posts: 74
    Hiro Protagonist
    The Android AudioManager (android.media.AudioManager) has a broadcast action called ACTION_HEADSET_PLUG for detecting when a wired headset is connected/disconnected.
Sign In or Register to comment.