Граф коммитов

630 Коммитов

Автор SHA1 Сообщение Дата
Benjamin Smedberg d9c7494134 Bug 1332639 - Remove the external string API: nsStringAPI.h/cpp and nsEmbedString.h, r=glandium
MozReview-Commit-ID: 9dZcmMAI0Vk

--HG--
extra : rebase_source : 5561cf7f3318c60f082fff02c5e78aba661f6437
2017-02-27 11:41:52 -05:00
Michael Layzell cab1a9949b Bug 1336510 - Part 4: Capture a strong reference to this in dom/media, r=jwwang
MozReview-Commit-ID: 4lVGrGzhVXh
2017-02-24 14:34:23 -05:00
Randell Jesup 8ad25a673c Bug 1284800: Fix build fallout from moving libyuv into a subdirectory r=ted
MozReview-Commit-ID: CDMDXqpGueS
2017-02-24 14:01:56 -05:00
Wes Kocher 7e8f316730 Backed out 8 changesets (bug 1336510) for windows debug mn-e10s failures a=backout
Backed out changeset 419ada2f9e81 (bug 1336510)
Backed out changeset 19239f566a93 (bug 1336510)
Backed out changeset c8aeead6fe83 (bug 1336510)
Backed out changeset 422e63b872b5 (bug 1336510)
Backed out changeset 21869174dfd3 (bug 1336510)
Backed out changeset 57476b9f342d (bug 1336510)
Backed out changeset e842cdaaa7e5 (bug 1336510)
Backed out changeset bd943b368ff7 (bug 1336510)

MozReview-Commit-ID: 2z3Wa9QFkX4
2017-02-23 16:07:41 -08:00
Michael Layzell 1d0870e2e1 Bug 1336510 - Part 4: Capture a strong reference to this in dom/media, r=jwwang
MozReview-Commit-ID: 4lVGrGzhVXh
2017-02-23 12:24:12 -05:00
Jan-Ivar Bruaroey 7e9dbcd83e Bug 1341409: Fix omission of advanced constraints in applying camera constraints. r=jesup
MozReview-Commit-ID: 2qhuv5e6lv9

--HG--
extra : rebase_source : a25747eb160ddd71a241e0f479c7b226cd0e0a6d
2017-02-21 14:41:58 -05:00
Tom Tromey 5f8f360823 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs

--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
Tom Tromey 46ef49f2a5 Bug 1060419 - make MediaEngineWebRTC.h use SprintfLiteral, r=froydnj
MozReview-Commit-ID: AqpCZ3d8hCV

--HG--
extra : rebase_source : 238562638590fa3b0f122f2b1decfd1542cf08b9
2016-12-09 10:10:42 -10:00
Sylvestre Ledru 711f90a537 Bug 1335075 - RTCCertificate.cpp: output truncated before the last format character r=jesup
MozReview-Commit-ID: 7sfDPTfvZ0A

--HG--
extra : rebase_source : a45e32f6e2651cef5c4f754baeef9657d796cbd2
2017-01-30 17:46:39 +01:00
Mats Palmgren 7d5c410670 Bug 1335515 - Add mozilla:: prefix to make MediaEngine.h compile with --disable-webrtc. r=jesup
Part of the original patch already landed in Bug 1335250
2017-02-02 09:12:29 -05:00
Andrea Marchesini a63d7359fa Bug 1335250 - Fix an ambiguous ipc header in MediaEngine.h, r=ehsan 2017-02-02 08:04:13 +01:00
Cykesiopka 28a88f8f35 Bug 1329238 - Make public CryptoKey.h methods return UniqueX NSS types instead of raw pointers. r=ttaubert
The std::unique_ptr based UniqueX types provide better safety over managing raw
pointers.

MozReview-Commit-ID: EwwOfs6RHqy

--HG--
extra : rebase_source : 7fbfca837c09b641bfffcba854d46b3f79645c0d
2017-01-25 00:27:39 +08:00
Andrea Marchesini 98f845f364 Bug 1320170 - dom/media should use nsIPrincipal (and PrincipalInfo) instead origin as string, r=rjesup, r=ehsan 2017-01-28 18:29:13 +01:00
Nico Grunbaum 6a4311817a Bug 1322503 - Hyphenate rtc stats type as per spec. r=jib,smaug
MozReview-Commit-ID: 8zYkt8gOpsM

--HG--
extra : rebase_source : e307ac6bc56a5ce732f8abd2e1a9e5c755dc8fcc
2016-12-16 01:27:40 -08:00
Chris Peterson 64471d9880 Bug 1329562 - Part 1: Remove WebRTC checks for Vista. r=jesup
MozReview-Commit-ID: IGv5weXLIwJ

--HG--
extra : rebase_source : 3bc86cba7cedf37395504f5792d0e8803df30676
2017-01-08 00:18:22 -08:00
Randell Jesup ac570b16c4 Bug 1250356: rollup of changes for webrtc after applying webrtc.org v49 update r=pkerr,ng,pehrsons,etc
See ssh://hg.mozilla.org/users/paulrkerr_gmail.com/webrtc49_merge/ for the
patch development history.
2016-12-27 19:41:02 -05:00
Boris Zbarsky d22d7aafa4 Bug 1320801 part 5. Switch from ShouldResistFingerprinting to ResistFingerprinting (use the caller type, not the document principal) in nsGlobalWindow's devicePixelRatio getter. r=bkelly 2016-12-22 11:05:54 -08:00
Cykesiopka 0bdf96120a Bug 1323998 - Stop using Scoped.h NSS types in dtlsidentity.(cpp|h) and nricectx.cpp. r=mt
Scoped.h is deprecated.

MozReview-Commit-ID: IRFLV2mfN4J

--HG--
extra : rebase_source : 4c2a73ed8c1e9c695716aafb2da099f60f889454
2016-12-21 22:09:10 +08:00
Cykesiopka cee06c73bb Bug 1306359 - Stop using Scoped.h NSS types in RTCCertificate.(cpp|h). r=mt
Scoped.h is deprecated.

MozReview-Commit-ID: BHBVng3Dhmw

--HG--
extra : rebase_source : 121718599962bed8478c6978a38f550408750124
2016-12-15 22:19:16 +08:00
Carsten "Tomcat" Book eb5f79ce29 Merge mozilla-central to autoland 2016-12-13 16:53:28 +01:00
Andrew McCreight fccb0645ed Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
Nathan Froyd 826598caba Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange 2016-12-12 08:45:46 -05:00
Andrew McCreight e31b5489da Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj 2016-12-12 07:58:33 -05:00
Michael Froman eb76cebbf2 Bug 1321628 - add ice restart and rollback counts to about:webrtc. r=drno,smaug
MozReview-Commit-ID: FmZMtwzvmhX

--HG--
extra : rebase_source : 701ec66eabfa0411c4b755fbec8f94b2d4c133b0
2016-11-23 11:48:04 -06:00
vincentliu ec6704029a Bug 1310064 - mark MediaEngineTabVideoSource draw target as uninitialized to avoid triggering assertion with Skia. r=lsalzman, jesup
---
 dom/media/webrtc/MediaEngineTabVideoSource.cpp | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
2016-12-06 21:52:02 -10:00
Randell Jesup f87db31baf Bug 1319566: ensure all registered handles are cleared properly r=padenot 2016-11-30 18:25:53 -05:00
Randell Jesup 299e858926 Bug 1307754 - Set default device index properly on first enumeration. r=padenot
MozReview-Commit-ID: B1Sk3W7v5WC

--HG--
extra : rebase_source : b94d74f81a03df018d096ad224d04651d0516bef
2016-11-20 02:04:21 -05:00
Alex Chronopoulos 936044eee1 Bug 1221574 - [04] Change assert of expected devices in case of Android. r=jesup
MozReview-Commit-ID: 5ueMnCqi5Me
2016-11-18 18:00:48 +02:00
Alex Chronopoulos 5dac7099f3 Bug 1221574 - [03] Hardcode expected mic device on Android. r=jesup
MozReview-Commit-ID: 5sTPpwskJCC
2016-11-18 18:00:48 +02:00
Jan-Ivar Bruaroey 409780816c Bug 1311048 - Pick out Firefox windows as scary by pid (only OSX atm). r=jesup
MozReview-Commit-ID: DwUodsRWswm

