I am trying to embed a WMP file directly into an HTML page, hiding the default WMP skin and controls and displaying only those i want to show. The microsoft site has provided me with most of the information i need including the script below which shows the elapsed time of the media clip in hours:minutes:seconds format.
However i can not get the script to work as i do not understand the phrase "An HTML TEXT element named MyText was created to display the current position". How do i display the value of 'MyText' so that it is refreshed every second?
From the microsoft site:
The following JScript example starts an HTML timer that displays the current position of the media file at one-second intervals. An HTML TEXT element named MyText was created to display the current position. The player object was created with ID = "Player".
var timer = window.setInterval("MyText.value = Player.controls.currentPositionString",1000);
However i can not get the script to work as i do not understand the phrase "An HTML TEXT element named MyText was created to display the current position". How do i display the value of 'MyText' so that it is refreshed every second?
From the microsoft site:
The following JScript example starts an HTML timer that displays the current position of the media file at one-second intervals. An HTML TEXT element named MyText was created to display the current position. The player object was created with ID = "Player".
var timer = window.setInterval("MyText.value = Player.controls.currentPositionString",1000);