Android :: Where Can A Video File Be Placed / Played In Droid Other Than Sd Card?
Aug 19, 20101.how do we build our own video player in android,it will be helpful if ull can give me some code related to it.
View 1 Replies1.how do we build our own video player in android,it will be helpful if ull can give me some code related to it.
View 1 RepliesAnybody getting this when they try view recorded videos? Worked well in 2.1, but I get this error in 2.2
View 4 Replies View RelatedI was trying to use VideoView to play a Video from the SD card, but the only thing working properly is its audio, while I see the first frame of the video which doesn't play on and after a few seconds the Error message "Cannot play video - Sorry, this video cannot be played" appears. I don't know what I have done wrong.if anyone could help me out here, that would be great. this is the logcat output I get...I just saw that it says Video track fell behind, could that be the problem and if so what can I do to stop it from falling behind?
View 7 Replies View RelatedAnyone else getting this error notice while watching online videos? For the most part, this doesn't happen for me in youtube vids, but any other internet vid site will prompt this error. I have been getting this problem since the 2.1 update... didn't get better or worse after I rooted to froyo 2.2 and overclocked to 1200mhz.
View 12 Replies View RelatedIf I load all my music on my SD card can I just put it in my Droid and it will play?
View 2 Replies View RelatedI've had the phone for a out a month now and everythings been amazing. However,starting yesterday I haven't been able to play any of my music, videos, online videos, nothing. The error I get mainly is "file cannot be displayed or played" or something like "audio file not supported" when I try to play music.
View 2 Replies View RelatedI have a video file on a website in .MP4 format and I want to allow the user to be able to download the video to their SD card by clicking a link. Is there an easy way to do this. I currently have this code but its not working...not sure what I am doing wrong.
CODE:......................
I recently (last Friday) got my EVO and am loving it, however I've noticed that when I try to play a video through youtube, or click on a video in facebook, I get the error that says the video cannot be played.This even happens with videos that I uploaded to youtube with my EVO.Has anyone else seen this or know if there is a fix?
View 11 Replies View RelatedI have an activity that uses VideoView and MediaController. I have a .mp4 file. When I put the file in res/raw folder, I can play the video using Uri.parse("android.resource://<package>/" + R.raw.id_video)
However, when I put the same file in the filesystem, it plays properly. I use videoView.setVideoPath("/sdcard/myfile.mp4");
I have encoded several videos to mp4. All of these videos played fine on on my phone until yesterday. Now none of them will play correctly. The default video player says "The video could not be played" and Act 1 says "Video is falling behind audio. It may be too much data for your phone to process, or may not be supported by Android" What gives? They play correctly on my wife's droid. I haven't downloaded any new apps since they played correctly. I have killed all apps to make sure I have enough memory. What could have changed? I have followed the instructions given on the forums to encode video to a T.
View 2 Replies View RelatedI have an application that will record and play audio files. Some of the audio files are downloaded using simple standard http downloads using httpclient. It worked like a charm for a long time. Now all of a sudden I cannot play the files I download. It fails with this stack. I store the files on the SD Card and I experience the problem both on a handset and a USB connected device. I have checked that the downloaded file is cool on the server, and I can play it without any issues. These are the code snippets I use ( I know that recordingFile is a valid path for the file).
// inside the activity class
private void playRecording() throws IOException{
File recordingFile = new File(recordingFileName);
FileInputStream recordingInputStream = new FileInputStream(recordingFile);
audioMediaPlayer.playAudio(recordingInputStream);
}
Here is the media player code:
// inside my media player class which handles the recordings
public void playAudio(FileInputStream audioInputStream) throws IOException {
mediaPlayer.reset();
mediaPlayer.setDataSource(audioInputStream.getFD());
mediaPlayer.prepare(); mediaPlayer.start();
}
Here is the exception:
E/MediaPlayerService( 555): offset error
E/MediaPlayer( 786): Unable to to create media player
W/System.err( 786): java.io.IOException: setDataSourceFD failed.: status=0x80000000
W/System.err( 786): at android.media.MediaPlayer.setDataSource(Native Method)
W/System.err( 786): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:632)
W/System.err( 786): at net.xxx.xxx.AudioMediaPlayer.playAudio(AudioMediaPlayer.java:69)
W/System.err( 786): at net.xxx.xxx.Downloads.playRecording(Downloads.java:299)
W/System.err( 786): at net.xxx.xxx.Downloads.access$0(Downloads.java:294)
W/System.err( 786): at net.xxx.xxx.Downloads$1.onClick(Downloads.java:135)
I have tried seeking some answer of the offset error, but not really clear what this issue might be. I download the file with this code:
public FileOutputStream executeHttpGet(FileOutputStream fileOutputStream) throws ClientProtocolException, IOException{
try { // Execute HTTP Post Request
httpResponse = httpClient.execute(httpPost, localContext);
int status = httpResponse.getStatusLine().getStatusCode();
// we assume that the response body contains the error message
if (status != HttpStatus.SC_OK) {
ByteArrayOutputStream ostream = new ByteArrayOutputStream();
httpResponse.getEntity().writeTo(ostream); fileOutputStream = null;
} else { InputStream content = httpResponse.getEntity().getContent();
byte[] buffer = new byte[1024]; int len = 0;
while ( (len = content.read(buffer)) > 0 ) {
fileOutputStream.write(buffer,0, len);
} fileOutputStream.close();
content.close(); // this will also close the connection }
} catch (ClientProtocolException e1) {
// TODO Auto-generated catch block e1.printStackTrace();
fileOutputStream = null; } catch (IOException e2) {
// TODO Auto-generated catch block e2.printStackTrace();
fileOutputStream = null;
} return fileOutputStream;
}
I know this is not a big deal but it is still bothersome. When I try to run video while on Yahoo's site I get message "Cannot play video - Sorry this video cannot be played." I have no issues with ESPN, Cnet, etc. I'm able to run these yahoo videos on my wife's Eris with 2.1 (v.3).
Anyone know how to deal with this issue?
ever since i put the leaked .3 version youtube has gone downhill. when i click on a video it seems like its loading but then a pop up comes on saying "video cannnot be played" even with the .6 update i did with the leaked ruu its the same. just tested it and it only does it when i have HQ enabled
View 4 Replies View Relatedwhen I am on YouTube I always get, sorry this video cnnot be played.and its realy annoying me, are there any fixes?
View 3 Replies View RelatedCan't seem to find the answer im looking for. I took a few videos at the zoo and they have sound when i play them back on my phone. But when i upload them to my computer, there is no sound.
View 8 Replies View RelatedI upload video and when I go to watch it, it has no sound. I use windows media and vlc none of them play it.
View 2 Replies View RelatedI'm trying to put some mp4 movies into my sd card for my moment, after i unmount my usb, and i click the video icon for the movie, it says "sorry this video cannot be played" i thought it's suppose to play mp4 and or h.264 type files? what can i do to solve this..?
View 5 Replies View RelatedMy YouTube app isn't working, when I click on the video that I want to watch it gives me an error message stating that the video cannot be played. I've searched on the forum and other models have reported similar problems, but as far as I can see this hasn't been discussed specifically for the tattoo
View 10 Replies View RelatedMy code was working before. I don't why now i got the error. My application use g1 phone recording an 3gp video, Then I use following code try to play it, however I got an error "Sorry this video cannot be played". This happened seems after an update from Tmobile. Does anyone has same experience? code...
View 3 Replies View RelatedIs there any way to default the stock you tube app to play in high quality? Any suggestions for another you tube player...
View 2 Replies View RelatedWhich video player for Android supports "MKV" video file?
View 2 Replies View RelatedPosted this at a different android forum, posting here as well to maybe find a fix quicker..
---
VERY annoying youtube issue..
With just about ANY video i try to play on youtube while using EVDO, i am greeted with this message after about a 30 second "loading" loop
I have been able to find others with this issue.. but no fix:
Android Youtube App Problems - YouTube Help
YouTube on the HTC Hero � what gives?
Youtube will not play - Droid Forum - Verizon Droid & the Motorola Droid Forum
Sorry, this video cannot be played - Android Help
The YouTube app on my Hero says "Sorry, this video cannot be played" when I try to play a video. - Android Market
How to play video present in local file system (ex:in res/a.3gp) using VideoView .I am getting error as Video cant be played.Can any one help me in sorting out this issue?
View 2 Replies View Relatedwhat are file formats android video player can support in android?
View 1 Replies View RelatedI am trying to play file which is stored in SDCARD in emulator. I have Linux O/S. So i need to provide command in run configuration. I am providing following parameter.
-sdcard /usr/android/sdcard/mysdcard.iso -audio oss [i]
The following is my code to play file.
try { mMediaPlayer.setDataSource("/sdcard/test_cbr.mp3"); mMediaPlayer.prepare(); // Giving error. mMediaPlayer.start(); }
I am creating android application which contains DB that needs to be hidden(not able to access by the user)in the sd card.can anyone tell me how to do this?
View 3 Replies View RelatedHow come this is the only file manager on the market (that I've found... I went through quite a few) that can open an HTML file from your SD card? I was a loyal user of Estrogen until I found that it couldn't.
View 2 Replies View RelatedAdded a home video via websharing to my eris. It will not play. I renamed to a mp4 and it goes to the video player but then states it is unable to play. Anymore extensions I can use or does anyone have an idea to make it play?
View 7 Replies View RelatedI tried to send a video using gmail, I couldn't do it, it said file to big or something like that. It was only like 20 seconds long. I really like this phone but it seems to be really limited when it comes to MMS or sending video's whether its email or MMS. My sister has verizon (and I do to) when she sends me text or MMS and adds a smiley face it modifies the msg and she gets a msg back saying my phone dont support enhanced msg. wtf? My razr really did better when it came to mms. There has to be something not adjusted right on this phone.
View 1 Replies View RelatedDo you keep the SBF file on your PC or on your SD card on the phone? I believe you can flash it either way but what's the easiest and what do most people do?
View 8 Replies View Related