--HG--
extra : rebase_source : 0ab4002dfbbb4a0cf0265764d22c598256198d82
2016-09-30 13:23:42 -04:00
Martin Thomson 6d119732db Bug 1312306 - Followup to fix operator error, a=bustage
MozReview-Commit-ID: Idnigs48DpY
2016-11-04 14:48:34 +11:00
Martin Thomson 00a1da3757 Bug 1312306 - Update expires handling on RTCCertificate to match spec, r=bkelly,jib
MozReview-Commit-ID: Idnigs48DpY

--HG--
extra : rebase_source : 6384b670f585cc67b61179c5aa0b691498e008ef
2016-10-24 14:11:43 +11:00
Martin Thomson c09374be30 Bug 1311383 - Use unique pointers for DTLS transport and related, r=Cykesiopka
MozReview-Commit-ID: 79wKQtJjBNP

--HG--
extra : rebase_source : 1f5c7f2417c25d17fb99bc55eff8a6b2e5a333ba
2016-10-20 11:29:58 +11:00
Munro Mengjue Chiang 12cf0bc33c Bug 1307533 - support getUserMedia facingmode on Surface Book; r=jib
MozReview-Commit-ID: IOfWT2EyEPs

--HG--
extra : rebase_source : 12e0f930a6b1770f20a014591f2d4377b5ed95bb
2016-10-27 17:55:09 +08:00
Andreas Pehrson 24b498b985 Bug 1295352 - Release MediaEngineTabVideoSource main-thread-only members on main thread. r=jesup
MozReview-Commit-ID: H3N70b9tGiI

--HG--
extra : rebase_source : e8dd9562fcf0cfe3d37987947ab85f0ac1ef66a3
extra : intermediate-source : 57f7b75e5a6210ba05e58cb6a117151e1d25f29e
extra : source : 5a2bbbf8ce4b6afc4e3649ce9ca5786aac4b5336
2016-08-30 14:17:59 +02:00
Andreas Pehrson d0bbc5938c Bug 1295352 - Use mState in MediaEngineTabVideoSource. r=jesup
MozReview-Commit-ID: 1zZlMXAqpo7

--HG--
extra : rebase_source : be6dadad9f7059a01f5e96d90232275407b80412
extra : intermediate-source : f3dae14842ecbc89f405095c20faa6834ed10a04
extra : source : 65f1bf3e9dec44ffd6c10a2b1a895ef936ba2d8b
2016-08-25 12:25:06 +02:00
Andreas Pehrson 3633aa0676 Bug 1295352 - Check state in MediaEngines' NotifyPull(). r=jesup
GetEndOfAppendedData() returns null and calls a NS_ERROR() if the track we're
looking for doesn't exist - to indicate an error in the caller's code.

When we end a MediaEngine track we set the state to stopped, which we can use
to guard the calls to GetEndOfAppendedData() (and appending data in general).
The locking is already in place.

MozReview-Commit-ID: DuknmBF883H

--HG--
extra : rebase_source : 14f3442407d7895a7e515cd5c0b01ba5ce446961
extra : intermediate-source : a7c8bab2624a1a1b27d6ba472815a0a09fba1b50
extra : source : df194bbc13b651b94b550e281c6d8cae49ce3324
2016-08-23 10:45:09 +02:00
Paul Adenot d83be5fb40 Bug 1312413 - `mDefaultDevice` should be an index in `mDeviceIndexes`. r=jesup
MozReview-Commit-ID: 8UywuqRAegy

--HG--
extra : rebase_source : 08ad3f27cebadc3322e7ea199db90786388a69c0
2016-10-24 17:26:07 +02:00
Sebastian Hengst 3f0c757970 Backed out changeset 081401df2032 (bug 1295352)
--HG--
extra : source : aee84ca17a022f97e4544bd07e6dc54690020640
2016-10-20 20:03:16 +02:00
Sebastian Hengst ab4eaeff9f Backed out changeset 9a2ec23ccac7 (bug 1295352)
--HG--
extra : source : 60e3863206b89848720257e56b0a51fc454ec225
2016-10-20 20:03:16 +02:00
Sebastian Hengst d3910409f1 Backed out changeset d0d0f847d043 (bug 1295352)
--HG--
extra : source : be887787de62889d8761e4402b320f351d571d23
2016-10-20 20:03:16 +02:00
Andreas Pehrson 815ff95d9b Bug 1295352 - Release MediaEngineTabVideoSource main-thread-only members on main thread. r=jesup
MozReview-Commit-ID: H3N70b9tGiI

--HG--
extra : rebase_source : 8f76a3ea740cd0497a6b2c92f93c55db81bc08af
extra : source : 5a2bbbf8ce4b6afc4e3649ce9ca5786aac4b5336
2016-08-30 14:17:59 +02:00
Andreas Pehrson b26ee47c63 Bug 1295352 - Use mState in MediaEngineTabVideoSource. r=jesup
MozReview-Commit-ID: 1zZlMXAqpo7

--HG--
extra : rebase_source : eef2a03702c51247b16b9a39b775b237dbc91394
extra : intermediate-source : 14d75a44ededce3ad449a1d6a10d861a45350cf6
extra : source : 65f1bf3e9dec44ffd6c10a2b1a895ef936ba2d8b
2016-08-25 12:25:06 +02:00
Andreas Pehrson 161f548724 Bug 1295352 - Check state in MediaEngines' NotifyPull(). r=jesup
GetEndOfAppendedData() returns null and calls a NS_ERROR() if the track we're
looking for doesn't exist - to indicate an error in the caller's code.

When we end a MediaEngine track we set the state to stopped, which we can use
to guard the calls to GetEndOfAppendedData() (and appending data in general).
The locking is already in place.

MozReview-Commit-ID: DuknmBF883H

--HG--
extra : rebase_source : 28b6664ce150f70cd8cd650ed71b86357ac0bd9a
extra : intermediate-source : f14bb9ac87468f5df95941eb03174fe1338855cc
extra : source : df194bbc13b651b94b550e281c6d8cae49ce3324
2016-08-23 10:45:09 +02:00
Phil Ringnalda 7fd865b93f Merge autoland to m-c, a=merge
MozReview-Commit-ID: 3nuTAHtJkkD
2016-10-19 18:25:54 -07:00
Andreas Pehrson 37d5531de0 Bug 1284102 - Guard against double-deallocating devices in release. r=jib
MozReview-Commit-ID: 29ySAF3AHIi

--HG--
extra : rebase_source : 5e6af7dc3cbaba078ca18f80e0d2e6c7be748766
extra : source : 71fb9f5efa1c0cd1023b0f8bf717c3b68347b4af
2016-09-21 17:18:25 +02:00
Jan-Ivar Bruaroey fb49e07898 Bug 1284910 - Add scary boolean to mediaDeviceInfo. r=jesup
MozReview-Commit-ID: 2A7QZgUQH8l

--HG--
extra : rebase_source : 15f534bd11d1b8bb4e85de7bc8cac45c99654ce4
2016-09-29 15:37:25 -04:00
Randell Jesup 68f10870b7 Bug 1307042: generate fake audio for getUserMedia from MSG callbacks r=pehrsons 2016-10-03 14:35:36 -04:00
Sebastian Hengst 3c1524e5e0 Bug 1306137 - remove b2g camera code: Remove dom/camera/ and code which depends on it. r=aosmond,bkelly
MozReview-Commit-ID: 7gvZrDtmcZP

--HG--
extra : rebase_source : 31f06357fdc36566465668f55bf3fcc5402fe9e0
2016-10-04 20:16:28 +02:00
Sebastian Hengst 2bd34f750f Bug 1306137 - remove b2g camera code: Remove MOZ_B2G_CAMERA. r=aosmond
MozReview-Commit-ID: D207i9boeTJ

