PDA

View Full Version : How can i Get DVD total playback length


celyo
8th August 2005, 15:23
Hi all,

I'm trying to get DVD total playback length (with DirectShow interfaces) but till now i didn't find the right solution. For video files IMediaPosiotion::get_Duration works fine but for DVDs it returns me 0.

p.p IMediaPosiotion::get_CurrentDuration works in both cases (for avi and dvd) but get_Duration don't.

Can Anybody help me pls?

D3s7
8th August 2005, 19:53
I'm not sure if you can get total playback length that way because of the navigation works...

Might be easier to parse the IFO and get it... that's fairly easy to do

celyo
12th August 2005, 11:47
Finally I found it!

IDVDInfo2::GetTotalTitleTime works fine

for getting position -> IDVDInfo2::GetCurrentLocation
for setting position -> IDVDControl2::PlayAtTime