Play Video Directly from TMemoryStream - Printable Version +- Forums (http://mitov.com/forum) +-- Forum: VCL Components (/forum-6.html) +--- Forum: VideoLab (/forum-19.html) +--- Thread: Play Video Directly from TMemoryStream (/thread-3073.html) |
Play Video Directly from TMemoryStream - CapeCodGunny - 07-15-2014 07:51 AM What are the steps needed to play a video using Delphi's TMemoryStream object instead of using the FileName property? Thanks in advance. RE: Play Video Directly from TMemoryStream - CapeCodGunny - 07-16-2014 07:05 AM (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? RE: Play Video Directly from TMemoryStream - Dave - 07-16-2014 09:16 AM 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 RE: Play Video Directly from TMemoryStream - CapeCodGunny - 07-17-2014 08:43 PM (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? RE: Play Video Directly from TMemoryStream - Dave - 07-18-2014 12:15 AM Try here: http://mitov.com/wiki/index.php?title=Interface_VLSimpleImageBuffer.IVLImageBuffer |