mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1376873 - Remove Android java code from AudioConduit; r=padenot
This is no longer necessary as we do not use the webrtc.org audio device implementations anymore. Differential Revision: https://phabricator.services.mozilla.com/D7450 --HG-- extra : rebase_source : b0fb79e68885b42afa1418c77bc6d24527803e9c
This commit is contained in:
parent
9ec710cad0
commit
a4bb9e371c
@ -374,16 +374,6 @@ MediaConduitErrorCode WebrtcAudioConduit::Init()
|
||||
CSFLogDebug(LOGTAG, "%s this=%p", __FUNCTION__, this);
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
JavaVM* jvm = mozilla::jni::GetVM();
|
||||
jobject context = mozilla::AndroidBridge::Bridge()->GetGlobalContextRef();
|
||||
|
||||
if (webrtc::VoiceEngine::SetAndroidObjects(jvm, (void*)context) != 0) {
|
||||
CSFLogError(LOGTAG, "%s Unable to set Android objects", __FUNCTION__);
|
||||
return kMediaConduitSessionNotInited;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(!(mPtrVoEBase = webrtc::VoEBase::GetInterface(GetVoiceEngine())))
|
||||
{
|
||||
CSFLogError(LOGTAG, "%s Unable to initialize VoEBase", __FUNCTION__);
|
||||
|
Loading…
Reference in New Issue
Block a user