Android : MediaPlayer Seeking Back To Stream From An Http Url

Jan 29, 2009

I've been using androids MediaPlayer to stream from an http url and have a question about seeking. Currently, our urls expire after they have been used once or a certain time out has expired to dissuade scraping content. Now, this obviously makes progressive streaming past the buffer impossible with the exact same url as you need to open a new http connection with the same mangled key, which we intentionally don't allow.

However, MediaPlayer seems to do this when seeking before the current position (i.e. seeking from 1:00 in the audio to 0:30). As the file has already been downloaded up to the current position I'm confused as to why MediaPlayer is still trying to initate a new http connection in this case? The only thing I can think of is that MediaPlayer is getting rid of audio its already played up to the current position, and hence needs to restart the connection if you try to seek back on the stream. Is this correct, or is there something else going on?

Android : MediaPlayer seeking back to stream from an http url


Android :: Broken Pipe Exception When Tried To Stream Mp3 Stream From Local Server To Android Mediaplayer

Oct 27, 2010

I am trying to stream mp3 stream from my local http server indeed hosted on my phone to android media player.When local server gets the new socket , it starts writing some http headers followed by mp3 stream. but mediaplayer socket is throwing "Broken pipe" exception.Wat may be the issue causing this.

View 1 Replies View Related

Android :: Use Basic HTTP Authentication With Droid MediaPlayer?

Aug 13, 2009

I cant find a way to use an url that requires basic auth when im using code...

Anyone that got any ideas?

View 3 Replies View Related

Android :: Stream A Very Large Mp3 Using MediaPlayer

Mar 11, 2009

Is it possible to stream a very large mp3 using MediaPlayer? The mp3 I am interested in is over 270 mb.

View 3 Replies View Related

Android : MediaPlayer With Stream Over Network

Feb 17, 2009

I would like to receive an audio stream from an application running on a PC using the 802.11 connection. I tried the following and received Error (-1, 0) from the MediaPlayer:

mp = new MediaPlayer(); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.setDataSource("http://10.1.201.114:11224");

The MediaPlayer does connect to the application and the application starts sending audio but nothing happens on the G1. Is the setDataSource call above correct? If so, how do I set things like sample rate, etc? If not, any help would be great!

View 2 Replies View Related

Android :: Playing Audio Stream Not Working Using MediaPlayer

Nov 27, 2009

I am trying to make a very simple radio player for Android and I cannot get the audio streaming to work. In my latest attempt it plays for about 1 second and stops for some streams and it doesnt work at all for some other streams. Logcat doesn't give much useful information to me. I am testing on HTC Hero (Android 1.5).

If I hook the completion and buffer events I see the audio gets a complete event but it keeps buffering. Is there anything wrong with the code below? Should I be able to stream the the audio streams below? Is there a complete example somewhere of a working radio streaming?................

View 5 Replies View Related

Android :: Correctly Set MediaPlayer Audio Stream Type

Aug 21, 2010

I'm trying to create a way to adjust volume settings for each of the different streams (media, notification, ringtone, etc) and have a way to preview the output sound level of each stream. I believe I have the correct implementation, but when I set the output stream type, there is no sound that plays.

Here is the code that correctly plays the user's selected alarm sound:

CODE:.................

That commented out line is what is causing me problems. I would like to hear the alarm sound at the volume levels of the different audio streams, but when I include that line for STREAM_ALARM or any other audio stream, no sound at all plays.

View 1 Replies View Related

Android :: Unable To Play Rtsp Video (H.264) Stream In Froyo Using MediaPlayer

Oct 3, 2010

I have an app that worked fine on Android 2.1 (Eclair) but is no longer working in 2.2.1 (Froyo). I think this may have to do with the shift from OpenCore to StageFright for video encoding and decoding, but am unsure.

The debug logs show two things I'm not sure about:

Does this mean H.264 baseline is not supported? WARN/QCvdec(59): Parsing Error unsupported profile or level No idea about: ERROR/PVOMXVidDecNode(59): Ln 1373 OMX_EventError nData1 -2147479542 nData2 0

