Forums

Full Version: Play Video Directly from TMemoryStream
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

CapeCodGunny

What are the steps needed to play a video using Delphi's TMemoryStream object instead of using the FileName property?

Thanks in advance.

CapeCodGunny

(07-15-2014 07:51 AM)CapeCodGunny Wrote: [ -> ]What are the steps needed to play a video using Delphi's TMemoryStream object instead of using the FileName property?
Hopefully this image explains the concept of what I'd like to accomplish:

I’d like to make the TMemoryStream the INPUT to TVLDSVideoPlayer.

There is no Filename.
The video is inside the database as a BLOB (BinaryLargeOBject).
The database outputs the video BLOB to a TMemoryStream.
The TMemoryStream becomes the INPUT to the TVLDSVideoPlayer.

How can this be done using Video Lab?

Dave

Hi! Instead of a TMemoryStream you may want to assign your blob to a TVLCVideoBuffer, the Read and Write methods might be of interest to you. The buffer can be fed to a VL(DS)ImageDisplay or using a VLGenericFilter to push it to a VideoPlayer. Hope that helps.

Regards,
Dave

CapeCodGunny

(07-16-2014 09:16 AM)Dave Wrote: [ -> ]Hi! Instead of a TMemoryStream you may want to assign your blob to a TVLCVideoBuffer, the Read and Write methods might be of interest to you. The buffer can be fed to a VL(DS)ImageDisplay or using a VLGenericFilter to push it to a VideoPlayer.
I'm using Delphi XE4. Where can I find more information on the TVCLVideoBuffer?

Dave

Reference URL's