Play music with RTP Android - android

It s possible that i can send music data stream on RTP with android mobile.
it's a example for rtp
http://androidsourcecode.blogspot.in/2013/10/android-rtp-sample-receiving-via-vlc.html

Related

How to record audio of remotepeer webrtc in Android

I am trying to record the remote peer's audio but can't,
The record local peer I did it through this class
https://webrtc.googlesource.com/src/+/master/examples/androidapp/src/org/appspot/apprtc/RecordedAudioToFileController.java
How to get data buffer of audio (remote) in webrtc Android

using serversocket to receive and play audio in android?

I have an android client app from which i record audio from mic and send it to an socket. Now I want to build another app that will create a ServerSocket and listen to the audio from the mic and play it.
Will anybody guide me on that?

android RTP send and receive program

I am new to android programming and i need idea about android RTP programming stuff. Questions
How to capture the microphone audio data on android device?
How to construct RTP packet by using captured microphone audio data without using API?
How to transmit RTP packet to other android device?
How to play received RTP packet in android ?
For transmitting and receiving RTP packets, I would suggest looking into the jlibrtp library. Basically you initialize it with 2 DatagramSockets (one for sending RTP data and one for receiving RTCP data), define a payload type, add a recipient, and send byte arrays. I beleive it handles the RTP timestamps by itself, but you have to make sure you're payload is already formatted by the RFC reccommendations.
Here is an example of how you would set up an RTP session
Answers for your questions..
1.Use Android Media Api like AudioRecord for recording the voice data & AudioTrack for playing the voice data, both in .pcm format.
2.Go through this link
3.you have to use sip for transmiting packets.
4.go through this link

Mediarecorder Video RTP/RTSP Streams!

I am able to Record Android's Camera Using Mediarecorder Class.
I heard that sipdroid (videocamera.java ) sends the recorded video as RTP streams.
I tried that and able to do the same.
But how do i receive the RTP streams and play it in PC?
I too heard that in Sipdroid,on the server (PBXes )side they were converting these streams into RTSP streams and passing it back to videocamera.java file.
Can anyone help me in converting RTP Streams to RTSP streams?
There is no such thing as an RTSP stream, RTSP is a session management protocol (as is SIP) and lets you setup streaming using RTP. Amongst other things the port numbers are communicated during session initiation. When RTSP is used, the actual media is still sent using RTP. Read the RFCs for more info on either protocol.

How to develop a video player that receives video stream on wi-fi broadcasting/multicasting?

general video players connect the media server through unicast
but I need a player to receive media stream using multicast/broadcast.
scenario:
Media Server ---> AP --(multicast/broadcast video stream)--> player(android phone)
is there any Android SDK to support this function?
or is there any solution without developing software codec and RTP stack?
James.
Here is a post about Android and multi-cast support: How to receive Multicast packets on Android
The question about a multicast video streaming protocol is a separate issue. There should be nothing Android-specific required (assuming you can get and receive multicast data is all you need from Android).
Getting the new codec to show up as a video-playing app in Android is a separate issue. See this question:
How to add a new video codec to Android?

Categories

Resources