Ask Your Question
1

What is the method to store video and audio files using webrtc on Android?

asked 2022-12-26 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-07-01 01:00:00 +0000

nofretete gravatar image

The method to store video and audio files using WebRTC on Android would involve implementing the WebRTC data channel API and the MediaRecorder API in the Android application.

  1. Setup a peer connection using the WebRTC API.
  2. Implement the data channel API to establish a data channel between the peer connections.
  3. Implement the MediaRecorder API to record and store the video and audio data as it is being received on the data channel.
  4. Store the recorded data into a local file using the Android file system APIs.

Alternatively, you could use a third-party library such as Pion WebRTC or XirSys to facilitate the WebRTC data channel and media record operations.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-12-26 11:00:00 +0000

Seen: 11 times

Last updated: Jul 01 '22