%% Generate Video Conference Traffic Pattern to Visualize Packet Sizes and Intervals
% Create a default video application traffic pattern object.

cfgVideo = networkTrafficVideoConference;

% Generate a video application traffic pattern with 100 video packets.

for packetCount = 1:100
    [dt(packetCount),packetSize(packetCount)] = generate(cfgVideo);
end

% Visualize the video packet sizes.

stem(packetSize);
title('Packet Size Versus Packet Number');
xlabel('Packet Number');
ylabel('Packet Size in Bytes');

% Visualize the video packet intervals.

figure;
stem(dt);
title('dt Versus Packet Number');
xlabel('Packet Number');
ylabel('dt in Milliseconds');

% Copyright 2020 The MathWorks, Inc.