Play the following url (it works fine in VLC, for example): rtsp://nexus3.dropcam.com/6821ec44e37846428850ec195d69969a

The code:.........

The debug result:

CODE:................

View 3 Replies View Related

Android :: Resetting A HTTP Input Stream?

Jan 9, 2010

I am getting the input of a web page using Input Stream in = httpConnection.getInputStream(); I then use the XmlPullParser to check if an error has occurred. If no error has occurred, I then want to reset the Input Stream back to the beginning so that I can parse it through another function I have created. I tried in.reset(); but this does not work. Is this possible?

View 4 Replies View Related

Android :: Retrieving XML / Stream From HTTP (Parsing XML)

May 4, 2010

What are the best practices parsing XML from an HTTP resource in Android? I've been using HttpURLConnection to retrieve an InputStream, wrapping it with a BufferedInputStream, and then using SAX to parse the buffered stream. For the most part it works, though I do receive error reports of SocketTimeoutException: The operation timed out or general parsing error. I believe it's due to the InputStream. Would using HttpClient instead of HttpURLConnection help? If yes, why? Should the stream be output to a file, having the file parsed instead of the stream?

View 1 Replies View Related

Android :: Droid GStreamer Fails To Stream Http Url / What To Do?

Nov 16, 2010

I am trying to build a music app on a android device with GStreamer ported on it. But when I try mp3 url streaming on http, it failed to handle stream (however, it works perfectly fine on Android devices with base Media Framework, OPENCore). So I wanted to know whether GStreamer supports http url streaming, or is there any other way of doing it.

View 1 Replies View Related

Android :: Video Stream - MPEG4 Video - Not Showing On Android Using MediaPlayer

Oct 12, 2010

There is an online stream that is 512Kb MPEG4 and total size of 312mb online and if I'm correct after looking over docs in order to play the movie I just simply put:

CODE:..................

It is triggered to play after a button press which after a few seconds after pressing the button it plays the audio BUT doesn't show the video, why not? Do I have to use a surface view or something for visual playback of the stream.

View 2 Replies View Related

Android :: MediaPlayer.start - Doesnot Work Fine After Calling MediaPlayer.seekTo - 0

Apr 27, 2009

I have a requirement to play several sounds many times in my game so instead of creating the MediaPlayer again and again I have called mp.seekTo(0) in onCompletion(mp) so that it will restart. Sometimes the sound is not audible from the device when I call mp.start () after setting mp.seekTo(0); but the player calls onCompletion() without playing any sound, this is observed randomly on most of the sounds

My sounds are of short duration mostly less than a second.

I am using a separate MediaPlayer for each sound (as I need this) -

There are almost 28 sounds in my game so i will be creating 28 MediaPlayers.

Below is the attached code for player

Also If I try to play many sounds one after the other in a short period of time i get an error saying "no more track names available". can u tell Why this is happening...?

check the below code:

CODE:........

View 9 Replies View Related

Android : Seeking Information To Get SDK - JDK

Aug 23, 2010

I am very new to androids n want to know more abt t. pls give me informations abt SDK ,JDK,, eclipse etc n why they r used? how do i install n use tat pls posts links to videos.

View 2 Replies View Related

Android : Seeking Programmer Who Can Create App

Sep 29, 2010

create or has in the past created an app for android. I have a very good idea, that ide like to put to work, and cannot do it because I dont know how. Also dont know if this is the right section really. If this works, or can work, it might revolutionize, lets say, Blackberry to Android and vice versa, messaging.

View 11 Replies View Related

Android :: Mystery Null Pointer Error Seeking Opinions

Oct 31, 2009

An error that appeared in my Flurry logs but seemed impossible to reproduce otherwise just occured That's the good news.The bad news is that the LogCat info is not telling me enough.I would appreciate a second set of eyes taking a look and offering wisdom.The lead up is that I was playing with my app, and put it away for a while. I did a lot of other things with my phone since, like making phone calls, etc I hooked up my phone to the computer to make another attempt to find the mystery bug, and decided to see if anything weird appeared in the logs from earlier.I then brought my app to the foreground using the Home/Hold technique and whamo the bug appeared before my eyes in LogCat.