--HG--
extra : rebase_source : 390031b8a74ba145008328129079dcb0dee5a6c1
2016-09-28 21:10:32 +02:00
Jan-Ivar Bruaroey 6668691c20 Bug 1304597 - Remove hardcoded capabilities on OSX that are no longer used r=jesup
MozReview-Commit-ID: 4vENDI1Q9U1
2016-10-07 11:35:07 -04:00
Randell Jesup 7b209b91b2 Bug 1299324: return error if an audio channel is already open until multi-mic support is done r=jib 2016-10-06 21:40:44 -04:00
Wes Kocher 5739609d11 Backed out changeset bc4680ea08a9 (bug 1307042) for android mda test failures a=backout CLOSED TREE 2016-10-03 16:03:12 -07:00
Randell Jesup 88bea09e95 Bug 1307042: generate fake audio for getUserMedia from MSG callbacks r=pehrsons 2016-10-03 14:35:36 -04:00
Randell Jesup e82ae15c8c Bug 1275554: clear mImage aggressively when no longer needed r=perhsons
MozReview-Commit-ID: GNU7p3CyzjH
2016-09-21 15:49:38 -04:00
Randell Jesup 94c164b386 Bug 1303419: Audio gUM allocate/free improvements and nullptr crash fix r=drno 2016-09-17 04:13:00 -04:00
Randell Jesup 1d37a92675 Backed out changeset 4624432ec08e (bug 1303419) 2016-09-16 21:59:28 -04:00
Randell Jesup b376604f81 Bug 1303419: Audio gUM allocate/free improvements and nullptr crash fix r=drno 2016-09-16 21:56:44 -04:00
Randell Jesup 7131b995d6 Bug 1300810: Log cubeb enumeration results for getUserMedia r=padenot 2016-09-15 09:33:34 -04:00
Alexandre Lissy f6ee6d53f2 Bug 1302641 - Update ImageBridgeChild::GetSingleton() use after 1298938 r=nical
MozReview-Commit-ID: Cs7xUcPnPoz
2016-09-14 19:01:21 +02:00
John Dai afa50be601 Bug 1294100 - Part 3: Modify Codegen to generate including FakeString's binding files and fix build errors. r=bz
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/FakeString.h
2016-09-01 18:10:54 +08:00
Gerald Squelart 6e6bb23cf3 Bug 1300446 - Check return value from GetCubebContext - r=kinetik
MozReview-Commit-ID: Y9b5Aq2RZE

--HG--
extra : rebase_source : 11422dc401d95cd91329b33b082b29bd193b16da
2016-08-30 17:20:10 -07:00
Nicholas Nethercote b71747b2ac Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.

--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Jan-Ivar Bruaroey ad60fcbdf9 Bug 1284909 - Allow raw deviceId constraints in gUM when caller is chrome. r=jesup
MozReview-Commit-ID: IB0BhGKbdam

--HG--
extra : rebase_source : 29006317f365076717f88bdafc64366eb996913c
2016-08-19 16:39:54 -04:00
Ryan VanderMeulen 4460ee8698 Backed out changeset 5f43357fe5b4 (bug 1284909) for bustage on a CLOSED TREE. 2016-08-29 11:25:00 -04:00
Jan-Ivar Bruaroey de3b766278 Bug 1284909 - Allow raw deviceId constraints in gUM when caller is chrome. r=jesup
MozReview-Commit-ID: IB0BhGKbdam

--HG--
extra : rebase_source : 9ed1f4218e66bd3c96d044cacce167cbde79e775
2016-08-19 16:39:54 -04:00
Ryan VanderMeulen 520acfd195 Merge inbound to m-c. a=merge 2016-08-25 08:10:52 -04:00
Munro Mengjue Chiang b6c7822e72 Bug 1296684 - export DeviceChangeCallback.h no matter webrtc is enabled or not; r=jib
MozReview-Commit-ID: 9xocLhe1QZw

--HG--
extra : rebase_source : cfa81f49e8b98b93c90a6ea436ee106db7a12f00
2016-08-22 18:16:28 +08:00
Sebastian Hengst 2f9e419db4 Backed out changeset 7e3e593e8141 (bug 1295352) for failing mda test test_getUserMedia_basicTabshare.html. r=backout on a CLOSED TREE 2016-08-23 20:46:13 +02:00
Andreas Pehrson e00a5345bd Bug 1295352 - Check state in MediaEngines' NotifyPull(). r=jesup
GetEndOfAppendedData() returns null and calls a NS_ERROR() if the track we're
looking for doesn't exist - to indicate an error in the caller's code.

When we end a MediaEngine track we set the state to stopped, which we can use
to guard the calls to GetEndOfAppendedData() (and appending data in general).
The locking is already in place.

MozReview-Commit-ID: DuknmBF883H

--HG--
extra : rebase_source : 6304e61a4050f0ea9c31ee01f5b42f5cb45b9bf6
2016-08-23 10:45:09 +02:00
Ryan VanderMeulen 69113163cf Merge m-c to inbound. a=merge 2016-08-24 09:09:05 -04:00
Cykesiopka a16f7b0f6a Bug 1296316 - Convert nsNSSShutDownObject::CalledFromType to an enum class. r=mgoodwin
enum classes are in general safer than plain enums, and as such should be
preferred.

MozReview-Commit-ID: 1FK89SNhdk4

--HG--
extra : rebase_source : 764c4855026c02d8c9e33ca33637fec54ea5ca31
2016-08-20 23:00:19 +08:00
Randell Jesup dc0ebbd114 Bug 1297101: Reduce audio/video load from fake video/audio for android debug r=dminor
Debug is slow already, and VM emulator debug is glacial and times out a lot
2016-08-22 20:57:13 -04:00
Randell Jesup 327ccb88b0 Bug 1297083: Don't insert audio for GetUserMedia N times if opened N times r=pehrsons 2016-08-22 10:59:00 -04:00
Andi-Bogdan Postelnicu e38a35af7d Bug 1282408 - add ignore initialisation check flag for mTrackID in MediaEngineWebRTCMicrophoneSource. r?=jesup
MozReview-Commit-ID: AqiQ8wrtWvQ
2016-08-24 10:55:47 +03:00
Wes Kocher a58f8b89a0 Merge m-c to inbound, a=merge 2016-08-18 16:32:58 -07:00
Munro Mengjue Chiang 730a993044 Bug 1286429 - Fire fake devicechange event in Camera IPC thread for mochitest; r=jib
MozReview-Commit-ID: 9sDLnMGh3xL

--HG--
extra : rebase_source : 026891d00450b9bfd792708ab3d5d2e730f431f9
2016-08-09 16:37:04 +08:00
Munro Mengjue Chiang 4eb2d3e90d Bug 1286429 - implement mediaDevices.ondevicechange for Mac OSX; r=jib,smaug
MozReview-Commit-ID: D1Jr6I4qPyr

--HG--
extra : rebase_source : 0f4a97da80d25923c9b6f6550b94039aefa88de5
2016-08-12 01:04:49 +08:00
Wes Kocher a177bd0ff1 Merge m-c to inbound a=merge 2016-08-17 17:24:02 -07:00
Randell Jesup 2f4c72af04 Bug 1293976: make mAudioInputs use RefPtrs r=pehrsons 2016-08-17 16:31:56 -04:00
Igor 175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Nicholas Nethercote e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Jan-Ivar Bruaroey 44a82c7526 Bug 1295415 - Fix two uninitialized members in MediaEngineWebRTC. r=jesup
MozReview-Commit-ID: 5yvqSiCBXB1

--HG--
extra : rebase_source : cf51c8ed4b29abd3b2cc6e03472b3571787baf99
2016-08-15 23:06:50 -04:00
Randell Jesup 2b8455afe8 Bug 1271585: Remove AudioGUM thread from MediaEngine getUserMedia input r=padenot
MozReview-Commit-ID: EhaMVSq54IK
2016-05-12 15:34:11 -04:00
Randell Jesup fd8a8c3c74 Bug 1290075: Always Init() the VoiceEngine when enumerating audio inputs r=jib 2016-08-04 21:24:05 -04:00
Jan-Ivar Bruaroey a512138827 Bug 1290629 - Make default cam, which is supposed to model a real cam, nonetheless independent of webrtc includes. r=jesup
MozReview-Commit-ID: 2RiRxXCNHv6

--HG--
extra : rebase_source : 9f80a1a2170f54495d6fea3ebbb593e9b360cf6a
2016-08-01 15:36:34 -04:00
Randell Jesup 8fd43553fd Bug 1290866: Ensure MediaDevices::Allocate's *aOutHandle is properly set to null r=jib 2016-08-01 16:26:13 -04:00
Alexandre Lissy 72456298c6 Bug 1290460 - Update AllocationHandle for MediaEngineGonk r=padenot
MozReview-Commit-ID: KVVPjWfDSlu

--HG--
extra : rebase_source : ccc67d374a14bc3b84f0e1e9acad829e684afe72
2016-07-29 15:56:02 +02:00
Jan-Ivar Bruaroey 44c9f33c25 Bug 1289857 - Fix MediaTrackConstraints.cpp to compile with --disable-webrtc again. r=mjf
MozReview-Commit-ID: GgVNQSbPCwf

--HG--
extra : rebase_source : ac3a7c53c3ac8c5b98e05b6d72ddb2badd58617a
2016-07-28 12:03:40 -04:00
Jan-Ivar Bruaroey abbd438d8f Bug 1286096 - Wire up audio getSettings(). r=padenot,smaug
MozReview-Commit-ID: KH6xcAnd3DX

