Hi guys,

I am working in Windows media player enable to web page. I want to use Player.controls.currentPosition value to thie function below:

function playNextClip(){
if Player.controls.currentPosition = 40 {

// play next movie clip
}
}

I tried to monitor the value of Player.controls.currentPosition, so , I put the function on <body onload='playNextClip()'>, but it doesnot work: Player.controls.currentPosition stay in 0.

Another hand, I tried the wmpprop:Player.controls.currentPosition, MSDN said it can listen Player.controls.currentPosition value:
function playNextClip(){
if wmpprop:Player.controls.currentPosition = 40 {

// play next movie clip
}
}

However , it doesnot work as well.

Could anyone tell me how to sync the Player.controls.currentPosition value from a media file start playing?

Thanks lots