      Usage:
              ./testapi

      Description:
        This application is based on shell commands and supports DVD, VCD, SVCD, Audio CD and File player(FMPAPI functions).


      How to build:
        $ cd RMTESTAPI 

        $ make

        $ cp ./testapi ../

        *To clean object and exectable files
        $ make clean


      How to use:
        Only the uppercase characters commands will be used in this application. When using FMPGet, FMPSet, FMPGetProfileWord
        and FMPWriteProfileWord functions, only Decimal numbers are accepted for input indexes.

        When you launch, will see  prompt( -->).

        For playing DVD :
        =================
        1.) -->LOAD 2

                (4 [NO_DRIVE], 0 [PRIMARY_MASTER], 2[SECOND_MASTER])

        2.) -->DVD 2
                (4 [NO_DRIVE], 0 [PRIMARY_MASTER], 2[SECOND_MASTER])

        3.) -->PLAY


        4.) -->STOP
                (Must issue STOP command before closing the DVD)

        5.) -->CLOSE
                (Must issue close command to close the driver)

        6.) -->UNLOAD
                (Must issue UNLOAD command to unload a specified above driver)

        7.) -->QUIT
                (Exit from application)

        The following input commands can be called under DVD playback.
        Note:   Left sides are user input commands for playing DVD and the right sides (functions) are just displayed
                for information.

        QUIT           : exit shell
        LOAD           : load driver
        UNLOAD         : unload driver
        PLAY           : FMPPlay
        PAUSE          : FMPPause
        STOP           : FMPStop
        CLOSE          : FMPClose
        GET            : FMPGet
        SET            : FMPSet
        CHAPTERPLAY    : DVD Chapter Play
        CHAPTERSEARCH  : DVD Chapter Search
        FS             : DVD ForwardScan
        BS             : DVD BackwardScan
        SUBPICTURE     : SubPictureStreamChange
        STOPFORRESUME  : StopForResume
        RESUME         : Resume
        MENU           : MenuCall
        UBS            : DVDUpperButtonSelect
        LOWERBS        : DVDLowerButtonSelect
        RBS            : DVDRightButtonSelect
        LEFTBS         : DVDLeftButtonSelect
        BA             : DVDButtonActivate
        BSA            : DVDButtonSelectAndActivate
        ANGLECHANGE    : DVD Anglechange
        GOUP           : DVD Go Up
        DVDQATT        : DVD Query Attribute
        STILLOFF       : DVD Still Off
        STOREBOOKMARK  : DVD StoreBookmark
        RESUMEBOOKMARK : DVD ResumeBookmark
        NEXTPG         : NextPGSearch
        PREVPG         : PrevPGSearch
        AUDIOSTREAM    : AudioStreamChange
        TITLEPLAY      : Title Play
        TIMESEARCH     : Time Search
        TIMEPLAY       : Time Play
        REPEATTITLE    : RepeatTitle
        REPEATCHAPTER  : RepeatChapter
        REPEATAB       : RepeatAB
        CLEARREPEATAB  : ClearRepeatAB


        For playing VCD :
        =================
        1.) -->LOAD 2

                (4 [NO_DRIVE], 0 [PRIMARY_MASTER], 2[SECOND_MASTER])

        2.) -->VCD 2
                (4[NO_DRIVE], 0[PRIMARY_MASTER], 2[SECOND_MASTER])

        3.) -->PLAY


        4.) -->STOP
                (Must issue STOP command before closing the VCD)

        5.) -->CLOSE
                (Must issue CLOSE command to close the driver)

        6.) -->UNLOAD
                (Must issue UNLOAD command to unload a specified above driver)

        7.) -->QUIT
                (Exit from application)


        The following input commands can be called under VCD playback.
        Note:   Left sides are user input commands for playing VCD and the right sides(functions) are just displayed
                for information.

        QUIT           : exit shell
        LOAD           : load driver
        UNLOAD         : unload driver
        PLAY           : FMPPlay
        PAUSE          : FMPPause
        STOP           : FMPStop
        CLOSE          : FMPClose
        GET            : FMPGet
        SET            : FMPSet
        DEFAULTPG      : VCD/SVCD DefaultPGSearch
        NUMSEL         : VCD/SVCDNumericSelections
        FF             : VCD/SVCD FastForward
        RW             : VCD/SVCD Rewind
        NEXTPG         : NextPGSearch
        PREVPG         : PrevPGSearch
        TITLEPLAY      : Title Play
        REPEATCHAPTER  : RepeatChapter
        REPEATAB       : RepeatAB
        CLEARREPEATAB  : ClearRepeatAB
        STOPFORRESUME  : StopForResume
        RESUME         : Resume


        For playing SVCD :
        ==================
        1.) -->LOAD 2

                (4 [NO_DRIVE], 0 [PRIMARY_MASTER], 2[SECOND_MASTER])

        2.) -->SVCD 2
                (4[NO_DRIVE], 0[PRIMARY_MASTER], 2[SECOND_MASTER])

        3.) -->PLAY


        4.) -->STOP
                (Must issue STOP command before closing the SVCD)

        5.) -->CLOSE
                (Must issue CLOSE command to close the driver)

        6.) -->UNLOAD
                (Must issue UNLOAD command to unload a specified above driver)

        7.) -->QUIT
                (Exit from application)

        The following input commands can be called under SVCD playback.
        Note:   Left sides are user input commands for playing SVCD and the right sides(functions) are just displayed
                for information.

        QUIT           : exit shell
        LOAD           : load driver
        UNLOAD         : unload driver
        PLAY           : FMPPlay
        PAUSE          : FMPPause
        STOP           : FMPStop
        CLOSE          : FMPClose
        GET            : FMPGet
        SET            : FMPSet
        RETURNPG       : SVCDReturnPGSearch
        DEFAULTPG      : VCD/SVCD DefaultPGSearch
        NUMSEL         : VCD/SVCDNumericSelections
        FF             : VCD/SVCD FastForward
        RW             : VCD/SVCD Rewind
        NEXTPG         : NextPGSearch
        PREVPG         : PrevPGSearch
        AUDIOSTREAM    : AudioStreamChange
        TITLEPLAY      : Title Play
        TIMESEARCH     : Time Search
        REPEATCHAPTER  : RepeatChapter
        REPEATAB       : RepeatAB
        CLEARREPEATAB  : ClearRepeatAB
        STOPFORRESUME  : StopForResume
        RESUME         : Resume


        For playing CDDA :
        ==================
        1.) -->LOAD 2

                (4 [NO_DRIVE], 0 [PRIMARY_MASTER], 2[SECOND_MASTER])

        2.) -->CDDA 2
                (4[NO_DRIVE], 0[PRIMARY_MASTER], 2[SECOND_MASTER])

        3.) -->PLAY


        4.) -->STOP
                (Must issue STOP command before closing the CDDA)

        5.) -->CLOSE
                (Must issue CLOSE command to close the driver)

        6.) -->UNLOAD
                (Must issue UNLOAD command to unload a specified above driver)

        7.) -->QUIT
                (Exit from application)

        The following input commands can be called under CDDA playback.
        Note:   Left sides are user input commands for playing CDDA and the right sides (functions) are just displayed
                for information.

        QUIT           : exit shell
        LOAD           : load driver
        UNLOAD         : unload driver
        PLAY           : FMPPlay
        PAUSE          : FMPPause
        STOP           : FMPStop
        CLOSE          : FMPClose
        GET            : FMPGet
        SET            : FMPSet
        CFF            : CDDAFastForward
        CGETTRACKS     : CDDAGetNumberOfTracks
        CSTATUS        : CDDAGetStatus
        CGETDURATION   : CDDAGetTrackDuration
        CNEXT          : CDDANextTrack
        CPLAY          : CDDAPlayTrack
        CPREV          : CDDAPrevTrack
        CREPEAT        : CDDARepeat
        CRW            : CDDARewind


        For playing File player:
        ========================
        1.) -->LOAD 4
                (4 [NO_DRIVE], 0 [PRIMARY_MASTER], 2[SECOND_MASTER])

        2.) -->FILE  s /home/user/sample/sample.mpg
                (FILE <streamtype> <filename>)
                <streamtype= t (transport) d (dvd) s (system)>

        3.) -->STOP
                (STOP command)

        4.) -->CLOSE
                (Must issue CLOSE command to close the driver)

        5.) -->UNLOAD
                (Must issue UNLOAD command to unload a specified above driver)

        6.) -->QUIT
                (Exit from application)

        The following input commands can be called under FILE playback.
        Note:   Left sides are user input commands for playing FILE and the right sides(functions) are just displayed
                for information.

        QUIT           : exit shell
        LOAD           : load driver
        UNLOAD         : unload driver
        PLAY           : FMPPlay
        PAUSE          : FMPPause
        STOP           : FMPStop
        CLOSE          : FMPClose
        GET            : FMPGet
        SET            : FMPSet




        General input commands:
        =======================


        ABOUT          : Version and Copyright Notice
        GETPROFILE     : FMPGetProfileWord
        WRITEPROFILE   : FMPWriteProfileWord
        PROPERTY       : FMPProperty
        TRAY           : FMPTrayOperation
        SETSOURCE      : FMPSetSource              //Picture placement
        SETVISIBLESOURCE : FMPSetVisibleSource     //Picture placement
        SETDESTINATION : FMPSetDestination         //picture placement
        SETVPORT       : FMPSetVideoPortDimensions //For Digital overlay






      User Input Commands(ALL):
      =========================

      Note:Left sides are user input commands and the right sides are just displayed for information.

        HELP           : print help
        ECHO           : echo command
        QUIT           : exit shell
        LOAD           : load driver
        UNLOAD         : unload driver
        PLAY           : FMPPlay
        PAUSE          : FMPPause
        STOP           : FMPStop
        CLOSE          : FMPClose
        GET            : FMPGet
        SET            : FMPSet
        ABOUT          : Version and Copyright Notice
        GETPROFILE     : FMPGetProfileWord
        WRITEPROFILE   : FMPWriteProfileWord
        PROPERTY       : FMPProperty
        TRAY           : FMPTray
        SETSOURCE      : FMPSetSource
        SETVISIBLESOURCE : FMPSetVisibleSource
        SETDESTINATION : FMPSetDestination
        SETVPORT       : FMPSetVideoPortDimensions

        CHAPTERPLAY    : DVD Chapter Play
        CHAPTERSEARCH  : DVD Chapter Search
        FS             : DVD ForwardScan
        BS             : DVD BackwardScan
        SUBPICTURE     : SubPictureStreamChange
        STOPFORRESUME  : StopForResume
        RESUME         : Resume
        MENU           : MenuCall
        UBS            : DVDUpperButtonSelect
        LOWERBS        : DVDLowerButtonSelect
        RBS            : DVDRightButtonSelect
        LEFTBS         : DVDLeftButtonSelect
        BA             : DVDButtonActivate
        BSA            : DVDButtonSelectAndActivate
        ANGLECHANGE    : DVD Anglechange
        GOUP           : DVD Go Up
        DVDQATT        : DVD Query Attribute
        STILLOFF       : DVD Still Off
        STOREBOOKMARK  : DVD StoreBookmark
        RESUMEBOOKMARK : DVD ResumeBookmark

        NEXTPG         : NextPGSearch
        PREVPG         : PrevPGSearch
        AUDIOSTREAM    : AudioStreamChange
        TITLEPLAY      : Title Play
        TIMESEARCH     : Time Search
        TIMEPLAY       : Time Play
        REPEATTITLE    : RepeatTitle
        REPEATCHAPTER  : RepeatChapter
        REPEATAB       : RepeatAB
        CLEARREPEATAB  : ClearRepeatAB
        RETURNPG       : SVCDReturnPGSearch
        DEFAULTPG      : VCD/SVCD DefaultPGSearch
        NUMSEL         : VCD/SVCDNumericSelections
        FF             : VCD/SVCD FastForward
        RW             : VCD/SVCD Rewind

        CFF            : CDDAFastForward
        CGETTRACKS     : CDDAGetNumberOfTracks
        CSTATUS        : CDDAGetStatus
        CGETDURATION   : CDDAGetTrackDuration
        CNEXT          : CDDANextTrack
        CPLAY          : CDDAPlayTrack
        CPREV          : CDDAPrevTrack
        CREPEAT        : CDDARepeat
        CRW            : CDDARewind
        DVD            : DVD player
        VCD            : VCD player
        SVCD           : SVCD player
        CDDA           : CDDA player
        FILE           : File Playback