--HG--
extra : rebase_source : a473d25cec56ee5bf2cd7b5114d7038e45d6a9d8
2016-07-16 15:33:54 -04:00
Jan-Ivar Bruaroey e2c982dd72 Bug 1286096 - Consider competing audio constraints as well. r=padenot
MozReview-Commit-ID: APPg2UBgNYo

--HG--
extra : rebase_source : 02e05f0e0677d80711a0d27902f17b3f31136db4
2016-07-15 19:55:59 -04:00
Jan-Ivar Bruaroey 1f7f1269f6 Bug 1286096 - Move UpdateSingleSource pattern to MediaEngine base class for reuse. r=padenot
MozReview-Commit-ID: IJjZayOSxp4

--HG--
extra : rebase_source : de44566213623492982653c90793be9cceee539b
2016-07-13 16:07:03 -04:00
Jan-Ivar Bruaroey 9f23bcc615 Bug 1286096 - Move AllocationHandle used for cameras to MediaEngineSource base class to reuse for microphones. r=padenot
MozReview-Commit-ID: BcmlKnHhe0o

--HG--
extra : rebase_source : 45342801548033ddbb2c0e060a6c6685bcb910b9
2016-07-12 23:25:07 -04:00
Jan-Ivar Bruaroey 2982c3ee86 Bug 1286096 - Remove fakeTracks constraint. r=drno,smaug
MozReview-Commit-ID: I9ZsufufRYg

--HG--
extra : rebase_source : 6d3ace3a22ce34586da4899cc0f7b2727a5fc6e0
2016-07-11 19:27:43 -04:00
Jan-Ivar Bruaroey 36d85898ac Bug 1286096 - Enable width/height constraints on fake device. r=padenot
MozReview-Commit-ID: 1SPPbysZjqL

--HG--
extra : rebase_source : aa52d5d518fc1f52c81709c22212c892b0527d46
2016-07-11 16:52:20 -04:00
Jan-Ivar Bruaroey 6606fbb009 Bug 1286096 - Have MediaEngineDefaultVideoSource inherit from MediaEngineCameraVideoSource. r=padenot
MozReview-Commit-ID: KxT4HRaGe9

--HG--
extra : rebase_source : e1cd848912be7db9cb338bba9a19e1de46a2563f
2016-07-11 12:31:33 -04:00
Carsten "Tomcat" Book 336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Wes Kocher f11c79a662 Merge m-c to inbound, a=merge CLOSED TREE 2016-07-21 15:59:28 -07:00
Jim Chen ce45a595ab Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 13:49:04 -04:00
Carsten "Tomcat" Book bc1b31b01b Merge mozilla-central to autoland 2016-07-21 16:27:58 +02:00
Alexandre Lissy d62c2c8293 Bug 1287854 - Fix MediaEngineGonk build r=padenot
MozReview-Commit-ID: 5jmepGcWiIG

--HG--
extra : rebase_source : 55e0d6b33dd2670fb4ac40afca011c1d34b438f8
2016-07-19 19:09:16 +02:00
Chris Peterson b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Carsten "Tomcat" Book e8bc59a87a Backed out changeset 684888aeee81 (bug 1287946) 2016-07-21 08:07:12 +02:00
Jim Chen 78f67d1f6f Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 00:42:26 -04:00
Jan-Ivar Bruaroey b7cd70aebe Bug 1213517 - Fix static analysis for bug 1213517 landing: Avoid non-memmovable nsTArray<NormalizedConstraintSet>. r=jesup
MozReview-Commit-ID: GGJ6BGlLa4n

--HG--
extra : rebase_source : 94a9df3f2cedb6e37f48dcd87667e129f2fc78ec
2016-06-29 14:52:19 -04:00
Jan-Ivar Bruaroey aa375cbaab Bug 1213517 - Fix static analysis for bug 1213517 landing: make constructor explicit. r=jesup
MozReview-Commit-ID: 6k38HgsFmL2

--HG--
extra : rebase_source : 47f1caa8cc7a39b1f4f49ae2c8744556122da45d
2016-07-18 02:56:22 -04:00
Jan-Ivar Bruaroey 7949ae2a64 Bug 1213517 - Take highest ideal value from competing width, height and frameRate. r=jesup
MozReview-Commit-ID: JkR2rDDeFz1

--HG--
extra : rebase_source : aa2d61cddb17d316e43404efe6a8643cf4cbf22c
2016-07-07 08:36:05 -04:00
Jan-Ivar Bruaroey 9be5951bd8 Bug 1213517 - Clamp competing ideal values before considering them to avoid outliers distorting result. r=jesup
MozReview-Commit-ID: 3RNgKfDpJxL

--HG--
extra : rebase_source : c681489a6bb1687484d1eb694c066f95a17fdca1
2016-07-07 10:45:34 -04:00
Jan-Ivar Bruaroey b8a3459024 Bug 1213517 - Wire up getSettings(). r=padenot
MozReview-Commit-ID: EX5FIo3rCoi

--HG--
extra : rebase_source : c9a814eb3fbc0a7455ec7c290c3c074cf1b45e7e
2016-06-20 00:38:25 -04:00
Jan-Ivar Bruaroey c6db53bb70 Bug 1213517 - Let cam access in competing tabs get closer to their ideals when a tab closes. r=padenot
MozReview-Commit-ID: htWkYMm18U

--HG--
extra : rebase_source : 10f430e9ff9ee4d89550b3a86e0a20c7989f61b6
2016-06-18 19:09:39 -04:00
Jan-Ivar Bruaroey d7a632ed43 Bug 1213517 - Consolidate camera Allocate's and Restart's constraints logic. r=padenot
MozReview-Commit-ID: CrARq0QZzrO

--HG--
extra : rebase_source : 86ca9c560990a7fa088fa2fa85a0381ef15ccac2
2016-06-18 16:11:54 -04:00
Jan-Ivar Bruaroey 711e75881f Bug 1213517 - Only restart camera if net settings actually change. r=padenot
MozReview-Commit-ID: h01gJ3uCom

--HG--
extra : rebase_source : c599504c1f95ca7fb1fa77487aa27abefe184ddc
2016-06-18 14:16:47 -04:00
Jan-Ivar Bruaroey 48ae827040 Bug 1213517 - Lift correct constraint out of lower-level code for OverconstrainedError. r=padenot
MozReview-Commit-ID: EWUjVBUrAps

--HG--
extra : rebase_source : 9c747e8d98af973dfefe873ea65fb01ffb180be2
2016-06-20 20:15:39 -04:00
Jan-Ivar Bruaroey d67b712448 Bug 1213517 - Normalize even more of the constraints code. r=padenot
MozReview-Commit-ID: 1XjdHXKYOmP

--HG--
extra : rebase_source : 6e6c05b9ffe6722decb6918667b83a3f9d6bfd8b
2016-06-17 15:20:10 -04:00
Jan-Ivar Bruaroey ea417c69e0 Bug 1213517 - optimize for maintenance of constraints (member pointer approach). r=padenot
MozReview-Commit-ID: 4JYb6QnMtVk

--HG--
extra : rebase_source : 6ecab6312fd647e85f3dfea5b0c5ec53b6c04b24
2016-06-27 10:03:27 -04:00
Jan-Ivar Bruaroey bd5e812679 Bug 1213517 - Report correct constraint in OverconstrainedError when constraints conflict directly. r=padenot
MozReview-Commit-ID: 2bVaSvntc8g

--HG--
extra : rebase_source : cf1724b5db8852ca05248b67380899e4a16c7725
2016-06-15 19:25:07 -04:00
Jan-Ivar Bruaroey 5d2ce17581 Bug 1213517 - Consider competing required constraints with OverconstrainedError. r=padenot
MozReview-Commit-ID: EHIY1hpaEQn

--HG--
extra : rebase_source : 0dc2ff54f4e1fb907074d4e71c96f25d50fad81a
2016-06-14 14:42:46 -04:00
Jan-Ivar Bruaroey f4b3a57ae5 Bug 1213517 - Consider competing constraints in getUserMedia+applyConstraints. r=jesup
MozReview-Commit-ID: 9jzjNrJVUMX

--HG--
extra : rebase_source : ccc602bcab7ed62170021707bc438e7713e0b7c0
2016-06-06 13:15:50 -04:00
Jan-Ivar Bruaroey 534b6e3dd7 Bug 1213517 - Add a way to merge multiple NormalizedConstraints. r=jesup
MozReview-Commit-ID: LfB9QviCNxU

