Adding buffered mode to loopback test
Review URL: https://webrtc-codereview.appspot.com/1371004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3920 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/video_engine/test/auto_test/source/vie_autotest_loopback.cc b/video_engine/test/auto_test/source/vie_autotest_loopback.cc
index 2b589ab..2916249 100644
--- a/video_engine/test/auto_test/source/vie_autotest_loopback.cc
+++ b/video_engine/test/auto_test/source/vie_autotest_loopback.cc
@@ -485,6 +485,22 @@
printf("ERROR in ViERTP_RTCP::SetProtectionStatus\n");
}
+ // Set up buffering delay.
+ std::cout << std::endl;
+ std::cout << "Set buffering delay (mS). Press enter for default(0mS): ";
+ std::getline(std::cin, str);
+ int buffering_delay = atoi(str.c_str());
+ if (buffering_delay != 0) {
+ error = ptrViERtpRtcp->SetSenderBufferingMode(videoChannel,
+ buffering_delay);
+ if (error < 0)
+ printf("ERROR in ViERTP_RTCP::SetSenderBufferingMode\n");
+
+ error = ptrViERtpRtcp->SetReceiverBufferingMode(videoChannel,
+ buffering_delay);
+ if (error < 0)
+ printf("ERROR in ViERTP_RTCP::SetReceiverBufferingMode\n");
+ }
//
// Address settings