Hi,
Right now im using the page timer at 1000ms to update the Media player object, however it is displaying the current and total time in a stupid seconds only format, does anyone have code to display in the 0:00/0:00 format?
Right now this is what i got:
length = MediaPlayer.GetLength("mediaplayer");
pos = MediaPlayer.GetCurrentPos("mediaplayer");
msg = string.format("%.2f/%.2f",pos,length);
Label.SetText("msg",msg);
And it displays
1.34343/223.1121 (seconds over seconds with a huge decimal) i would like something more like winamp.
Any ideas?
Shawn
Right now im using the page timer at 1000ms to update the Media player object, however it is displaying the current and total time in a stupid seconds only format, does anyone have code to display in the 0:00/0:00 format?
Right now this is what i got:
length = MediaPlayer.GetLength("mediaplayer");
pos = MediaPlayer.GetCurrentPos("mediaplayer");
msg = string.format("%.2f/%.2f",pos,length);
Label.SetText("msg",msg);
And it displays
1.34343/223.1121 (seconds over seconds with a huge decimal) i would like something more like winamp.
Any ideas?
Shawn
Comment