openvidu-android: Updated webrtc sdk

Updated webrtc sdk using an alternative repository https://github.com/webrtc-sdk/android instead of the deprecated and official Google library
openvidu-android: Downgraded appcompat-resources to 1.4.2

Downgraded appcompat-resources to 1.4.2 for avoiding the targetSdk and compileSdk update
openvidu-android: Removed enableDtlsSrtp from PeerConnection config

enableDtlsSrtp is not longer exported as public configuration parameter  (https://webrtc-review.googlesource.com/c/src/+/234864/10/sdk/android/api/org/webrtc/PeerConnection.java)
This commit is contained in:
Carlos Santos 2022-11-03 17:40:30 +01:00
parent 9ec705c70a
commit 722f8de465
4 changed files with 10 additions and 5 deletions

View File

@ -21,5 +21,10 @@
<option name="name" value="Google" />
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven" />
<option name="name" value="maven" />
<option name="url" value="https://jitpack.io" />
</remote-repository>
</component>
</project>

View File

@ -46,7 +46,7 @@ dependencies {
implementation 'com.jakewharton:butterknife:10.2.0'
implementation 'com.squareup.okhttp3:okhttp:4.2.0'
implementation 'com.neovisionaries:nv-websocket-client:2.9'
implementation 'org.webrtc:google-webrtc:1.0.32006'
implementation 'com.github.webrtc-sdk:android:104.5112.03'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.4.0'

View File

@ -89,7 +89,6 @@ public class Session {
config.continualGatheringPolicy =
PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY;
config.keyType = PeerConnection.KeyType.ECDSA;
config.enableDtlsSrtp = true;
config.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN;
PeerConnection peerConnection = peerConnectionFactory.createPeerConnection(config, new CustomPeerConnectionObserver("local") {
@ -136,7 +135,6 @@ public class Session {
config.continualGatheringPolicy =
PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY;
config.keyType = PeerConnection.KeyType.ECDSA;
config.enableDtlsSrtp = true;
config.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN;
PeerConnection peerConnection = peerConnectionFactory.createPeerConnection(config, new CustomPeerConnectionObserver("remotePeerCreation") {

View File

@ -7,7 +7,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath 'com.android.tools.build:gradle:7.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@ -18,7 +18,9 @@ allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}