How to record live streaming audiofrom url in Android - android

I am creating an online radio application. In the app we have an option to record the audio.
I did this using device MIC. But it captures the noise. Is it possible to record audio from streaming url?

Related

Play audio on microphone on Android device

I'd like to create an App that plays an audio file/stream to the microphone to allow a video communication App to capture the sound as input.
To Play the Audio I'm currently using the AudioTrack class.
The closest question is this one, but still unanswered.

Record device Audio and Stream using FFMPEG or

I a developing an app in which I want to record Device internal Audio and stream the audio to other device on Same network.
I heard that FFMPEG and RTMP protocols provide the functionality to record and stream Audio. But I al unable to search any working example or demo.
I also searched about MediaProjection API, but it is recording the screen with Audio and then saving in local device memory rather than streaming it.
All I want to Stream the Audio while recording to other device on same network.
I followed following links for Audio streaming:
Screen capture
The above link record the device screen and Audio and then saving in Local memory. But I want to stream to other device.
RTMP Live streaming
Record Audio stream using FFMPEG
And this one:
Audio stream
But there is no proper documentation or working example from which I get some hint, so that I can integrate that one in my app.
I know ampme App have this feature. As it is streaming device Video and Audio to other nearby devices.
I am stuck here. Please provide some info so that I can proceed further.

Android VOIP How to stream audio and video on voice chat

I am looking to develop an app, that can make an audio call using sip and then user A (the caller) plays a media file from his android phone and user b (the receiver) can also hear the audio and video in realtime, how i can accomplish this? can we transfer media sounds through sip or voip without using mic? that is a sound of media playing on device's media player, any guidance or links to study will be helpful.thanks!
I am looking to develop an app, that can make an audio call using sip
Yes, Android's SIP package has that facility built-in for you.
user A (the caller) plays a media file from his android phone and user
b (the receiver) can also hear the audio and video in realtime, how i
can accomplish this?
As for streaming the video, you need RTSP instead of SIP. Have a look at Video streaming using RTSP: Android
Further Reading:
Upload live android webcam video to RTP/RTSP Server
Creating RTP Packets from Android Camera to Send
Library:
https://github.com/fyhertz/libstreaming

Audio Microphone Live Streaming in Android

I am new in live streaming. I have a problem to create live streaming of recording file. I can upload the audio file to server and play from url using media player but i dont want this i want as i speak it broadcast to all and when i finish my speech then it stops broadcasting. Is it feasible or not. If feasible then how?
Can i do this with Amazon CloudFront?
As per my knowledge you can use Spydroid
it is basically for video streaming but you can use it for audio streaming as well and then you have to alter its code for audio streaming..
seccondly you will need some media server i will prefer you to use Red5 media server as it is opensource Red 5
red5 supports audio and video streaming both but you have to study it little bit

Problem playing media from RTSP URL in Android

I have made a Android streaming application that plays media from online URL's. For playing the media, I am using the
standard MediaPlayer class for playing media.
As per the Android documentation, it supports RTSP protocol for audio & video playback
http://developer.android.com/guide/appendix/media-formats.html
But when I am trying to play media from a RTSP URL, it gets connected but I am not able to hear any media
Following is one of those RTSP URL -
rtsp://sfera.live24.gr/sfera4132
Does anybody media have an idea of playing RTSP URL's through the Android MediaPlayer
Thanks
That link you provided has 3 audio tracks, with the first and last tracks appearing to be silent and don't contain any valid audio.
The middle track has audio (as per VLC). I don't know how Android deals with multiple audio tracks. I imagine you may get better results if you use links that only contain 1 audio and 1 video track at most.
I expect for an rtsp stream with multiple audio tracks, android is only going to play the first one as there is no user interface to select a specific audio stream, hence why you aren't hearing any audio.
If this is a stream from your own server, to hear the audio you should adjust the SDP file the valid audio track first. If this is not from your server, I don't know what you're options are.

Categories

Resources