Hi,
Is it possible to play a video from a TMemoryStream?
Thanks!
Play video from TMemoryStream
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Play video from TMemoryStream
Sorry, it's not supported, you need to save it to a temporary file.
What's the format of this video?
What's the format of this video?
Re: Play video from TMemoryStream
Thank you Sergey for your answer.
This TMemoryStream is a MP4 video. After saving it to a file, how can I play it?
This TMemoryStream is a MP4 video. After saving it to a file, how can I play it?
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Play video from TMemoryStream
Assign:
RVCamera.SourceFileName = path to this file
RVCamera.DeviceType = rvdtFile.
Call RVCamera.PlayVideoStream.
In Windows, RVCamera can play local files either using FFmpeg or using DirectX.
The main difference is in processing sound from videos.
FFmpeg is used, if FFmpeg libraries are available, and RVCamera.FFMpegProperty.UseFFMPEG=True.
In this case, sound from video can be read by TRVCamSound component linked to this TRVCamera (and then played or recorded using TRVAudioPlayer component),
Otherwise, DirectX is used. In this case, sound is just played using DirectX.
RVCamera.SourceFileName = path to this file
RVCamera.DeviceType = rvdtFile.
Call RVCamera.PlayVideoStream.
In Windows, RVCamera can play local files either using FFmpeg or using DirectX.
The main difference is in processing sound from videos.
FFmpeg is used, if FFmpeg libraries are available, and RVCamera.FFMpegProperty.UseFFMPEG=True.
In this case, sound from video can be read by TRVCamSound component linked to this TRVCamera (and then played or recorded using TRVAudioPlayer component),
Otherwise, DirectX is used. In this case, sound is just played using DirectX.
Re: Play video from TMemoryStream
Thank you so much, Sergey!