--HG--
extra : rebase_source : eb93a91a4f96191efa80b10fb2546eab8283e20c
2016-07-02 00:16:37 -04:00
Jan-Ivar Bruaroey 3c55d4bc05 Bug 1213517 - Use NormalizedConstraints in low-level code. r=jesup
MozReview-Commit-ID: 3F9ZmHMKAFZ

--HG--
extra : rebase_source : 83ed4e1d3bc13265a1bdef6e9e8d0ee876f42472
2016-05-25 01:52:15 -04:00
Jan-Ivar Bruaroey 27fd33e96c Bug 1213517 - Add an un-flattened NormalizedConstraints type for downstream use. r=jesup
MozReview-Commit-ID: 1ZUN21mgfXh

--HG--
extra : rebase_source : ac158d5a7d265649bcf04952e138a1a86a5222a4
2016-06-30 16:08:45 -04:00
Jan-Ivar Bruaroey 591cbabcaf Bug 1213517 - Normalize all the constraints internally, not just some. r=jesup
MozReview-Commit-ID: BfTleKUxiVU

--HG--
extra : rebase_source : b9879959606961baa687e594846ff953956d1a23
2016-06-30 15:46:07 -04:00
Jan-Ivar Bruaroey 03873bf4ff Bug 1213517 - Introduce AllocationHandle to MediaEngine::Allocate(). r=jesup
MozReview-Commit-ID: FKgK8OTwqbL

--HG--
extra : rebase_source : b9532bc739e0f7ec78e2b964f7cf074981354332
2016-06-30 15:43:24 -04:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Iris Hsiao 49a7efff23 Backed out changeset 6ed917c7d94d (bug 1213517) 2016-07-18 15:41:28 +08:00
Iris Hsiao 12ec456c48 Backed out changeset 6ee4fac755f4 (bug 1213517) 2016-07-18 15:41:11 +08:00
Iris Hsiao 83bf356b5d Backed out changeset e6ac385fd969 (bug 1213517) 2016-07-18 15:41:04 +08:00
Iris Hsiao e028907323 Backed out changeset 05b370d75989 (bug 1213517) 2016-07-18 15:40:56 +08:00
Iris Hsiao 8e95b17fde Backed out changeset 9701bb4384d8 (bug 1213517) 2016-07-18 15:40:48 +08:00
Iris Hsiao 7d08c18e38 Backed out changeset 6f025025d259 (bug 1213517) 2016-07-18 15:40:41 +08:00
Iris Hsiao 19bd7b2143 Backed out changeset c0c0d3eb6dc9 (bug 1213517) 2016-07-18 15:40:34 +08:00
Iris Hsiao 463c07d354 Backed out changeset e4829b553f9e (bug 1213517) 2016-07-18 15:40:20 +08:00
Iris Hsiao 6684ba44a3 Backed out changeset 97cfe28779d9 (bug 1213517) 2016-07-18 15:40:09 +08:00
Iris Hsiao 7a103775dc Backed out changeset 85832c026282 (bug 1213517) 2016-07-18 15:40:03 +08:00
Iris Hsiao e4b92aada9 Backed out changeset abf811706099 (bug 1213517) 2016-07-18 15:39:56 +08:00
Iris Hsiao c221a00e38 Backed out changeset 697fac643b8e (bug 1213517) 2016-07-18 15:39:49 +08:00
Iris Hsiao d3e727b146 Backed out changeset 70f85193f925 (bug 1213517) 2016-07-18 15:39:43 +08:00
Iris Hsiao 09d2545de2 Backed out changeset 77b16f74919f (bug 1213517) 2016-07-18 15:39:36 +08:00
Iris Hsiao d6cc817c38 Backed out changeset eca5b39db393 (bug 1213517) 2016-07-18 15:39:22 +08:00
Iris Hsiao 2e0e0b9212 Backed out changeset 6f3e405706ef (bug 1213517) 2016-07-18 15:39:06 +08:00
Iris Hsiao e15ea15da3 Backed out changeset 93b1deb435f2 (bug 1213517) for Static Checking Build bustage 2016-07-18 15:38:49 +08:00
Jan-Ivar Bruaroey 3b48ca5b21 Bug 1213517 - Take highest ideal value from competing width, height and frameRate. r=jesup
MozReview-Commit-ID: JkR2rDDeFz1

--HG--
extra : rebase_source : aa2d61cddb17d316e43404efe6a8643cf4cbf22c
2016-07-07 08:36:05 -04:00
Jan-Ivar Bruaroey 3fb9c2132d Bug 1213517 - Clamp competing ideal values before considering them to avoid outliers distorting result. r=jesup
MozReview-Commit-ID: 3RNgKfDpJxL

--HG--
extra : rebase_source : c681489a6bb1687484d1eb694c066f95a17fdca1
2016-07-07 10:45:34 -04:00
Jan-Ivar Bruaroey 018c5b2f42 Bug 1213517 - Wire up getSettings(). r=padenot
MozReview-Commit-ID: EX5FIo3rCoi

--HG--
extra : rebase_source : c9a814eb3fbc0a7455ec7c290c3c074cf1b45e7e
2016-06-20 00:38:25 -04:00
Jan-Ivar Bruaroey 89411754e1 Bug 1213517 - Let cam access in competing tabs get closer to their ideals when a tab closes. r=padenot
MozReview-Commit-ID: htWkYMm18U

--HG--
extra : rebase_source : 10f430e9ff9ee4d89550b3a86e0a20c7989f61b6
2016-06-18 19:09:39 -04:00
Jan-Ivar Bruaroey 7fb55af5f5 Bug 1213517 - Consolidate camera Allocate's and Restart's constraints logic. r=padenot
MozReview-Commit-ID: CrARq0QZzrO

--HG--
extra : rebase_source : 86ca9c560990a7fa088fa2fa85a0381ef15ccac2
2016-06-18 16:11:54 -04:00
Jan-Ivar Bruaroey 8728b93a3a Bug 1213517 - Only restart camera if net settings actually change. r=padenot
MozReview-Commit-ID: h01gJ3uCom

--HG--
extra : rebase_source : c599504c1f95ca7fb1fa77487aa27abefe184ddc
2016-06-18 14:16:47 -04:00
Jan-Ivar Bruaroey f37fd4bb58 Bug 1213517 - Lift correct constraint out of lower-level code for OverconstrainedError. r=padenot
MozReview-Commit-ID: EWUjVBUrAps

--HG--
extra : rebase_source : 9c747e8d98af973dfefe873ea65fb01ffb180be2
2016-06-20 20:15:39 -04:00
Jan-Ivar Bruaroey e99934e5ab Bug 1213517 - Normalize even more of the constraints code. r=padenot
MozReview-Commit-ID: 1XjdHXKYOmP

--HG--
extra : rebase_source : 6e6c05b9ffe6722decb6918667b83a3f9d6bfd8b
2016-06-17 15:20:10 -04:00
Jan-Ivar Bruaroey 5aac06d091 Bug 1213517 - optimize for maintenance of constraints (member pointer approach). r=padenot
MozReview-Commit-ID: 4JYb6QnMtVk

--HG--
extra : rebase_source : 6ecab6312fd647e85f3dfea5b0c5ec53b6c04b24
2016-06-27 10:03:27 -04:00
Jan-Ivar Bruaroey 357d904c2e Bug 1213517 - Report correct constraint in OverconstrainedError when constraints conflict directly. r=padenot
MozReview-Commit-ID: 2bVaSvntc8g

--HG--
extra : rebase_source : cf1724b5db8852ca05248b67380899e4a16c7725
2016-06-15 19:25:07 -04:00
Jan-Ivar Bruaroey a524803ec5 Bug 1213517 - Consider competing required constraints with OverconstrainedError. r=padenot
MozReview-Commit-ID: EHIY1hpaEQn

--HG--
extra : rebase_source : 0dc2ff54f4e1fb907074d4e71c96f25d50fad81a
2016-06-14 14:42:46 -04:00
Jan-Ivar Bruaroey 810e3f43a6 Bug 1213517 - Consider competing constraints in getUserMedia+applyConstraints. r=jesup
MozReview-Commit-ID: 9jzjNrJVUMX

--HG--
extra : rebase_source : ccc602bcab7ed62170021707bc438e7713e0b7c0
2016-06-06 13:15:50 -04:00
Jan-Ivar Bruaroey c3604a045d Bug 1213517 - Add a way to merge multiple NormalizedConstraints. r=jesup
MozReview-Commit-ID: LfB9QviCNxU

