audio time

All your problems with Audio, Video and Images.

audio time

Postby ulquiorra » Wed May 05, 2010 2:43 pm

hi all , i have an application with a media player , and i want to retrieve the duration time of the media
i have tried

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public void updateTime()
  2.  
  3.         {
  4.  
  5.             int ttld=mp.getDuration();
  6.  
  7.             int nowd=mp.getCurrentPosition();
  8.  
  9.             int tremaning=(ttld-nowd);
  10.  
  11.        
  12.  
  13.            
  14.  
  15.             date.setText(" temps restant " +String.valueOf(tremaning));
  16.  
  17.             Log.v(TAG, "time " + String.valueOf((tremaning)));
  18.  
  19.          }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


but doesn t work

help me plz
thx a lot
ulquiorra
Junior Developer
Junior Developer
 
Posts: 12
Joined: Thu Apr 08, 2010 1:16 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 20 guests