Player class question
Chapter 12 deals with audio playback and I understand the Player obejct functionality, i.e. (1) delcare Player, (2) Set File-Source, (3) Accept call, (4) Get Call-Flow object, (6) Attach Flow to Player, (7) Stat Player.
In this example one Player object is delared and used, but if I am building a telephone banking app how do I play several different pre-recorded voice prompts to the caller?
- Do I declare and use many diffrent player objects, one for each seperate prompt that will be played to the caller?
Also if my UMCA app will server many callers, should I not declare the Player object(s) in a seperate class (eg: Handle_Call class) that gets instantiated for each new call that the application receives...and then pass the call object to that class?