--HG--
extra : rebase_source : eb93a91a4f96191efa80b10fb2546eab8283e20c
2016-07-02 00:16:37 -04:00
Jan-Ivar Bruaroey 0cf2bc99b9 Bug 1213517 - Use NormalizedConstraints in low-level code. r=jesup
MozReview-Commit-ID: 3F9ZmHMKAFZ

--HG--
extra : rebase_source : 83ed4e1d3bc13265a1bdef6e9e8d0ee876f42472
2016-05-25 01:52:15 -04:00
Jan-Ivar Bruaroey 56fa623989 Bug 1213517 - Add an un-flattened NormalizedConstraints type for downstream use. r=jesup
MozReview-Commit-ID: 1ZUN21mgfXh

--HG--
extra : rebase_source : ac158d5a7d265649bcf04952e138a1a86a5222a4
2016-06-30 16:08:45 -04:00
Jan-Ivar Bruaroey bc9cdf5b15 Bug 1213517 - Normalize all the constraints internally, not just some. r=jesup
MozReview-Commit-ID: BfTleKUxiVU

--HG--
extra : rebase_source : b9879959606961baa687e594846ff953956d1a23
2016-06-30 15:46:07 -04:00
Jan-Ivar Bruaroey 6fa827422b Bug 1213517 - Introduce AllocationHandle to MediaEngine::Allocate(). r=jesup
MozReview-Commit-ID: FKgK8OTwqbL

--HG--
extra : rebase_source : b9532bc739e0f7ec78e2b964f7cf074981354332
2016-06-30 15:43:24 -04:00
Randell Jesup 92a359696d Bug 1280445 - Don't hold on to Image in MediaEngineDefaultVideoSource after Stop(). r=pehrsons
MozReview-Commit-ID: K5NTMrbnAEi

--HG--
extra : rebase_source : a58d77f4b92f7f5dd430269e10ef9baeacf9ffc1
extra : source : e2c85b67ec7a9c90934d8ff95dfbdece56a1cd98
2016-06-16 12:46:26 +01:00
Kyle Huey ebc76ad30d Bug 1283328: Clean up some thread shutdown stuff and remove CameraUtils. r=froydnj 2016-06-30 13:54:06 -07:00
Jan-Ivar Bruaroey cb69f1955e Bug 1281866 - Test gUM's NotReadableError. r=padenot
MozReview-Commit-ID: UrMmhTFvrc

--HG--
extra : rebase_source : 4a6ae459a4f5387b0e418bc230f9d791d28a1520
2016-06-27 10:59:37 -04:00
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Nicholas Nethercote a02611e830 Bug 1276824 (part 1) - Rename gfxContext::ForDrawTarget{,WithTransform}(). r=milan.
The new names Create{,PreservingTransform}OrNull() better communicate that
these functions (a) do object creation, and (b) are fallible.

--HG--
extra : rebase_source : a36bd9a2bcdfae281868959403f811f2bc690ad4
2016-06-07 09:39:56 +10:00
Paul Adenot 9c5db487b5 Bug 1271585 - Bustage fix, comparison between signed and unsigned integer expressions, on a CLOSED TREE. 2016-05-30 15:50:40 +02:00
Paul Adenot 28b7a4423b Bug 1271585 - Part 2 - Synchronously insert audio frames from the microphone in the MSG if possible. r=pehrsons,jesup
MozReview-Commit-ID: Fm2woel600v
2016-05-30 15:24:19 +02:00
Paul Adenot 209bdf8893 Bug 1271585 - Part 1 - Keep a buffer around instead of allocating for each packetizer packets for input data. r=jesup
This what was meant to happen, but it didn't work because `mInputBufferLen` was
never set. An nsTArray prevents this to happen.

MozReview-Commit-ID: PBFTluFcrs
2016-05-30 15:24:17 +02:00
Bill McCloskey 291c555f34 Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
Randell Jesup f357e1adcd Bug 1275703: remove saved state about configuration of the VoiceEngine r=jib
MozReview-Commit-ID: LLexZdEuqo
2016-05-25 17:35:06 -04:00
Gian-Carlo Pascutto e3b4dc9250 Bug 1249313 - Don't shut down the entire Cameras IPC if a single source is shut down. r=jesup 2016-02-23 15:20:26 +01:00
Randell Jesup 5211329bd6 Bug 1273206: Shut down all getUserMedia VoEBase channels when not in use r=padenot
MozReview-Commit-ID: KLGKNvwJpKg
2016-05-23 10:22:47 -04:00
Chris Peterson 353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Andreas Pehrson 4abd5e4c78 Bug 1206708 - Make all WebRTC ImageContainers async. r=jesup,nical
This avoids expensive copying when compositing these frames on e10s.

MozReview-Commit-ID: LIeUhh6rjCf

--HG--
extra : rebase_source : 1919596f2cb61d25474993f209a632531d3797fa
2016-04-11 16:13:26 +02:00
Wes Kocher 43bc24c499 Backed out 2 changesets (bug 1271585) for media test failures
Backed out changeset 3967d009efc0 (bug 1271585)
Backed out changeset 01262a32c45f (bug 1271585)
2016-05-12 14:28:52 -07:00
Randell Jesup 505d7dd5ea Bug 1271585: Remove AudioGUM thread from MediaEngine getUserMedia input r=padenot
MozReview-Commit-ID: EhaMVSq54IK
2016-05-12 15:34:11 -04:00
Paul Adenot 3b11b62b46 Bug 1271585 - Back out and rewrite the resampling bypass code. r=achronop
It's adding latency for an unknown yet reason.

MozReview-Commit-ID: 4SxmCqPxehn
2016-05-10 12:24:54 +02:00
Nathan Froyd 3e814c0f2a Bug 1263197 - part 3 - remove GetUserMediaLog function from MediaEngineWebRTC.cpp; r=jesup
GetUserMediaLog is a holdover from when when used PRLogModule and needed
to avoid a static constructor.  Now we have LazyLogModule, which doesn't
invoke static constructors, and so we can use that directly, rather than
indirecting through GetUserMediaLog.  This change also helps avoid an
unused function warning when logging is disabled.
2016-05-06 09:11:17 -04:00
Vivien Nicolas 766c525d44 Bug 1268428 - Use the raw mic data if all the constraints to disable processing have been passed to gUM. r=jesup
MozReview-Commit-ID: LWvjPsEiHhk

--HG--
extra : rebase_source : c9dcaf99b04ab0cba9e28f33c1aee6f5edf3fcb1
2016-04-29 14:08:47 +02:00
Paul Adenot 32e1303937 Bug 1243857 - Enable duplex audio for Windows/WASAPI. r=jesup
MozReview-Commit-ID: 4h1JTGSHr2v
2016-03-30 17:21:16 +02:00
ctai 8fcb64e480 Bug 1266644 - Rename StreamBuffer to StreamTracks. r=jesup r=pehrsons
Rename StreamBuffer to StreamTracks. We still need a place to keep the track information in every MediaStream, even the StreamBuffer::Track::mSegment is empty.

--HG--
rename : dom/media/StreamBuffer.cpp => StreamTracks.cpp
rename : dom/media/StreamBuffer.h => StreamTracks.h
2016-01-26 10:49:01 +08:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Paul Adenot b3adcea90b Bug 1266438 - Reset the AEC and other processing when audio devices change. r=jesup
MozReview-Commit-ID: Jrr9E9ZSukv
2016-04-22 16:24:17 +02:00
Randell Jesup 7d950772fc Bug 1266285: Don't include UNPLUGGED cubeb devices in getUserMedia list, and use correct default r=kinetik
MozReview-Commit-ID: 1hBNLCAu2rW
2016-04-21 01:42:50 -04:00
Randell Jesup 90f6a18287 Bug 1265641: Move AEC tail length and delay-agnostic settings to getUserMedia r=padenot
MozReview-Commit-ID: 6vHQlmt9lxR
2016-04-19 20:20:45 -04:00
Wes Kocher d2b8d72891 Backed out changeset 3016dc350c6d (bug 1243857) for Windows dt2 bustage in browser_wa_properties-view-media-nodes.js
MozReview-Commit-ID: Cu6chuq0wmL
2016-04-19 16:33:12 -07:00
Paul Adenot 850cb41501 Bug 1243857 - Enable duplex audio for Windows/WASAPI. r=jesup
MozReview-Commit-ID: 4h1JTGSHr2v
2016-03-30 17:21:16 +02:00
Sotaro Ikeda 3b81e9dd7d Bug 1262278 - Rename PlanarYCbCrImage::SetData and PlanarYCbCrImage::SetDataNoCopy r=nical 2016-04-18 20:12:41 -07:00
Milan Sreckovic e0b2b9e425 Bug 1259513: Make gfxContext constructor private, use a utility function that can return nullptr. r=bas,lsalzman
MozReview-Commit-ID: rHhLEDZEQt

