This source file includes following definitions.
- RegisterJni
#include "media/base/android/media_jni_registrar.h"
#include "base/basictypes.h"
#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
#include "media/audio/android/audio_manager_android.h"
#include "media/audio/android/audio_record_input.h"
#include "media/base/android/media_codec_bridge.h"
#include "media/base/android/media_drm_bridge.h"
#include "media/base/android/media_player_bridge.h"
#include "media/base/android/media_player_listener.h"
#include "media/base/android/webaudio_media_codec_bridge.h"
#include "media/midi/usb_midi_device_android.h"
#include "media/midi/usb_midi_device_factory_android.h"
#include "media/video/capture/android/video_capture_device_android.h"
#include "media/video/capture/android/video_capture_device_factory_android.h"
namespace media {
static base::android::RegistrationMethod kMediaRegisteredMethods[] = {
{ "AudioManagerAndroid",
AudioManagerAndroid::RegisterAudioManager },
{ "AudioRecordInput",
AudioRecordInputStream::RegisterAudioRecordInput },
{ "MediaCodecBridge",
MediaCodecBridge::RegisterMediaCodecBridge },
{ "MediaDrmBridge",
MediaDrmBridge::RegisterMediaDrmBridge },
{ "MediaPlayerBridge",
MediaPlayerBridge::RegisterMediaPlayerBridge },
{ "MediaPlayerListener",
MediaPlayerListener::RegisterMediaPlayerListener },
{ "UsbMidiDevice",
UsbMidiDeviceAndroid::RegisterUsbMidiDevice },
{ "UsbMidiDeviceFactory",
UsbMidiDeviceFactoryAndroid::RegisterUsbMidiDeviceFactory },
{ "VideoCaptureDevice",
VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice },
{ "VideoCaptureDeviceFactory",
VideoCaptureDeviceFactoryAndroid::RegisterVideoCaptureDeviceFactory },
{ "WebAudioMediaCodecBridge",
WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge },
};
bool RegisterJni(JNIEnv* env) {
return base::android::RegisterNativeMethods(
env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods));
}
}