Bug 1581902 - p1: use MediaDataEncoder on Android. r=jya
authorJohn Lin <jolin@mozilla.com>
Tue, 08 Oct 2019 17:15:15 +0000
changeset 496785 7b70cc3ab4ed5c71af4c5de1efcdc7e5f2b2f6ab
parent 496784 fe4675749b699118cf258e0b6456141fafb322dc
child 496786 5530f741f9ad3a10fe395f9b5d2c8e820414e462
push id36668
push useraiakab@mozilla.com
push dateWed, 09 Oct 2019 04:06:09 +0000
treeherdermozilla-central@26ebfec08834 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1581902
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1581902 - p1: use MediaDataEncoder on Android. r=jya Differential Revision: https://phabricator.services.mozilla.com/D46366
media/webrtc/signaling/src/media-conduit/MediaDataCodec.cpp
--- a/media/webrtc/signaling/src/media-conduit/MediaDataCodec.cpp
+++ b/media/webrtc/signaling/src/media-conduit/MediaDataCodec.cpp
@@ -8,17 +8,17 @@
 #include "WebrtcGmpVideoCodec.h"
 #include "mozilla/StaticPrefs_media.h"
 
 namespace mozilla {
 
 /* static */
 WebrtcVideoEncoder* MediaDataCodec::CreateEncoder(
     webrtc::VideoCodecType aCodecType) {
-#ifdef MOZ_APPLEMEDIA
+#if defined(MOZ_APPLEMEDIA) || defined(MOZ_WIDGET_ANDROID)
   if (aCodecType == webrtc::VideoCodecType::kVideoCodecH264) {
     return new WebrtcVideoEncoderProxy(new WebrtcMediaDataEncoder());
   }
 #endif
   return nullptr;
 }
 
 /* static */