--HG--
extra : rebase_source : 4988f3f488c19dd35a9979e96f78a5511ee8f3d2
2016-04-12 15:18:11 -04:00
Thomas Zimmermann 448805f444 Bug 1262808: Fix use of |PrincipleHandle| in |MediaEngineGonkVideoSource| r=rjesup 2016-04-12 16:54:43 +02:00
Paul Adenot f57cd3383d Bug 1260745 - Null-check the `friendly_name` field in a `cubeb_device`. r=jesup
They can be null, according to the cubeb API.

MozReview-Commit-ID: FOKG2kTy9NX

--HG--
extra : rebase_source : 256101a51f7ae24dd073a3dcbf3b94af22b4db94
2016-03-30 16:47:02 +02:00
Andreas Pehrson faaa43e374 Bug 1208371 - Don't push frames as they come in to MediaEngine. r=jesup
That this caused problems is probably related to video not being supported for
direct track listeners. Frames could pile up under load and delay the MSG
since there were so many frames queued for processing.

With a direct listener the MediaPipeline processing would occur on the
MediaEngine's thread.

MozReview-Commit-ID: DjKblA7dMz9

--HG--
extra : rebase_source : 60bbc5f1add65f3cf5c2cfeadb915c79d33acc0a
extra : source : 6e6636eea735795dfcae9779ea8f71e8df9516ce
2016-03-08 12:13:22 +01:00
Andreas Pehrson b631e13d54 Bug 1208371 - Hook up MediaPipeline with PrincipalHandle. r=mt,bwc
MozReview-Commit-ID: DLyLZu7kC3p

--HG--
extra : rebase_source : 839de544b55fb98e610fec04d45551249d1af57b
2016-03-03 17:30:39 +01:00
Andreas Pehrson be74876e25 Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup
PrincipalHandle is a thread safe pointer to a holder of (the main-thread-only
nsIPrincipal) that can be passed around the MSG.

A MediaStreamTrack whose source has just updated its principal, sets the new
principal aside (as its "pending principal"), and combines the new principal
into its current principal.

Then the source starts passing the new principal to the MediaStreamGraph as
a PrincipalHandle.

Changes to a track's PrincipalHandle on the MSG will be surfaced through the
MediaStreamTrackListener API. These changes are dispatched to main thread
and compared to a MediaStreamTrack's pending principal. In case of a match
the track knows the correct principal is flowing and can move the pending
principal to be the current principal and update any main thread principal
observers.

MozReview-Commit-ID: D0JXGWhQFFU

--HG--
extra : rebase_source : 296e269bb46fc5a85a9c3f90dfc0dc40e53572bc
2016-04-06 14:56:44 +02:00
Andreas Pehrson eb7cd31741 Bug 1208371 - Make PeerIdentity RefCounted. r=mt
This so it can be shared between multiple tracks.

MozReview-Commit-ID: 3mjQImVY0f8

--HG--
extra : rebase_source : 9c8d11bb38e06a2cf5f7bf1c24ca657e28387682
2016-01-05 10:16:28 +08:00
Andreas Pehrson 2a7a664d3b Bug 1208371 - Un-nest MediaEngineSource::PhotoCallback. r=roc
So it may be forward declared.

MozReview-Commit-ID: JLEsMt1fqKz

--HG--
extra : rebase_source : 6bf12bd61d1bd479a340b10cafca049ef3fd0fac
2016-01-05 10:16:21 +08:00
Randell Jesup ce36c0e082 Bug 1258942: Lock around DeviceID access for audio inputs r=padenot
MozReview-Commit-ID: DQ5FBW4H8mX
2016-04-01 00:18:13 -04:00
Alex Chronopoulos bc6563f248 Bug 1251502 - Use `devid` instead of `device_id` when getting the ID for a cubeb device. r=jesup
MozReview-Commit-ID: JojzRPFhYJ
2016-03-25 17:41:45 +01:00
Martin Thomson 2238c2d4d1 Bug 1258299 - Move RTCIdentityProvider to a dictionary, r=jib,khuey
MozReview-Commit-ID: K97lKyhlsW8
2016-03-24 16:12:56 +11:00
Phil Ringnalda fd64e52ef9 Back out 1726498035c1 (bug 1258299) for xpcshell failures in test_rtcIdentityProvider.js
CLOSED TREE
2016-03-23 19:25:39 -07:00
Martin Thomson 15fbbd24ab Bug 1258299 - Move RTCIdentityProvider to a dictionary, r=jib,khuey
MozReview-Commit-ID: EP1fCvQlYqH

--HG--
extra : rebase_source : df44c64ca5614b1ff351d3aa9ffc78e513f97d58
2016-03-24 03:03:06 +11:00
Gian-Carlo Pascutto 839aa03119 Bug 1254102 - Add "blackout" mode. If the window is not legal, output a black square. r=jesup
MozReview-Commit-ID: GlBy8fUZwIE

--HG--
extra : rebase_source : 7708bc0cb5da5a676ae75d9965ede16e944c8307
2016-03-16 19:21:17 +01:00
Gian-Carlo Pascutto fbdfd1759a Bug 1254102 - Don't skip Tab sources if the camera is in use. r=jesup
MozReview-Commit-ID: 7ZaebdnWj3R

--HG--
extra : rebase_source : 77f645aa109b805cfaf0039a9daab21339fb0ef9
2016-03-15 20:39:37 +01:00
Gregory Szorc 1fa003c29e Bug 1256482 - Disable C4312 to unblock compilation on VS2015; r=jesup
As part of unblocking building with VS2015u1 in automation, I'm mass
disabling compiler warnings that are turned into errors. This is not
the preferred mechanism to fix compilation warnings, of course.

Given that the warning is in WebRTC which is third party code, there
isn't much we can do about the warning. However, Google is building
Chrome with Visual Studio 2015, so I wouldn't be surprised if this
were fixed upstream or will be fixed upstream. Then again, we allow
warnings when building WebRTC. So perhaps not.

MozReview-Commit-ID: G6JP9fkCzfn

--HG--
extra : rebase_source : bf5c9a049230bb8e483f6a85bdbc2ca20eb3ab45
2016-03-14 16:05:06 -07:00
Fabrice Desré 72233b19c7 Bug 1254515 - GonkCameraImage.cpp:16:5: error: class 'mozilla::GonkCameraImage' does not have any field named 'mThread' r=reuben 2016-03-08 18:23:43 -08:00
Randell Jesup 8851505a96 Bug 1250934: Modify MediaEngine shutdown to allow neutering the AudioDataListener r=padenot
MozReview-Commit-ID: 7LeFAbaTHMY
2016-03-08 12:11:09 -05:00
Randell Jesup a237d6632f Bug 1250934: Only dig out cubeb deviceIDs immediately before use since they can be freed r=padenot
MozReview-Commit-ID: CyIk4WCuJ9s
2016-03-08 12:11:09 -05:00
Tim Taubert 0d2f5760da Bug 1250930 - Use correct global when creating a key in GenerateAsymmetricKeyTask r=bz 2016-03-08 11:15:58 +01:00
Jonathan Watt a73bd8c354 Bug 1253094, part 1 - Stop using DebugOnly for class/struct members in dom/. r=baku
MozReview-Commit-ID: ErWZs9oV4WS
2016-02-26 15:52:06 +00:00
sakshi 1af0b67296 Bug 1197311 - Remove PR_snprintf calls in dom/ r=froydnj 2016-02-17 14:23:39 -05:00
Nathan Froyd 3f6ef6aa59 Bug 1252198 - use UniquePtr instead of ScopedFreePtr in MediaEngineTabVideoSource; r=gerald
UniquePtr is more standard than ScopedFreePtr; using standard constructs
whenever possible is preferable.  In this case, we're allocating a
simple block of memory, so we can allocate an |unsigned char[]| via
MakeUnique for the same effect.
2016-02-29 10:20:01 -05:00
Carsten "Tomcat" Book 372be7a1e1 Backed out changeset b1b50935ab45 (bug 1249313) for for making Bug 1207431 worse 2016-03-01 11:21:55 +01:00
Gian-Carlo Pascutto 0cc14f2a8b Bug 1249313 - Don't shut down the entire Cameras IPC if a single source is shut down. r=jesup 2016-02-23 15:20:26 +01:00
Kan-Ru Chen 31705a1450 Bug 1249244 - Add missing argument to MediaEngineGonkVideoSource::Allocate. r=cyu
MozReview-Commit-ID: 5va5cHFqlja

