Class TrackPlayer

  • All Implemented Interfaces:
    ITrackPlayer

    @Lazy
    @Service
    public class TrackPlayer
    extends java.lang.Object
    implements ITrackPlayer
    Author:
    Andi Hotz, (c) Sahits GmbH, 2015 Created on Jun 23, 2015
    • Constructor Summary

      Constructors 
      Constructor Description
      TrackPlayer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(IPlayableTrack track)
      Add a track to the playing queue.
      void clearPlayList()
      Clear all queued tracks from the list.
      void play()
      Play the track queue.
      void stop()
      Stop the playing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrackPlayer

        public TrackPlayer()
    • Method Detail

      • add

        public void add​(IPlayableTrack track)
        Description copied from interface: ITrackPlayer
        Add a track to the playing queue.
        Specified by:
        add in interface ITrackPlayer
        Parameters:
        track - to be added
      • clearPlayList

        public void clearPlayList()
        Description copied from interface: ITrackPlayer
        Clear all queued tracks from the list.
        Specified by:
        clearPlayList in interface ITrackPlayer
      • play

        public void play()
        Description copied from interface: ITrackPlayer
        Play the track queue. After a track is played it is removed from the queue.
        Specified by:
        play in interface ITrackPlayer
      • stop

        public void stop()
        Description copied from interface: ITrackPlayer
        Stop the playing.
        Specified by:
        stop in interface ITrackPlayer