I'm trying to creating radio application and one of the radio stations is using rtsp:\ protocol (rtsp:\\addres\file.sdp with mp4a codec). I was trying to play it using MediaPlayer but it doesn't want to work. Is it possible to play such audio stream using android with MediaPlayer or... other lib?
Any one :(?
Android supports for RTSP streaming. However, usually the Android Emulator have issued with playing audio or video streaming application. You should test your streaming application on real device
Related
I have to build an android app that can stream video from phone to server using RTSP. What is the best method to implement this?
I am implementing automatic call response application in android.In my application the call is respond by the audio file which is recorded by user and that file will play when incoming call is answered automatically by program.I have searched for it to know how to do this but all are saying that this is not possible in android to play audio file during call.So, I want to know what are the alternatives that can be used for doing the same thing.
According to android official docs, it is not possible to play audio while a call.
See the docs here :https://developer.android.com/guide/topics/media/mediaplayer.html
Note: You can play back the audio data only to the standard output
device. Currently, that is the mobile device speaker or a Bluetooth
headset. You cannot play sound files in the conversation audio during
a call.
As an alternative you can use Twilio : https://www.ipragmatech.com/play-audio-file-android-call-using-twilio/
I am trying to stream video from a webcam on a raspberry pi to an android application. I used motion library on the raspberry pi to stream the video. This worked fine as I can see the video on my browser by navigating to http://raspberrypiIP:8081.
Question: how do I display this video on an Android app?
I went for LibVLC, but I am on windows environment and the lib cannot be built. I wanted to try GStreamer but I am not used to native libraries.
Are there some java libraries enabling this or other easier ways that enables me to view the video on an Android phone?
I'm using Android Studio and I'm quite new to Android development.
I have not yet attempted to stream from Raspberry Pi to Android. However, I have streamed from Raspberry Pi to YouTube Live Events (https://www.youtube.com/my_live_events) which is easy to set up and get working.
I have also used the Android YouTube API Player API to play YouTube videos inside some of my Android apps (https://developers.google.com/youtube/android/player/).
So, I recommend the YouTube approach as a first line of enquiry.
I play the music (internet radio stream) in a MediaPlayer. I would like to save the datastream (or the waveform) to a file, and play it back later. Does it have SDK support? I did not found, AudioRecorder and MediaRecorder is only good for mics and voice uplink/downlink.
So, how to save the data played by mediaplayer? And how to play it back? I need an API 8/9 to API 16 solution.
In my application I am doing live audio streaming using Android media player. I want to capture the sound stream played by MediaPlayer. Is there is way to record using Android MediaPlayer instead of MediaRecorder? Any suggestions?
While it is a non-trivial undertaking, you can write your own "MediaPlayer" that implements whatever streaming protocol you are using and writes the stream to a file instead of the speaker.