Skip to content

Commit

Permalink
[#9] webRtc dependency 추가 & SurfaceView->SurfaceViewRenderer 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
zozero94 committed Jan 5, 2021
1 parent 7bb08c8 commit a8c609f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions MyApplication/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,6 @@ dependencies {
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

api 'org.webrtc:google-webrtc:1.0.32006'

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ import com.google.mediapipe.components.FrameProcessor
import com.google.mediapipe.components.PermissionHelper
import com.google.mediapipe.framework.AndroidAssetUtil
import com.google.mediapipe.glutil.EglManager
import org.webrtc.SurfaceViewRenderer


class MediaPipeActivity : BaseActivity<ActivityMediapipeBinding>() {
override val layoutId: Int = R.layout.activity_mediapipe


private var previewFrameTexture: SurfaceTexture? = null
private val previewDisplayView: SurfaceView by lazy { SurfaceView(this) }
private val previewDisplayView: SurfaceViewRenderer by lazy { SurfaceViewRenderer(this) }

private val eglManager: EglManager by lazy { EglManager(null) }
private val processor: FrameProcessor by lazy {
Expand Down

0 comments on commit a8c609f

Please sign in to comment.