finding video features using JMF
hii
i am trying to find the features of video like its length,bit rate and other meta information
but the problem is when i am unable to find the length of the video without actually playing using the Player class.i have tried the code given below
URL url = this.getClass().getResource( resourceName );
Player p = Manager.createPlayer( url );
p.start();
int state = p.getState();
while( state != Controller.Started )
{
try
{
Thread.sleep( 100 );
state = p.getState();
}
catch( Exception e )
{
e.printStackTrace();
}
}
Time duration = p.getDuration();
is it not possible to find the length of the video without actually playing it????please help me regarding this
Re: finding video features using JMF