I was looking for how to record what is happening on the Android screen. Found here on the site
Implemented (using MediaProjection ). And it works like this: I click on the button - I start recording, by clicking on it again - I finish it. Then I created another button - when I click on it, everything in my VideoView shows what I wrote down (using .setVideoURI(Uri.parse(recordService.getPathVideo())); ). But I need to somehow transfer this video through the network - to my UDP-сервер . I have already implemented it. The problem is what and how to send to the server using the UDP-протокола . What to convert video and how to do it?
On the screenshot below it says that we can take the Surface and send it (took it on this site ). First, how to "deploy" it on Android , that is, if I even pass it on and accept it, how will the users continue to show it, show the video itself that has been recorded? Secondly, how to send via the UDP-протокол , and I know how to send Bitmap there - I simply send an array of bytes. And in this case (video) - I do not know how to do
Ideally, it should look like this: the client ( Android ) records the video - sends it to the UDP-сервер (on the computer), and that one simply transfers it to him (for a start, this will suit me). Please tell me how to implement such a process?
UPDATE: Maybe someone knows how to work with Parcel, or how can it use this recorded video on the screen?