Closed
Bug 1300468
Opened 8 years ago
Closed 8 years ago
Implement mediaDevices.ondevicechange for Windows
Categories
(Core :: WebRTC: Audio/Video, defect, P2)
Core
WebRTC: Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: mchiang, Assigned: mchiang, NeedInfo)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 1 obsolete file)
6.91 KB,
patch
|
mchiang
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•8 years ago
|
||
It seems we need to migrate to Media Foundation to support this feature.
Updated•8 years ago
|
Rank: 27
Priority: -- → P2
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → mchiang
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•8 years ago
|
||
It turns out comment 1 was wrong. We don't need to migrate to Media foundation to support this api.
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8797541 [details] Bug 1300468 - implement mediaDevices.ondevicechange for Windows; https://reviewboard.mozilla.org/r/83232/#review82090 r+ with nits. Note I'm not really a windows-API guy ::: media/webrtc/trunk/webrtc/modules/video_capture/windows/device_info_ds.cc:51 (Diff revision 1) > +LRESULT CALLBACK WndProc(HWND hWnd, UINT uiMsg, WPARAM wParam, LPARAM lParam) > +{ > + if (uiMsg == WM_DEVICECHANGE) > + { > + DeviceInfoDS* dsInfo = DeviceInfoDSSingleton::GetInfo(); > + if (dsInfo != NULL) { dsInfo->DeviceChange(); } no single-line if's (see below) ::: media/webrtc/trunk/webrtc/modules/video_capture/windows/device_info_ds.cc:139 (Diff revision 1) > + _wndClass.lpszClassName = TEXT("DeviceInfoDS"); > + _wndClass.hInstance = _hInstance; > + > + if (RegisterClass(&_wndClass)) > + { > + _hwnd = CreateWindow(_wndClass.lpszClassName, NULL, 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, _hInstance, NULL); please wrap the line ::: media/webrtc/trunk/webrtc/modules/video_capture/windows/device_info_ds.cc:150 (Diff revision 1) > RELEASE_AND_CLEAR(_dsDevEnum); > if (_CoUninitializeIsRequired) > { > CoUninitialize(); > } > + if (_hwnd != NULL) { DestroyWindow(_hwnd); } No single-line if's please. In this file, use: if (...) { ... }
Attachment #8797541 -
Flags: review?(rjesup) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 6•8 years ago
|
||
has problems to apply: patching file dom/media/tests/mochitest/mochitest.ini Hunk #1 FAILED at 35 1 out of 1 hunks FAILED -- saving rejects to file dom/media/tests/mochitest/mochitest.ini.rej patch failed to apply abort: fix up the working directory and run hg transplant --continue
Flags: needinfo?(mchiang)
Keywords: checkin-needed
Assignee | ||
Comment 7•8 years ago
|
||
Please apply the rebased patch.
Attachment #8797541 -
Attachment is obsolete: true
Flags: needinfo?(mchiang) → needinfo?(cbook)
Attachment #8798282 -
Flags: review+
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/18722be58f18 implement mediaDevices.ondevicechange for Windows; r=jesup
Updated•8 years ago
|
Keywords: dev-doc-needed
Comment 10•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/18722be58f18
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Comment 11•8 years ago
|
||
Added info about Windows compat arriving in Firefox 52 to the following pages: https://developer.mozilla.org/en-US/docs/Web/Events/devicechange https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices https://developer.mozilla.org/en-US/Firefox/Experimental_features https://developer.mozilla.org/en-US/Firefox/Releases/52
Keywords: dev-doc-needed → dev-doc-complete
Comment 12•8 years ago
|
||
Fyi, I think this is still behind a pref? media.ondevicechange.enabled
Flags: needinfo?(eshepherd)
You need to log in
before you can comment on or make changes to this bug.
Description
•