FLV Player Help

Hello, i’m making a video player, and I’m having trouble getting the total time of the flv file. When i just test the movie, it gets and fires the metadata event and works, but whne i upload to my server and try it, it never gets the metadata, nor can i use player.totalTime (because it = 0). Now this happens the first time i view the page, but after i let it play, and then refresh the page the metadata event goes. I’m guessing this is because the flv has been completely downloaded, but i don’t know why this would effect the metadata. Anyways, i need some help on this, getting the totalTime of the flv, so i would appreciate anything.