Closed Bug 1196507 Opened 11 years ago Closed 10 years ago

Firefox does not support hot-swapping VR devices

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jcarpenter, Unassigned)

References

Details

(Whiteboard: [webvr])

## User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:43.0) Gecko/20100101 Firefox/43.0 ## Steps to reproduce: * Use Firefox Nightly + WebVR Add-on (mozvr.com/downloads) * Open Firefox Nightly without Oculus DK2 plugged in to computer * Load http://mozvr.github.io/sechelt/ * Plug-in DK2 ## Actual results: The VR scene does not respond to the headset, as the user would expect. Refreshing the scene has no effect. Nor does closing the tab and reloading the same scene. The following does work, however (plugging in the Rift after Firefox has already started, but before a VR scene has been loaded): * Use Firefox Nightly + WebVR Add-on (mozvr.com/downloads) * Open Firefox Nightly without Oculus DK2 plugged in to computer * Plug-in DK2 * Load http://mozvr.github.io/sechelt/ ## Expected results: User can plug in a headset with Firefox already open and a VR scene already loaded, and the Vr scene will recognize and respond to the VR headset immediately, without having to refresh the scene or restart Firefox.
WebVR API does not currently specify events for connecting / disconnecting VR devices. There is some discussion between Vlad and Brandon Jones about adding them to the spec, as part of a potential switch to Presentation API (away from requestFullScreen) as the mechanism by which we manage VR mode.
Whiteboard: [webvr]
Component: Untriaged → DOM: Device Interfaces
Product: Firefox → Core
Version: unspecified → Trunk
By way of additional background, new WebVR users frequently report that "it's not working", despite their headset being plugged in and the right version of Firefox + Add-on installed. The most reliable solution is instructing them to turn off Firefox, make sure their headset is plugged in, then reopen Firefox. This is a foot gun we want to fix. We also want to eventually support motion control devices like the Oculus Touch, which will be inherently more prone to dropping connectivity.
Hot swapping of HMD's has been implemented in Bug 1182048, with a polling model. This bug should be kept alive to track implementation of a better event-driven api.
Depends on: 1182048
(In reply to :kip (Kearwood Gilbert) from comment #3) > Hot swapping of HMD's has been implemented in Bug 1182048, with a polling > model. This bug should be kept alive to track implementation of a better > event-driven api. To avoid confusion, I will close this bug as hot swapping is now enabled in Nightly. When the updated WebVR API is spec'ed, it will include the events to more conveniently receive hot swap notifications but that is a different issue.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.