View 4 Replies View Related

Android : Seeking A Better PDF Reader / BeamReader Looses Its Mind When Switch

Aug 26, 2010

I've tried BeamReader Pro/paid, QuickOffice free and Adobe's Android Acrobat Reader. All have problems.

Acrobat Reader and QuickOffice free do not have the ability to search a PDF.

BeamReader Pro can search a document, but won't make use of an embedded index, so searches are slow, even on pre-indexed PDFs.

BeamReader looses its mind when you switch from portrait to landscape.

Acrobat Reader and QuickOffice recognize phone numbers in PDFs, so you can tap to dial them on Android, but BeamReader Pro does not.

I am very disappointed with all of the above. Is there anything better? I see that there is a US$9.99 paid version of QuickOffice, but the description does not mention capabilities pertaining to PDFs.

View 2 Replies View Related

Android : Major Media Company Seeking Vendor For Phone App Development

Feb 3, 2009

I'm a mobile media product developer at a major media company in New York City, and we are looking for a vendor with experience in Android, web apps, and mobile in general. I understand Android is new, but if you've got something out there to see already, that would really help. Please reply with a brief description of your Android experience and a link or a word about yourself and your company.

View 2 Replies View Related

Android : Re-Teaching Myself To Program - Seeking Object Oriented Design Books

Oct 13, 2010

Five years ago I used to program in SAS. Since then I've been doing software QA of various types. Mostly manual (video games + web apps) testing with a tiny bit of automation.

I'd really like to shift careers back into programming. Specifically the Android platform has caught my attention. These are the books I've been reading and working through.

Learning Java, Third Edition - O'Reilly
Beginning Android 2 - Mark Murphy
Hello, Android - Ed Burnette

However, I think I need something that looks at programming from a less language dependent standpoint. Something that takes a bird's eye view if that makes sense.

It's very easy to see how particular functions work, but I'm looking to get a better sense of how all the pieces fit together. How does one split up an app into individual classes and packages? Do I have a method in main that shuffles my deck of cards (object) or does the class deck of cards have a method I can call to shuffle itself?

I think I'm looking for a book on object oriented design? I've also been working through the tutorials and examples at http://developer.android.com/resources/index.html and also in the three books I've been reading so far. Maybe I just need to spend more time coding though?

View 3 Replies View Related

Games :: Seeking Testers For IA Soccer / Football Game

Sep 12, 2010

I'm looking for constructive feedback about a game I developed, iA Soccer/Football. I've only been able to test on a Nexus 1, and would really like feedback from people who can test the game on other models. If you reply to this thread, please let me know which phone model you're using. Thanks! NOTE: THIS GAME IS ONLY FOR ANDROID 2.1 OR HIGHER.

View 15 Replies View Related

HTC Droid Eris : Seeking Clarification - Set Of Instructions For Updradation

Jun 6, 2010

Alright I sifted though all the root/upgrade threads only to find myself confused so I apologize for the possibly common question but I seek clarification.

Some months back when I got my HTC Eris I installed a 2.1 leak and rooted it. Not 100% sure but I believe it was Version 2. I used these instructions:

Now that the official 2.1 is out I want to switch to it and root it again. I started looking at the pinned threads only to realize that depending on how and what one installed on ones phone it may or may not be possible and instruction vary.

Can someone point me to the set of instructions that apply to my case or confirm that I am out of luck. If you need some firmware build code etc from my phone to make an accurate recommendation I would be happy to provide the information.

View 19 Replies View Related

HTC Eris : Newbie Seeking Post-root / How Do I Switch To A Different ROM

Aug 2, 2010

I'm sorry for being a newbie with all this root stuff, but I've been searching and haven't been able to find a "set" guideline on what to do with my just-rooted Eris. So I've gotten my phone rooted with the DUMMIES phone-only guide and rom'ed with Evil Eris 4.0, but I don't know what exact measures to take from there to install Engtools, OC, flash new roms, etc. I just want to be careful with everything in order to have the best possible root experience D: Basically, I don't know what "pushing" is and how it's done. I think the first thing I want to do is install Engtools, following this:

