I am trying to get the Duration of the video that i have loaded into my Windows Media Player but it seems to be returning back '0.0'
I need the duration value before the video starts playing as the video length determines the width of a slide.
This is how i am trying to do it at the moment:
timeElapsed = AxWindowsMediaPlayer_OnDemand.currentMedia.duration - marker.SyncTime
I have also tried this which returns an empty string:
Dim asas As String = AxWindowsMediaPlayer_OnDemand.currentMedia.getItemInfo("Duration")
Does anyone have any idea of how to get the length of the video loaded in?