TIEMediaFoundationSourceReader.StreamCount
Declaration
property StreamCount: integer;
Description
Returns the number of streams for the selected source.
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