Android :: Audio Progressive Download Over HTTP
Apr 14, 2009
I have a couple questions regarding audio streaming/progressive download over HTTP. Could you please help me?
1. MediaPlayer supports progressive download according to the developer guide from this link http://developer.android.com/guide/topics/media/index.html ("If you're passing a URL to an online media file, the file must be capable of progressive download."). As far as I understand progressive download means media playback during download process with saving the media file to file system(SD card or internal FS) after the downloading is finished (if it's a file, not a stream in the passed URL). So, I tried to set the following URL: setDataSource (http://84.204.154.49/mmapi/music.mp3). Playback is fine, but the file isn't saved to SD card or internal phone file system. Can MediaPlayer save media content to the file system after downloading is completed? Is there a way to turn on such capability?
2. Does MediaPlayer support HTTP streaming? I tried to use http://217.10.32.134:8129/ultrafan128.mp3, http://62.32.66.180:8800, also AMR-, AAC- audio stream over HTTP on the local server, but playback does not work. For example, RTSP streaming works fine with AMR and AAC.
View 13 Replies
Sep 20, 2010
In my android application i would like to download from a http link progressively and then play it.That is first save some bytes and play it in the meanwhile buffer the next file.
View 2 Replies
View Related
Aug 27, 2009
Does Android have APIs for HTTP progressive download for media files?
View 2 Replies
View Related
Nov 20, 2009
when a video is played over http (progressive download), in some cases, the application stops the current http connection and continues the download using a new http request with a range header. closing the connection is the phone choice, not server. somebody knows in which cases the phone behaves this way?
View 3 Replies
View Related
Jan 13, 2010
I'm confused about how VideoView can be used to play video: from a local file, as progressive download and streaming. This example work for me (on 1.5 and 2.0 at least) by downloading the file and playing it locally. But is it necessary to download the video before playing: is it possible to play video as progressive download, or by streaming, simply by using setVideoPath or setVideoURI, as in VideoViewDemo in the API samples?
The VideoViewDemo code suggests using setVideoURI for streaming, but I'm not clear what kind of URL I should be using. Does someone have an example URL for a video that can be streamed to the Android emulator using the VideoViewDemo code? Can progressive download be used with VideoViewDemo? I get a 'sorry, this video cannot be played' message using setVideoPath with URLs that work fine with the blog example linked to above.(Is this a problem in the emulator? I've tried 1.5 and 2.0.)
View 3 Replies
View Related
Jan 22, 2010
I am trying to stream video (or use progressive download) to a Motorola Droid Browser and am not having a lot of luck. With my iPhone, I can direct Safari to http://xxx.xxx.xxx/FileName.mp4 (which is an MPEG-4 video file) and Safari opens quicktime and the video plays. However, with the Droid, I go to the same web address and am faced with a error stating "Cannot play video. Sorry, this video is not valid for streaming to this device".
When I direct the Droid's browser to a WMV file, it will fully download the video file and then play it in what appears to be the Droid video player if I click on it. Ideally, I'd like to replicate the behavior of the iPhone on the Droid, where the video player pops up and the video starts before the complete download. Video format isn't an issue, as I can encode the video to pretty much any standard. I was trying the .mp4 file because the Droid documentation says that it supports MPEG-4 video, although I can't get it to work from the browser.
View 3 Replies
View Related
Jun 21, 2010
My app uses streaming (i think the correct term is progressive download) for videos. To be able to do that, the mp4 file must be hinted and I manage to do that. Now, is there a suggested or advisable settings for the mp4 like the bit rates, resolution, frame rate etc so that the playback is smooth?
View 1 Replies
View Related
Nov 4, 2009
Did anyone try playing audio/video through http/rtsp. I am having a problem with either of the approach.... I am getting an error Command PLAYER_INIT completed with PVMFError I some cases I got Command PLAYER_INIT completed with PVMFErrorContentInvalidForProgressiveDownoload.
Can some one explain what is the problem. The code snippet I am using is given below. Code...
The code works fine when I say mVideoView.setVideoPath("/sdcard/vv.3gp"); but not able to play if I give a rtsp/http urls. In case of http it says PVMFErrorContentInvalid for progressive download.
Can some body tell me what is the problem. Can you please post the code if someone has been successful in playing audio/video through http/rtsp.
View 8 Replies
View Related
Jul 6, 2009
AudioRecord can record audio data in pcm format in realtime, but there is no audio-encoder who can encode pcm data to amr format. may be third-party java code can do this, but the performance may be very low.MediaRecorder just record audio data to disk. not realtime.It seems that this is a real miss-impossible?
View 2 Replies
View Related
Sep 16, 2009
I am trying to make a application where you can search for something and download it. For example I want it to be connected to my website and you can type one of my ROM names and it will show a list view of all my ROMs or themes then I can select one and download it.
View 9 Replies
View Related
Aug 4, 2009
I want to Download image from Server using Http Connection and at same time i want to show ProgressDialod till is not Downloaded i dont undestand.
View 3 Replies
View Related
Mar 1, 2012
Why can't I download a ZIP via HTTP post through the stock browser?
The problem is mostly described in the following article: [URL] .....
Basically I am currently working on an ASP.NET application that bundles bunch of files into a zip and pushes it back to the client via the response output stream.
Now this works fine in Firefox and in the ICS 4.0 stock browser, but doesn't work on the clients Galaxy Tab running Honeycomb 3.0. What happens is it appears to download the html of the page instead.
View 2 Replies
View Related
Jul 13, 2010
I am trying to stream video over https from Android browser. If the video URL is http, everything works fine. But when I switch the url to https, no video can be played. I tried 2 methods to stream over http/ https through Android browser.
1. Use html5 Video tag on browser (Android 2.0+ device) and call video.play( ) from javascript. - With Https url. Browser launches media player and the player displays alert dialog saying "Can't play video". I captured the client TCP traffic and found no SSL handshake between client and server. It looks like the player pops up the alert on any https link. - With Http url. Browser launches media player and the player can stream the video successfully.
2. Use direct link of html <a> tag on browser and click the link - With Https url. Browser downloads the video file without launching the player. The browser seems not try to load any https link in media player. - With Http url. Browser launches media player and the player can stream the video successfully.
So the above tests make me think Android media player cannot play media from any https url.
View 4 Replies
View Related
Jan 13, 2010
I've got an activity that calls a helper class called DownloadManager. DownloadManager spawns a thread that downloads a mp3 to the sdcard. I'm having some trouble finding the best design for resuming the initial activity and starting the MediaPlayer. Does it make the most sense to use a BroadcastReceiver that receives a message that download is complete, then start a new Intent of my activity? Think I saw something that I can't use an Intent to start an Activity from BroadcastReceiver because it is a background process.
View 4 Replies
View Related
May 23, 2010
Does anyone know if there is a way for either meridian or the regular android player to recognize audio tags on lossless audio files?
View 1 Replies
View Related
Sep 22, 2010
Is there an Android equivalent to the iOS Core Audio / Audio File Stream Services? I need to be able to read audio bytes from a network and feed them to the audio system under my control, so I can do my own timeouts / reconnects / range requests / etc. without interrupting the audio playback (since the system audio thread would be playing audio already enqueued). It seems that MediaPlayer doesn't give me this level of control. Is there a lower-level framework that does, either in the SDK or NDK?
View 2 Replies
View Related
Oct 2, 2010
I want combine two audio files. (A audio file + B audio file = AB audio file)So, my search result is:
1. useing an AudioTrack.
2. decode PCM from audio file.
3. combine PCM.
This is currect? It there another way?
View 1 Replies
View Related
Oct 17, 2010
I want to record a sample from the microphone, then I want to play the recorded file maximizing the volume and apply some audio effect, like modifing sample rate or addind an echo.Waht is the best way? is there an example?
View 1 Replies
View Related
Jun 2, 2009
Could you please let me know how to do the audio record in android emulator and play the same recorded audio. Could you please help me in proceeding in development.I tried with MediaPlayer API's also.Its not working.
View 5 Replies
View Related
May 8, 2010
Is there a way to determine the audio format of an audio file in Android? On normal java I do it like this:
File file= new File(...);
AudioInputStream stream = AudioSystem.getAudioInputStream(file);
AudioFormat format= stream.getFormat();
View 2 Replies
View Related
Sep 22, 2009
I want to be able to download and install my app from my website, but when i do this at the moment i get the error:-
Download unsuccessful - Cannot Download. The content is not supported on the phone.
After looking into this it became apparent that the PHP Magic, that handles the downloads from the website, recognises the file as a .zip file rather then a .apk file and sends the it a .zip, that the phone does not recognise.
Does anyone know a way to get PHP Magic to recognise the file as an apk so that file extension does not get changed and the phone can recognise it?
View 2 Replies
View Related
May 5, 2010
I connected my phone via USB to my RR sport to upload audio files to the RR hard drive. However, I keep getting connection error. Apparently my device is not being recognized as a storage. I did the unmount thinking. Also, I am wondering how I can play audio from my phone through the RR audio system.
RR is 2010.
View 2 Replies
View Related
Nov 12, 2010
I am working on a application that would allow users to play remote files. My question is how do I open those remote files to be played in the default android player?but this does not give me control of what is happening!
View 2 Replies
View Related
Jun 28, 2010
I have a 720p video that I am trying to play on GS. The image is amazing by the way. But I can't hear any audio (works fine on my PC). Anything wrong with the audio codec used?
View 7 Replies
View Related
Dec 9, 2009
I am streaming an MP3 audio and instead making this MP3 audio to play, I want it to be converted to PCM format and pass this PCM audio to AudioTrack(as it takes PCM data as input.) instead of passing my MP3 stream to MediaPlayer. Can anyone please help me to convert the MP3 to PCM stream?
View 3 Replies
View Related
Jan 17, 2010
I have searched the whole group but wasn't able to find a answer for my problem.I want to record audio from the microphone, apply some audio signal processing and than save the processed audio data in a compressed format.I figured out, how to record audio uncompressed but now I wonder if I can use some api functions to store this data in a supported compressed format.
View 4 Replies
View Related
Feb 15, 2010
I want to play music from online mp3 link.I am reading the music data into a stream and trying to play it using audio track.But itz giving only noise.No music i could listen.here buffer is the audio data i am reading into.Same buffer I can play in MediaPlayer,,,But i could not play in audio track.
View 1 Replies
View Related
May 26, 2010
By default HttpClient use HTTP/1.1 protocol, is there any way to change it to HTTP/1.0?
View 4 Replies
View Related
Aug 11, 2010
I have a paid app on Android Market. I've set up an HTTPS notification URL in Google Checkout settings. Yet notifications don't come. Please, what am I doing wrong? Are realtime order notifications supported for Android Market at all? If so, is there a separate UI for setting those up?
View 1 Replies
View Related
Apr 6, 2010
I have a problem. I'm doing a http post request to a URL like this; DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(url); HttpResponse response = httpclient.execute(httppost); I am able to get the response content (html in this case) but I would like to be able to get the url of the response. Is there a way? Or could i use some other technique to do the post request and retrieve the url? The repsonse url is lke www.url.com?x=1&y=2 and would like to get the parameter values, I've tried to use the getParams().getParameter() on the HttpResponse object without any success. So if anyone has a solution to get the parameters without getting the url.
View 16 Replies
View Related