I have a question related to JavaScript in general.
I see in the tutorial that users can get the playing time of the video that is playing using getTime().
<a href="javascript: getTime()">Get time</a> <input type="text" id="time" />
Basically, it calls the FlowPlayer's getTime() routine everytime a user clicks the link, then output it to the field.
My question is, how to keep executing getTime() while the video is running?
I have tried
while(true) getTime();, but it didn't work.
code:
function getTime() {
var time = flowPlayer1.getTime();
var timeField = document.getElementById("time");
timeField.value = time;
}
Thank you.