when video duration or date_modified attribute available ?

All your problems with Audio, Video and Images.

when video duration or date_modified attribute available ?

Postby tabman » Sun Aug 08, 2010 9:57 pm

I'm having some trouble accessing attributes like DURATION and DATE_MODIFIED of video and image. My app access these attributes for both type of data but if I take a picture or shoot a video the related attributes are not immediately available through content provider e.g. for DURATION for that specific video it returns 0.

If I restart the phone the attribute for the newly shoot video or picture taken becomes available.

The other way to make the attributes available is to plug in and out your phone to a computer through usb cable. Once that is done the attributes are available.

Any comments on why this is happening ? Is this a bug ? How to resolve this ?
tabman
Junior Developer
Junior Developer
 
Posts: 10
Joined: Sat May 22, 2010 9:38 pm

Top

Re: when video duration or date_modified attribute available

Postby daisyallen123 » Tue Aug 10, 2010 5:05 am

Try this sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()))); may this helps you to solve out your problem .
daisyallen123
Freshman
Freshman
 
Posts: 4
Joined: Mon Aug 09, 2010 12:31 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests