{"json_modified": "2016-10-21T17:53:25.783623", "uuid": "8a79e65c-f502-4a2e-b974-ac5b5ac15b66", "title": "MediaDevices.ondevicechange", "url": "/en-US/docs/Web/API/MediaDevices/ondevicechange", "tags": ["Event Handler", "API", "ondevicechanged", "MediaDevices", "Reference", "Property", "Audio", "Video", "video", "Media Capture and Streams API", "Media", "audio"], "translations": [], "modified": "2016-10-21T17:53:25", "label": "MediaDevices.ondevicechange", "localization_tags": [], "locale": "en-US", "id": 196823, "last_edit": "2016-10-21T17:53:15", "summary": "The MediaDevices.ondevicechange property is an EventHandler which specifies a function to be called when the devicechange event occurs on a MediaDevices instance. This happens whenever the set of media devices available to the user agent and, by extension, to the web site or app. You can at any time use enumerateDevices() to get the updated list of available devices.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Value", "title": "Value"}, {"id": "Example", "title": "Example"}, {"id": "HTML_content", "title": "HTML content"}, {"id": "CSS_content", "title": "CSS content"}, {"id": "JavaScript_content", "title": "JavaScript content"}, {"id": "Other_code", "title": "Other code"}, {"id": "Getting_and_drawing_the_device_list", "title": "Getting and drawing the device list"}, {"id": "Handling_device_list_changes", "title": "Handling device list changes"}, {"id": "Result", "title": "Result"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/MediaDevices/ondevicechange", "review_tags": []}