I'm trying to create my own controls for a directx object that will show a video, specifically a trackbar so the user can slide it along and the video will fast forward or reverse along with it.
I'm taking this one step at a time and the first thing I want to do is show the duration of the loaded video, but I'm having a little difficulty. I've created a string object and i'm using the Following:
GetDuration( "Direct Show" )
Which I assume will get the length of the video loaded in, but I can't get the text object to display the duration. I tried using the following:
val(GetDuration( "Direct Show" ))
But it gives an error: "Mixed string and numbers". How to I get the string object to display the duration? Or are there any other objects that would allow me to display the duration? Any help appreciated.