VideoCTRL ActiveX Help  

PlayOpen Method


Syntax
lSuccess = object.PlayOpenFile( sFileName, [optional bStretch], [optional bAspectRatio], [optional lLeft],[optional lTop], [optional lWidth], [optional lHeight] )


Parameters
sFileName = string, Name of video file to open.
bStretch = boolean, Stretch video window to control.
bAspectRatio = boolean, Fit video window to control keeping aspect ratio.
lLeft
= long, Manually set left position of video window on control. Pixel.
lTop = long, Manually set top position of video window on control. Pixel.
lWidth = long, Manually set width of video window in pixels.
lHeight = long, Manually set height of video window in pixels.

Returns
lSuccess = long, error number, 0 = no error.


Result
Sets the video file for play back.
Supported video files inlcude .avi .mpg .mov .fli .flc .divx .xvid mpeg-1 mpeg-2 mpeg-4 and more...
Some video formats require their own codecs for playback.

Playback performance is largely down to the spec of system, The internal working are based around the (MCI) used by Windows Media Player so you can expect similar results.

Additional Notes
Omiting the bStretch and bAspectRatio or setting both to false  will leave the video window at the original size of the source.

After this method has been set, you are able to get the height and width of the source by methods PlayGetHeight and PlayGetWidth respectively.

The size and postion of the video window can be changed also by using method PlaySetWindow.

See Also

PlayStart - Starts video playback
PlayStop - Stops video Playback
PlayClose - Close opened video file.

PlayGetStatus - Get current status of playback control.


 

HELP! If you have any further questions please visit the VideoCtrl Forum - http://www.datadevelopment.co.uk/forum


Copyright © 2003-2007 www.datadevelopment.co.uk