test/aampcli.cpp
/**
 * @brief Show help menu with aamp command line interface
 */
@brief Show help menu with aamp command line interface
@brief Show help menu with aamp command line interface
static void ShowHelp(void)
{
	int i = 0;
	if (!mVirtualChannelMap.empty())
	{
		logprintf("\nChannel Map from aampcli.cfg\n*************************\n");
		for (std::list<VirtualChannelInfo>::iterator it = mVirtualChannelMap.begin(); it != mVirtualChannelMap.end(); ++it, ++i)
		{
			VirtualChannelInfo &pChannelInfo = *it;
			printf("%4d: %s", pChannelInfo.channelNumber, pChannelInfo.name.c_str());
			if ((i % 4) == 3)
			{
				printf("\n");
			}
			else
			{
				printf("\t");
			}
		}
		printf("\n");
	}
	logprintf("List of Commands\n****************\n");
	logprintf("<channelNumber> // Play selected channel from guide\n");
	logprintf("<url> // Play arbitrary stream\n");
	logprintf("info gst trace curl progress // Logging toggles\n");
	logprintf("pause play stop status flush // Playback options\n");
	logprintf("sf, ff<x> rw<y> // Trickmodes (x- 16, 32. y- 4, 8, 16, 32)\n");
	logprintf("+ - // Change profile\n");
	logprintf("sap // Use SAP track (if avail)\n");
	logprintf("seek <seconds> // Specify start time within manifest\n");
	logprintf("live // Seek to live point\n");
	logprintf("underflow // Simulate underflow\n");
	logprintf("help // Show this list again\n");
	logprintf("exit // Exit from application\n");
}
static void ShowHelp ( void ) { int i = 0 ; if ( ! mVirtualChannelMap . empty ( ) ) { logprintf ( " \n \n \n " ) ; for ( std :: list < VirtualChannelInfo > :: iterator it = mVirtualChannelMap . begin ( ) ; it != mVirtualChannelMap . end ( ) ; ++ it , ++ i ) { VirtualChannelInfo & pChannelInfo = * it ; printf ( " " , pChannelInfo . channelNumber , pChannelInfo . name . c_str ( ) ) ; if ( ( i % 4 ) == 3 ) { printf ( " \n " ) ; } else { printf ( " \t " ) ; } } printf ( " \n " ) ; } logprintf ( " \n \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; logprintf ( " \n " ) ; }
@brief Show help menu with aamp command line interface
@brief Show help menu with aamp command line interface