http://androidforums.com/all-things-root-eris/121597-how-install-engineering-bootloader.html

But, is amon's recovery already installed from the dummies phone-only root? Do I just vol-up+power-on when the phone is off to start it up? After that, what do I do with the codes? How do I push?

Also, after pushing all these files and getting Engtools installed, do I start OC'ing and whatnot? What do people normally do after rooting for performance improvements and other handy-dandy things?

Finally, how do I switch to a different ROM? Do I have to undo one ROM first?

View 4 Replies View Related

Games : Seeking Game "Brickbreaker Wipeout"

Nov 30, 2009

When I had my Crackberry, I used to love a game called 'Brickbreaker' which was based on the classic 'Wipeout', I think. Anyway, I was absolutely addicted to this thing and it saw me through many a boring journey.

I can't find anything in the android market that looks like it might be the same game. Can anyone help me out here? I'm sure it's in there somewhere as it's such a classic. Perhaps it goes under even more names? Oh, I own a HTC Hero, (T-Mobile G2 touch) btw!

View 1 Replies View Related

Motorola Droid X : Back Button Functionality - Cannot Simply Go Back One Menu Using The Back Key

Jul 15, 2010

This is my first android device and i'm loving it... but one thing that irks me is the use, or lack thereof, of the back button.

As I am navigating menus and options in the Settings, I cannot simply go back one menu using the back key. For example, if I go to Settings->Battery Manager->Battery Profile Options and want to go back to the Settings screen, I cannot.

Pushing the back button does nothing and I can only go back to the Settings menu by going Home, then re-entering.

Another quirk regarding the back button is when reading emails. Using a regular email account such as Hotmail, I cannot simply read an email and go back to the inbox using the button.

It makes navigating the phone very tedious.

View 5 Replies View Related

Android :: MediaPlayer API

Apr 7, 2009

How to play the file which is present in MY computer For Eg : Path="D:/Vinod/Songs" can any body give the way to play the audiao file from files in system .....

View 3 Replies View Related

Android :: MediaPlayer And 1.5 Vs 1.6

Oct 20, 2009

In 1.6 I do the following to stream an mp3 shoutcast stream:

CODE:...........

This works great. However, I have to support phones running 1.5 as well. When I build against the 1.5 libraries and run in a level 3 emulator, I get an exception on the prepare() call with the message: Prepare failed.: status=0x1.

Is this supported in 1.5. Is there some other mechanism I have to use that will work in both?

View 11 Replies View Related

Android :: MediaPlayer Bug

Aug 10, 2009

I have such code:..............

When my sound played for the first time, it's all fine. But when for second, third, etc.. it sounds like cutted, just little part of my "click.wav". If I put there sound in another format like mp3 or ogg - all just fine.

Or if I write like this: mp_click = MediaPlayer.create(CubeTest_Main.Context, R.raw.click); mp_click.start(); All if fine too, but this is a bit slow, becouse this sound is playing very often.

View 5 Replies View Related

Android :: MediaPlayer SDK ?

Aug 1, 2010

I have a program with a function copied below it plays a sound upon clicking a button. If you click the button 10 times 10 different media players play the same sound that is the way i want it but how can i assign a button to stop all 10 media players at a time like a "STOP ALL BUTTON"

CODE:..............

The code above only stops the last instance of mp.

View 1 Replies View Related

Android :: How To Know The Status Of MediaPlayer?

Mar 3, 2009

I am developing a media player application which downloads from internet and plays. so while downloading I want to show a progress bar saying "buffering...", and while playing I want to dismiss the same progress bar. I can display the progress bar while downloading (by implementing the listener onBufferedUpdateListener), how can I get the event for player while it is playing.

View 6 Replies View Related

Android :: Cannot See Video When Using MediaPlayer

Jan 20, 2010

Attached is my code, I cannot see the video while playing a MPG file.

CODE:................

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved