One of the calls returns an unsigned 32-bit value. This value is the duration of the video. If the video is actually playing, it sets bit 31.
2147483660 which is of course 0x8000000C. It also means that the video is 12 seconds in duration and is playing.
Now I'd have thought that by doing the following, I could filter out the bit and find out the duration of the video:
duration &= 0x80000000;
But when I come to look at "duration", it comes out as 0 everytime.
Is this to do with the variable "duration"? Is there a way of saying that a variable is unsigned?
Cheers for any help,