Hi,
Does MSDC provide an API to retrieve audio data from network? I am trying to implement eMBMS in MCPTT calls and looking for a way to retrieve and process audio data being sent from the server/network. Is there any API which might take an ip and port as parameters and let me retrieve audio data coming from that ip/port?
Dear Customer,
MSDC SDK 4.2 provides the API to activate the TMGI corresponding to streaming service and UI returns the IP/PORT that UI should bind to to read the data.
Please refer to the MSDC SDK 4.2 documentation.
Thanks
Ankit
Hi Ankit,
I am using Groupcall Service in order to make eMBMS group calls for our MCPTT application. Once I get the groupcallservicestarted() callback , if i have the IP and PORT information with me, then in order to get audio/rtp data from that ip/port , which msdc api i need to call exactly? As per your suggestion , i checked the MSDC API 4.2 doc, but couldn't find any specific API which talks about get the audio data from the ip/port. When you say "that UI should bind to to read the data" , how do you bind it actually? Kindly help me with this. N.B: I have the activated tmgi information also.
Please refer to the section 5.6.5.2 and the sample code there:
public void groupCallServiceStarted(long tmgi) {
if(mSocket == null){
//open a multicast socket
mSocket = new MulticastSocket(PORT);
//Create SocketAddress
SocketAddress socketAddress =
new InetSocketAddress(MULTICAST_GROUP, PORT);
//Get the NetworkInterface from the interfaceName
NetworkInterface networkInterface =
NetworkInterface.getByName(interfaceName);
//join the multicast group on given interface name
mSocket.joinGroup(socketAddress, networkInterface);
}
if(mLibVLC == null){
mLibVLC = new LibVLC(this,null);
}
// To play with LibVLC, we need a media player object.
if(mMediaPlayer == null){
mMediaPlayer = new MediaPlayer(mLibVLC);
}
//Forming the rtp url using multicast group and port
String mediaURI = "rtp://"++MULTICAST_GROUP+":"+PORT;
// Create a new Media object for the file.
if(media == null){
media = new Media(mLibVLC, Uri.parse(mediaURI));
}
// Tell the media player to play the new Media.
mMediaPlayer.setMedia(media);
// Finally, play it!
mMediaPlayer.play();
}
Thanks
Ankit