Comments (1)
The native cc code for DataIsRecorded is defined as:
{"nativeDataIsRecorded", "(IJ)V", reinterpret_cast<void*>(&webrtc::AudioRecordJni::DataIsRecorded)}};
JNI_FUNCTION_ALIGN void JNICALL AudioRecordJni::DataIsRecorded(JNIEnv* env, jobject obj, jint length, jlong nativeAudioRecord)
The arguments are: jint length, jlong nativeAudioRecord
It is called twice:
From: ./mediasoup-client/deps/webrtc/src/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java - as:
private native void nativeDataIsRecorded(int bytes, long nativeAudioRecord);
From: ./mediasoup-client/deps/webrtc/src/sdk/android/src/java/org/webrtc/audio/WebRtcAudioRecord.java - as:
private native void nativeDataIsRecorded(long nativeAudioRecordJni, int bytes);
In the second case, the arguments are reversed: long nativeAudioRecordJni, int bytes.
Same goes for GetPlayoutData:
{"nativeGetPlayoutData", "(IJ)V", reinterpret_cast<void*>(&webrtc::AudioTrackJni::GetPlayoutData)}};
JNI_FUNCTION_ALIGN void JNICALL AudioTrackJni::GetPlayoutData(JNIEnv* env, jobject obj, jint length, jlong nativeAudioTrack)
Called properly from: ./mediasoup-client/deps/webrtc/src/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java - as:
private native void nativeGetPlayoutData(int bytes, long nativeAudioRecord);
From: ./mediasoup-client/deps/webrtc/src/sdk/android/src/java/org/webrtc/audio/WebRtcAudioTrack.java - as (wrong order):
private static native void nativeGetPlayoutData(long nativeAudioTrackJni, int bytes);
from mediasoup-client-android.
Related Issues (20)
- transport.produce() failed with exception: json.exception.type_error.302 with v3.4.0 HOT 3
- e2e stream encryption
- Crash Java_org_mediasoup_droid_Consumer_nativeGetKind HOT 1
- Crash GLException org.webrtc.GlUtil in checkNoGLES2Error
- Crash <unknown> New Issue Unhandled BusError
- Crash abort New Issue Unhandled Abort
- Crash memcmp New Issue Unhandled Segfault
- Crash android::RefBase::decStrong New Issue Unhandled BusError
- Crash mediasoupclient::Device::Load New Issue Unhandled Segfault HOT 1
- Application getting crash on VideoTrack.removeSink HOT 1
- H.264 encoder support HOT 9
- Is this project still maintained?
- Build Failed
- C/C++: ld: error: ../../../../deps/webrtc/lib/arm64-v8a/libwebrtc.a:1: unknown directive: version
- Any api for using turn?
- is:issue is:open Excuse me, erroe happened when compile the code downloaded with the zip. what should I do. thank HOT 1
- How to send customized video and audio?
- app crashing when minifyEnabled set true HOT 1
- How to use audio/WebRtcAudioRecord rather than voiceengine/WebRtcAudioRecord
- How to switch to media mode to play WebRTC audio HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediasoup-client-android.