From e1f3fd2cf4ddd0720b27f22527dc92f52cad3871 Mon Sep 17 00:00:00 2001 From: ShenBen Date: Sat, 30 Oct 2021 16:26:08 +0800 Subject: [PATCH] update demo --- app/build.gradle | 4 ++-- .../java/com/shencoder/webrtcextensiondemo/MainActivity.kt | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 46d6b40..2638f29 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,11 +28,11 @@ dependencies { implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'com.google.android.material:material:1.4.0' - implementation 'androidx.constraintlayout:constraintlayout:2.1.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.1' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' implementation 'org.webrtc:google-webrtc:1.0.32006' -// implementation 'com.github.shenbengit:WebRTCExtension:1.0.0' +// implementation 'com.github.shenbengit:WebRTCExtension:1.0.3' implementation project(path: ':extension-lib') } \ No newline at end of file diff --git a/app/src/main/java/com/shencoder/webrtcextensiondemo/MainActivity.kt b/app/src/main/java/com/shencoder/webrtcextensiondemo/MainActivity.kt index 6342eeb..b7c74b9 100644 --- a/app/src/main/java/com/shencoder/webrtcextensiondemo/MainActivity.kt +++ b/app/src/main/java/com/shencoder/webrtcextensiondemo/MainActivity.kt @@ -14,9 +14,7 @@ class MainActivity : AppCompatActivity() { val viewRenderer: CustomSurfaceViewRenderer = findViewById(R.id.viewRenderer) //是否垂直镜像 viewRenderer.setMirrorVertically(false) - /** - * 旋转角度 - */ + //设置旋转角度:0°、90°、180°、270° viewRenderer.setRotationAngle(RotationAngle.ANGLE_0) WebRTCManager.getInstance().init(applicationContext)