<< Click to display table of contents >> TRVCamera.SourceFileName |
Specifies the source video file name.
property SourceFileName: String;
The component gets video from the specified file if DeviceType=rvdtFile.
All platforms
If FFMpegProperty.UseFFMPEG=True, and FFmpeg is available, the component uses FFmpeg to play this file. In this case, video sound can be read by TRVCamSound component linked to this TRVCamera (and then played or recorded using TRVAudioPlayer component or sent by TRVCamSender component).
Windows
If FFmpeg is disabled or not available, the component uses DirectX to play file. The system must have a codec for this file installed. If the video contains sound, it is played on the default audio device.
Linux
FFmpeg is required to play video file.
macOS
If FFmpeg is disabled or not available, the component uses AVFoundation to play file.
If the video contains sound:
•if TRVCamSound component linked to this TRVCamera, and it has TRVAudioPlayer component assigned AudioOutput, sound is played on the device selected in this TRVAudioPlayer (however, TRVAudioPlayer itself is not used to play sound)
•otherwise, sound is played on the default audio device.
Note: with AVFoundation, you can play video not only from a local file but also from an URL. So, this mode may be useful to play Internet streams when FFmpeg and GStreamer are not available.