Replies: 2 comments 4 replies
-
Hello, Can you share an example code? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Hello, I checked this case and you can know when the mediaprojection stop send video data after screen record of the Android system is started. ScreenSource(applicationContext, mediaProjection, mediaProjectionCallback = object : MediaProjection.Callback() {
override fun onStop() {
super.onStop()
//called when media project stop cause of screen record started
}
}) You can use this callback to know it. The problem is that you can't resume the stream because you can't know the moment mediaprojection is free again. So the recommended way is stop stream in that callback and let user start stream again manually. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Pedro!
I have a problem: when I turn on screen translation and then the standard android screen recording an error occurs and the picture on the screen translation freezes. How can this be fixed?
Beta Was this translation helpful? Give feedback.
All reactions