This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java Micro Edition and the fly likes How to find the duration of the media?  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to find the duration of the media?  " Watch "How to find the duration of the media?  " New topic
Author

How to find the duration of the media?

Soma Sundaram
Greenhorn

Joined: Sep 17, 2006
Posts: 15
Hi

For an application(video streaming) how to find the the duration of the video.
I tried using the getDuration method but i get the result as -1.

How to get the time duration of the video file?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to find the duration of the media?