CanStep Method

Note

This component is available for use in the Microsoft Windows 2000, Windows XP, and Windows Server 2003 operating systems. It may be altered or unavailable in subsequent versions.

 

The CanStep method determines whether the MPEG-2 decoder on the local system can perform frame stepping in a specified direction.

[ bCanStep = ] MSWebDVD.CanStep(bDirection)

Parameters

bDirection

Boolean used as a flag to specify the direction, forward or backward, of decoder's frame-stepping ability.

Value Description
true Can decoder step backward?
false Can decoder step forward? This is the default value.

 

Return Value

Returns a Boolean value of true if the decoder can step in the specified direction, and false otherwise.

Remarks

Not all hardware MPEG-2 decoders support the new frame stepping capabilities in DirectShow® 8.0. This method queries the decoder for its frame stepping capabilities. If the decoder can perform frame stepping, an application can use the Step method to step through frames. This method will always return true if a software decoder is being used.