Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.