Playing a clip from a TStream

Prev

Next

 






































































































Playing a clip from a TStream.

Description


It is possible to play in the media player a video clip stored in a TMemoryStream, TFileStream or TStream descendent.

Simply assign your TStream descendent to the SourceStream property. When this property is assigned before invoking OpenPlayer, the stream data is used as source by the player.

To go back to the "normal player behavior", set a nil (or NULL in C++) value to SourceStream after invoking ClosePlayer, to let TVideoGrabber use for the next OpenPlayer the clip specified in the PlayerFileName property.