PlaybackController should be extended to handle playback control operations such as on-platform button presses for the AudioPlayer. The Engine will respond to PlaybackController events with playback control directives on the AudioPlayer MediaPlayer.
- Note
- The TemplateRuntime.renderPlayerInfo() payload includes information about what playback control buttons should be enabled on screen with a player info display card.
- See also
- AudioPlayer 
◆ buttonPressed()
      
        
          | final void com.amazon.aace.alexa.PlaybackController.buttonPressed | ( | PlaybackButton | button | ) |  | 
      
 
Notifies the Engine of a platform button request (i.e. Play/Pause/Next/Previous/Skip Forward/Skip Backward). For certain playback types, the Engine will issue playback directives to the AudioPlayer MediaPlayer to control playback on the platform. 
- Parameters
- 
  
    | button | The playback button type |  
 
 
 
◆ togglePressed()
      
        
          | final void com.amazon.aace.alexa.PlaybackController.togglePressed | ( | PlaybackToggle | toggle, | 
        
          |  |  | boolean | action | 
        
          |  | ) |  |  | 
      
 
Notifies the Engine of a platform toggle request (i.e. Shuffle/Loop/Repeat/Thumbs Up/Thumbs Down). For certain playback types, the Engine will issue playback directives to the AudioPlayer MediaPlayer to control playback on the platform. 
- Parameters
- 
  
    | toggle | The playback toggle type |  | action | The playback toggle action |  
 
 
 
 
  
    
      Alexa Auto SDK 2.3.0 - Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
      
        Licensed under the Apache License, Version 2.0