hyeumine's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
1 (0 per day)
Joined:
06-June 11
Profile Views:
49
Last Active:
User is offline Jun 08 2011 11:40 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   hyeumine has not set their status

Posts I've Made

  1. In Topic: getting .mp3 Duration of a JMF

    Posted 6 Jun 2011

    View Postpainkiller102, on 26 June 2009 - 09:39 PM, said:

    so far the following code will play the song i want. but wont give me an accurate time in minutes. Any help is greatly appreciated and yes i am very new to the JMF platform!
    Player player = Manager.createPlayer(new MediaLocator(new File(con[found+1]).toURL().toExternalForm()));
    Time t = player.getDuration();
    Double time = t.getSeconds() / 60;
    System.out.println(time);
    
    



    though this thread is so old,i like to share my experience with this prob!!
    I used createRealizedPlayer method of Manager class instead..
    Player player = Manager.createRealizedPlayer(new MediaLocator(new File(con[found+1]).toURL().toExternalForm()));
    
    

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

hyeumine hasn't added any friends yet.

Comments

hyeumine has no profile comments yet. Why not say hello?