TIEMediaFoundationSourceReader.StreamCount
Declaration
property StreamCount: Integer;
Description
Returns the number of streams for the selected source.
Example
var
i: Integer;
mediaType: TIEDictionary;
begin
// Fill streams listbox
ListBoxStreams.Clear();
with ImageEnView1.IO.MediaFoundationSourceReader do
begin
for i := 0 to StreamCount - 1 do
begin
mediaType := GetMediaType(i, 0);
ListBoxStreams.Items.Add( Format( '%s', [ mediaType.GetString( IEMAJORTYPE_DICT_KEY )]));
end;
end;
end;
See Also
◼GetStreamType
◼SetSelectedStreams