blob: aadfbd1150fa96661595ad2f69f5a77644a99629 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/media.h"
#include "base/logging.h"
#if defined(OS_ANDROID)
#include "base/android/jni_android.h"
#include "media/base/android/media_jni_registrar.h"
#endif
// This file is intended for platforms that don't need to load any media
// libraries (e.g., Android and iOS).
namespace media {
bool InitializeMediaLibrary(const base::FilePath& module_dir) {
return true;
}
void InitializeMediaLibraryForTesting() {
#if defined(OS_ANDROID)
// Register JNI bindings for android.
JNIEnv* env = base::android::AttachCurrentThread();
RegisterJni(env);
#endif
}
bool IsMediaLibraryInitialized() {
return true;
}
} // namespace media
|