How to addTrack in MediaStream in WebRTC

Update: working example near bottom. This depends greatly on which browser you are using at the moment, due to an evolving spec. In the specification and Firefox, peer connections are now fundamentally track-based, and do not depend on local stream associations. You have var sender = pc.addTrack(track, stream), pc.removeTrack(sender), and even sender.replaceTrack(track), the latter involving … Read more

Android : How to change Playback Rate of music using OpenSL ES

I have solved my problem. Here is my complete native code for OpenSL ES in case of anybody need this : #include <jni.h> #include<android/log.h> // LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog 넣어주세요 #define LOGV(…) __android_log_print(ANDROID_LOG_VERBOSE, “OSLESMediaPlayer”, __VA_ARGS__) #define LOGD(…) __android_log_print(ANDROID_LOG_DEBUG , “OSLESMediaPlayer”, __VA_ARGS__) #define LOGI(…) __android_log_print(ANDROID_LOG_INFO , “OSLESMediaPlayer”, __VA_ARGS__) #define LOGW(…) __android_log_print(ANDROID_LOG_WARN , “OSLESMediaPlayer”, __VA_ARGS__) #define LOGE(…) … Read more