Bug 1014614 - Use Android MediaCodec for decoding H264 and AAC in MP4 r=cpearce,edwin,snorp

This commit is contained in:
Andrew Martin McDonough
2014-10-17 10:35:12 -05:00
parent a26f168731
commit 8ba368be86
13 changed files with 2858 additions and 2 deletions

View File

@@ -41,6 +41,7 @@
#include "nsContentUtils.h"
#include "nsIScriptError.h"
#include "nsIHttpChannel.h"
#include "GeneratedSDKWrappers.h"
using namespace mozilla;
using namespace mozilla::widget::android;
@@ -220,6 +221,11 @@ AndroidBridge::Init(JNIEnv *jEnv)
InitAndroidJavaWrappers(jEnv);
if (mAPIVersion >= 16 /* Jelly Bean */) {
// We only use this for MediaCodec right now
InitSDKStubs(jEnv);
}
// jEnv should NOT be cached here by anything -- the jEnv here
// is not valid for the real gecko main thread, which is set
// at SetMainThread time.