Home | History | Annotate | Download | only in android
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "media/base/android/media_jni_registrar.h"
      6 
      7 #include "base/basictypes.h"
      8 #include "base/android/jni_android.h"
      9 #include "base/android/jni_registrar.h"
     10 
     11 #include "media/audio/android/audio_manager_android.h"
     12 #include "media/audio/android/audio_record_input.h"
     13 #include "media/base/android/media_codec_bridge.h"
     14 #include "media/base/android/media_drm_bridge.h"
     15 #include "media/base/android/media_player_bridge.h"
     16 #include "media/base/android/media_player_listener.h"
     17 #include "media/base/android/webaudio_media_codec_bridge.h"
     18 #include "media/video/capture/android/video_capture_device_android.h"
     19 
     20 namespace media {
     21 
     22 static base::android::RegistrationMethod kMediaRegisteredMethods[] = {
     23   { "AudioManagerAndroid",
     24     AudioManagerAndroid::RegisterAudioManager },
     25   { "AudioRecordInput",
     26     AudioRecordInputStream::RegisterAudioRecordInput },
     27   { "MediaCodecBridge",
     28     MediaCodecBridge::RegisterMediaCodecBridge },
     29   { "MediaDrmBridge",
     30     MediaDrmBridge::RegisterMediaDrmBridge },
     31   { "MediaPlayerBridge",
     32     MediaPlayerBridge::RegisterMediaPlayerBridge },
     33   { "MediaPlayerListener",
     34     MediaPlayerListener::RegisterMediaPlayerListener },
     35   { "VideoCaptureDevice",
     36     VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice },
     37   { "WebAudioMediaCodecBridge",
     38     WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge },
     39 };
     40 
     41 bool RegisterJni(JNIEnv* env) {
     42   return base::android::RegisterNativeMethods(
     43       env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods));
     44 }
     45 
     46 }  // namespace media
     47