Android :: Why The Duration Of Clip Is Different Between VideoView.getDuration And MediaMetadataRetriever.extractMetadata - MediaMetadataRetriever.METADATA_KEY_DURATION
Jul 17, 2009
When I create an APP for Media test, I'd like to get the duration of tested clip. Nut as the debug result, the duration is different between the 2 methods for many clips.
Method 1:
CODE:.....
Method 2:
CODE:.........
What is the reason? And I checked the result of Method 2 is right when compared with PC result. Is there a bug for MediaMetadataRetriever.extractMetadata (MediaMetadataRetriever.METADATA_KEY_DURATION)?
View 3 Replies
Apr 8, 2009
Some audio files return 0 from MediaPlayer.getDuration(), even though they're perfectly valid files that play ok and that players on Windows can find the duration of. There seem to be two different cases here: certain file types such as .wma and .wav always return 0 duration, and others only do so sometimes. I haven't been able to find any pattern in the latter case, but it does seem consistent per file. The music player displays 0:00 duration for these, so it's not just my code.
View 3 Replies
View Related
May 11, 2010
I am browsing the web but no way to find how to get metadata from a picture.
I can't see anything in the Bitmap/BitmapFactory/BitmapFactory.Options documentation that would give me a hint.
I would like to retrieve standard information such as:
name
date it was taken
dimension
size
View 2 Replies
View Related
Oct 10, 2010
I'm trying to get access to the metadata about podcasts, such as the show notes/description, the show title and the icon image. I'm at least partially using ContentResolver to query for most of the AudioColumns information, but for some reason ALBUM_ART is missing, there seems to be no column for the description, and in general, it's not clear what the mapping is. Since podcasts are not songs, they don't generally have "composers", "artists" and "albums" they have show titles, episode titles, hosts, etc. Is there any information out there on what standards are generally used for podcast metadata and how I can efficiently access it?
View 1 Replies
View Related
Jul 14, 2010
I want to store some metadata in images. My camera application gives me a bitmap, which I store in the storage (MediaStore) device. In addition to this, I want to add a few tags to the picture in its metadata. I think EXIF is a good way of doing this. But I couldn't find good references on how to do this.If there are some tools to achieve this task in Android programming,
View 1 Replies
View Related
Jun 7, 2010
In Visual Studio, I can obtain a succinct list of public methods/members exposed in a class for which I do not have the source (i.e. bundled inside a DLL) by pressing F12 (GoToDefinition).
Similarly, I am learning the Android API - in Eclipse. Jumping to an Android framework method definition produces decompilation output which is not intuitive to read, and is very verbose. To mimic results like Visual Studio, I am considering several options:
How can I format the decompilation output to be 'cleaner' - I have looked through Eclipse's preferences menus and have not found a way to do this.
How do I 'add corresponding source files' once Google provides it, so that jumping to definition yields the actual definition?
Is there a plugin that does this already? I looked into Jadclipse, but that project has not been updated in several years, and is still a decompiler.
View 3 Replies
View Related
Nov 2, 2010
Is it possible to write custom metadata to an JPG image using Android SDK or some 3rd party lib , and extracting it afterwards? If it is, is there any simple solution?
View 1 Replies
View Related
Feb 6, 2009
Is there a way to directly access a Jpeg's file metadata, without having to go through the ImageManager services?
View 4 Replies
View Related
Feb 15, 2013
Google Music stores it's my downloaded MP3 music on the internal phone memory on my Nexus4. I don't want to use any other player, I really like how Google Music gives me the best of both worlds, with regards to having my best stuff locally, and all music in the cloud.
However sometimes I want to copy a particular Mp3 from my phone to my computer. All the files are randomly numbered xxx.mp3, so I can't see which file is what track in MP3 explorer.
Any app that can browse a system directory (on a rooted phone), and show all the Mp3 metadata and allow copying of that file?
View 3 Replies
View Related
Dec 20, 2009
YouTube - Google Vs. iPhone clip.mpg
View 2 Replies
View Related
Sep 27, 2010
I'm looking for a App, for the Htc Droid Incredible,that is simular to My Media or Download Lite for Iphone.I want to download and save video clips to my phone off the internet.
View 1 Replies
View Related
Jan 14, 2014
I received a Text message sent from an E-Mail and I was wondering if it was possible to find the individual file on the filesystem holding the metadata for the E-Mail.
If so, would I have to root the phone? And where would that file be located?
I'm a techie, so no need to warn me that I could hurt my phone or files - I'm only looking to READ, not WRITE, and I'd be making a copy of that file beforehand anyways and porting it to a PC in order to check it with whatever program is necessary to decrypt (Probably only need a hex editor.)
View 3 Replies
View Related
Apr 19, 2010
I need to display an alert message for no more than a half a second. As I understand it, Toast only has 2 available durations, with no way to alter them. Correct me if I'm wrong. Which leads me to sing the AlertDialog. What would be the best way of displaying a dialog for 500ms and then dismissing it?
View 4 Replies
View Related
Oct 18, 2010
I would get outgoing call duration a call, I thought to get when the persone to the other side answer my call, but with PhoneStateListener we can get the state of a call, but PhoneStateListener changes state to CALL_STATE_OFFHOOK immediately when the outgoing call starts and not when the person to other side answers, so i can't get the effective time of call during a conversation.
View 1 Replies
View Related
Jun 15, 2010
How do I set up an audiofile to play when a user touches an image.Where should I store the audio file and what code should I use to actually play the file?I don't want to bring up the MediaPlayer interface or anything like that.
View 1 Replies
View Related
Apr 27, 2010
I'm using Android's android.graphics.Canvas class to draw a ring. My onDraw method clips the canvas to make a hole for the inner circle, and then draws the full outer circle over the hole:
clip = new Path();
clip.addRect(outerCircle, Path.Direction.CW);
clip.addOval(innerCircle, Path.Direction.CCW);
canvas.save();
canvas.clipPath(clip);
canvas.drawOval(outerCircle, lightGrey);
canvas.restore();
The result is a ring with a pretty, anti-aliased outer edge and a jagged, ugly inner edge:What can I do to antialias the inner edge?I don't want to cheat by drawing a grey circle in the middle because the dialog is slightly transparent. (This transparency isn't as subtle on on other backgrounds.)
View 1 Replies
View Related
Aug 11, 2010
Can anyone shed any light on why I'm unable to click and play a youtube clip on an Android handset when placed inside a webview?I've put a very simple app together (it's being extended, but no right away) and it has a web view assigned using the Android SDK.The rest of the webview works as expected (text, images, css etc), however, the YouTube clips will not show, they just show as black or white rectangles (where the video embed should be).We use the same view to display content on the iPhone app equivalent, without any issues.This is using a basic flash embed, the Safari browser on iPhone converts these to H.264 and plays them nicely in QuickTime.Can Android do the same?
View 4 Replies
View Related
Apr 8, 2009
We came across a strange behavior. The clip rect of our custom view is getting reset to its entire visible region, if we change the value of another view.
View 4 Replies
View Related
Aug 26, 2010
im making an android game and i want to insert a movie clip (.flv) of exlosion into the game, how do i do that?
View 2 Replies
View Related
Jun 1, 2010
At the moment I am using this code to inquire google maps for directions from an address to another one, then I simply draw it on a mapview from its GeometryCollection. But yet this isn't enough I need also to extract the total expected duration from the kml. give a little sample code?
code:........................
View 2 Replies
View Related
Sep 11, 2009
I want to drop a call after some time duration let me know how to send the event to it or how to throw event on ACTION_DIAL intent
View 2 Replies
View Related
Apr 24, 2010
I'm writing an app for Android OS, and I need to store some time values in the SQLite DB. I have been using android.text.format.Time to store the time values in the app, and then inserting the values as millis into the DB as REAL values. On the SDK emulator, everything works perfectly. On the sole phone I've had the opportunity to test my app (so far), my duration code doesn't work as expected. Some relevant code:
private static final String DATABASE_CREATE =
"create table " + DATABASE_TABLE + " ("
+ KEY_ROWID + " integer primary key autoincrement, "
+ KEY_START + " REAL, "
+ KEY_STOP + " REAL, "
+ KEY_DUR + " REAL );";
private SQLiteDatabase mDb;
ContentValues timerValues = new ContentValues();
timerValues.put(KEY_START, stime.toMillis(false));
timerValues.put(KEY_STOP, etime.toMillis(false));
timerValues.put(KEY_DURATION, stime.toMillis(false)-etime.toMillis(false));
int result = mDb.insert(DATABASE_TABLE, null, timerValues);
I pull this data from two separate functions with slightly different bits of code, both using Time.set(long millis), both giving incorrect results: The start and stop values come back correct, but the duration comes out 17 hours too large. Am I missing something about calculating durations or does this just seem like there's something "special" about this particular droid? I'll have another droid to test on Monday, but any ideas are appreciated.
View 3 Replies
View Related
Oct 10, 2010
Is it possible to modify an active call by overlaying a sound track during the call? I looked up the SDK, but couldn't find any api to do this in the documentation. I am trying to investigate the feasibility of playing a previously recorded call/audio clip onto an ongoing call.
View 1 Replies
View Related
Feb 23, 2010
I've used the voice recognition feature on Android and I love it. It's one of my customers' most praised features. However, the format is somewhat restrictive. You have to call the recognizer intent, have it send the recording for transcription to google, and wait for the text back. Some of my ideas would require recording the audio within my app and then sending the clip to google for transcription. Is there any way I can send an audio clip to be processed with speech to text?
View 1 Replies
View Related
May 27, 2010
I am having the following problem: I am using Android's MediaPlayer to play an mp3 through an HTTP connection. The audio is played correctly, but the MediaPlayer returns an incorrect duration (calling mediaPlayer.getDuration() ). Depending on the mp3 the duration is either shorter or longer. The code that plays the audio is the following:
mediaPlayer = new MediaPlayer(); mediaPlayer.setOnCompletionListener(this); mediaPlayer.setOnErrorListener(this); mediaPlayer.setOnPreparedListener(this); mediaPlayer.setOnBufferingUpdateListener(this); mediaPlayer.setDataSource("a valid URL"); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.prepareAsync();............................
View 2 Replies
View Related
Dec 14, 2009
I'm using the SoundPool to play a series of small audio clips and am having issues with the audio when it starts. I have the audio attached to a button press. When I press the button mulitple times the tick persists. I was wondering if this was the audio file itself or is there something I need to do differently with the SoundPool other than play simply play the clip. These are .ogg files I created using Audacity. When I play them in my dekstop media player, they sound fine.
View 2 Replies
View Related
Nov 26, 2013
've noticed suddenly that I have no sound on any clip playing from a youtube embed. Am I the only one? Thought everything was fine yesterday... Sound settings look ok and Vimeo embeds are working properly. I was checking out this page: [URL] ......
I've restarted the tab, browser, phone etc. What should I do!
View 2 Replies
View Related
Aug 2, 2010
I am working on a application ,where I want to assign a silent ringtone to a particular contact for a duration of time period. Please provide me some suggestion I do not have any idea to implement it.
View 4 Replies
View Related
Mar 7, 2010
I need someone to test my First app I did. It is reworked and extended version of Android DatePicker app here: Date Picker | Android Developers. I don't have Android creature, because I am out of the Google test area. My app shows Time Duration using the DatePicker Dialog twice
The result can be seen on the image.
Please email me and I'll attach the tDurator.apk for you. I need feedback about the working state of the app when rotating the Nexus 1 device, but anyone having at least Android system 1.5 (level 3 on the SDK) can run the app. The app is signed for release and in not harm to the phone.
View 4 Replies
View Related
Aug 5, 2010
When I stream music using the MediaPlayer, it gives me the wrong song duration. Has anyone else encountered this?
View 2 Replies
View Related