TRVCamera.OnMediaInfo

<< Click to display table of contents >>

TRVCamera.OnMediaInfo

Provides information about the video being played.

type
  // The types are declared in MRVType/fmxMRVType unit
  TRVMediaInfoType = (rvmitContainer, rvmitVideo, rvmitAudio);
  TRVMediaInfo = record
    MediaInfoType: TRVMediaInfoType;
    ShortName, LongName: String;
  end;
  TRVMediaInfoEvent = procedure (Sender: TObject;
    const MediaInfo: TRVMediaInfo) of object;
 
property OnMediaInfo: TRVMediaInfoEvent;

In the current version of RVMedia, this event is called only when playing video using FFmpeg.

It is called before video playback starts.

The event may be called up to three times for the same video.

The first call has MediaInfo.MediaInfoType = rvmitContainer and provides information about the video container.

The second call has MediaInfo.MediaInfoType = rvmitVideo and provides information about the video stream.

The third call has MediaInfo.MediaInfoType = rvmitAudio and provides information about the audio stream, if one is present and audio playback is not disabled.

MediaInfo.ShortName contains the format identifier.

MediaInfo.LongName contains a description intended for display to the user.