I’m trying to figure out how to get the time remaining of an flv.
I currently can get the total time and the current time. Any ideas?
var totalHours:Number;
var totalMinutes:Number;
var totalSeconds:Number;
var hours:Number;
var minutes:Number;
var seconds:Number;
function videoStatus() {
totalHours = Math.floor(duration/3600);
totalMinutes = Math.floor(duration/60)-(totalHours*60);
totalSeconds = Math.round(duration%60);
hours = Math.floor(netS.time/3600);
minutes = Math.floor(netS.time/60)-(hours*60);
seconds = Math.round(netS.time%60);
trace(totalHours + " hours: " + totalMinutes + " minutes: " + totalSeconds +" seconds");
trace(hours + " hours: " + minutes + " minutes: " + seconds +" seconds");
}