--HG--
extra : rebase_source : ca16b27f315b06468c93dcfd25ad9fc739dc1021
2016-02-18 18:52:37 +08:00
Randell Jesup 674904d269 Bug 1237816: count open input sources for MediaStreams to release inputs on Destroy() r=roc,padenot
MozReview-Commit-ID: LkCBqPXAWBP
2016-02-03 21:12:51 -05:00
Randell Jesup 325a83f9f0 Bug 1245216: Avoid reallocating and leaking AudioPacketizer output buffer r=padenot
MozReview-Commit-ID: JAeodWyowex
2016-02-17 13:19:02 -05:00
Randell Jesup 53115cc247 Bug 1245216: white-list the fake 440Hz audio source used in automation for getUserMedia enumeration r=padenot
MozReview-Commit-ID: Gor7DsJlI2r
2016-02-17 13:19:02 -05:00
Randell Jesup 85f3c6a92d Bug 1245216: Fix getUserMedia input in full_duplex mode coming from the wrong place r=padenot
Also cleanup of an leftover overrridden interface, and re-add a line lost in merges

MozReview-Commit-ID: 7sjtbbtq1RG
2016-02-17 13:19:02 -05:00
Randell Jesup 0a6b21aecf Bug 1245216: plumb preferred sample rate from full_duplex cubeb through NotifyInput/Output r=padenot
MozReview-Commit-ID: 4F9LwSIZ5OA
2016-02-17 13:19:01 -05:00
Gian-Carlo Pascutto 546b46fa4c Bug 1177242 - Verify whether sandboxed Content process has permissions to access the camera/mic. r=jesup 2016-02-17 18:57:26 +01:00
Birunthan Mohanathas d7371d07d0 Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-02-02 17:36:30 +02:00
Phil Ringnalda d381b4bca6 Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
CLOSED TREE

Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas 373593275e Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj 2016-01-31 17:12:12 +02:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Bill McCloskey c663839ade Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
Paul Kerr [:pkerr] 447a27169b Bug 1209252: add buttons to clear session and signaling logs. r=jib, r=sicking 2016-01-27 16:05:10 -08:00
Randell Jesup 69ee4cadcc Bug 1242061: remove small strdup() leak of devicename strings in getUserMedia enumeration rs=jib
--HG--
extra : commitid : 9FT4rttdtMx
2016-01-23 02:03:29 -05:00
Randell Jesup 3789ac3d6f Bug 1242061: fix leaked static nsTArrays r=bustage
on a CLOSED TREE

--HG--
extra : commitid : EsX0LUltlkQ
2016-01-22 22:36:26 -05:00
Kartikaya Gupta 13a87b56bb Bug 1242061 follow up to fix static analysis build bustage. r=me
--HG--
extra : commitid : JBEBz9vEEIA
2016-01-22 21:05:19 -05:00
Randell Jesup 66c6ef708f Bug 1242061: re-enumerate audio devices in full_duplex via cubeb when getUserMedia is called r=jib
--HG--
extra : commitid : LJDXuq181Na
2016-01-22 20:40:26 -05:00
Randell Jesup f138ca68d1 Bug 987186 - remove AudioConfig, send agc/aec/noise from prefs r=jib,smaug
(Reland squashed)
Respect echoCancellation constraint in GetUserMedia
Support echoCancellation constraint, pass test

--HG--
extra : commitid : 7Bq2u1yamMf
2016-01-22 16:46:38 -05:00
Kyle Huey 0fbc58d746 Backed out 3 changesets (bug 987186) for build bustage. CLOSED TREE
Backed out changeset 00cb175253b9 (bug 987186)
Backed out changeset deaf45c9ad2a (bug 987186)
Backed out changeset bc3d6c21f5ed (bug 987186)
2016-01-22 10:35:23 -08:00
Brian Armstrong 22380f5f60 Bug 987186 - respect echoCancellation constraint in GetUserMedia r=smaug,jib
--HG--
extra : commitid : 2nPvNPTWkTa
2016-01-20 13:11:42 -08:00
Brian Armstrong 6f7fc7357b Bug 987186 - remove AudioConfig, send agc/aec/noise from prefs r=jib
--HG--
extra : commitid : 5Yfw0K2W9nl
2016-01-19 16:33:11 -08:00
Randell Jesup a853e094df Bug 1221587: Update for API changes in cubeb r=padenot
--HG--
extra : commitid : C4GE8epQXOe
2016-01-21 11:51:36 -05:00
Randell Jesup cbdb5359ca Bug 1221587: add per-platform prefs to control full-duplex cubeb input r=jib
--HG--
extra : commitid : 7P9rnGXTYh1
2016-01-21 11:51:36 -05:00
Randell Jesup 3758d938f3 Bug 1221587: Block attempts to open two mics at once until supported in full-duplex r=jib
--HG--
extra : commitid : 4bK7SYZZZjH
2016-01-21 11:51:36 -05:00
Randell Jesup 46878bf96f Bug 1221587: use cubeb devids to select input devices r=padenot
--HG--
extra : commitid : AH6Lt4KfNaF
2016-01-21 11:51:36 -05:00
Randell Jesup be7d8f1d36 Bug 1221587: change audio listeners for full-duplex audio r=padenot
--HG--
extra : commitid : HGZSv3IY3OF
2016-01-21 11:51:36 -05:00
Paul Adenot 439679b676 Bug 1221587: allow getUserMedia to use full-duplex cubeb streams r=padenot
--HG--
extra : commitid : DQAIBehrpU3
2016-01-21 11:51:36 -05:00
Wes Kocher ef637b17e9 Backed out changeset 1c3afb2f433b (bug 1221587)
--HG--
extra : commitid : JErfAFCW3YJ
2016-01-21 17:28:28 -08:00
Wes Kocher 4d52f1b36b Backed out changeset 765fa97d2407 (bug 1221587)
--HG--
extra : commitid : GLNtVETOSsb
2016-01-21 17:28:26 -08:00
Wes Kocher 71e2d1b3e4 Backed out changeset 8af4dd12d47c (bug 1221587)
--HG--
extra : commitid : AD53AdwdwaG
2016-01-21 17:28:25 -08:00
Wes Kocher 90ee9c25ba Backed out changeset 67833fc7a708 (bug 1221587)
--HG--
extra : commitid : HCZiFKeQCGp
2016-01-21 17:28:20 -08:00
Wes Kocher e8203da294 Backed out changeset 4b22bd7b7a73 (bug 1221587)
--HG--
extra : commitid : K0g4NPkKZW6
2016-01-21 17:28:18 -08:00
Wes Kocher 6a60db7718 Backed out changeset ff326b0cc099 (bug 1221587)
--HG--
extra : commitid : IaIBmzsd7rp
2016-01-21 17:28:14 -08:00
Randell Jesup 600178b7d6 Bug 1221587: Update for API changes in cubeb r=padenot
--HG--
extra : commitid : B6ZRzya3bL6
2016-01-21 11:51:36 -05:00
Randell Jesup b8df5b1837 Bug 1221587: add per-platform prefs to control full-duplex cubeb input r=jib
--HG--
extra : commitid : JswRdGqAT1s
2016-01-21 11:51:36 -05:00
Randell Jesup 52bdab9d2f Bug 1221587: Block attempts to open two mics at once until supported in full-duplex r=jib
--HG--
extra : commitid : IJIrw15vmjA
2016-01-21 11:51:36 -05:00
Randell Jesup 2501b5c4c1 Bug 1221587: use cubeb devids to select input devices r=padenot
--HG--
extra : commitid : 80Zdtlc9zJI
2016-01-21 11:51:36 -05:00
Randell Jesup a621cb7376 Bug 1221587: change audio listeners for full-duplex audio r=padenot
--HG--
extra : commitid : 9yDpe5JP1eS
2016-01-21 11:51:36 -05:00
Paul Adenot 61fbf51469 Bug 1221587: allow getUserMedia to use full-duplex cubeb streams r=padenot
--HG--
extra : commitid : AH6pOM2E3J2
2016-01-21 11:51:36 -05:00