Im building a VR app using mainly Oculus Rift right now (but also developing for HTC Vive).
It has always worked fine, having the audio of the app coming out of the headphones attached to the Oculus Rift, so I have never had to specify it. But, recently, when I play a video file within the app (both in playing form unity in the editor as from a windows Unity build), the sounds of the app starts to play through my default speakers in the laptop. If I plug headphones, the sound would come out of the headphones as usual, but never from the ones in the HMD, unless I set that option as default.
After playing the video within the app, any other sound I trigger through interaction comes correctly from the HMD headphones.
I cannot assume that every user would have set the rift as default output sound in their system, so I would appreciate some help and directions on how to set it from Unity.
PS: I have tried asking in Unity forums with no answer