Interface IPlayableTrack
-
- All Known Implementing Classes:
LoopTrack,MediaTrack
public interface IPlayableTrackDefining the functionality of a sound track that can be played.- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Jun 17, 2015
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetLength()Retrieve the length of the track in secondsvoidplay()Start playing the track.javafx.beans.property.ReadOnlyBooleanPropertyplayingProperty()Property indicating if the track is playing.voidstop()Stop playing the track.
-
-
-
Method Detail
-
getLength
double getLength()
Retrieve the length of the track in seconds- Returns:
- length of the track in seconds
-
play
void play()
Start playing the track.
-
stop
void stop()
Stop playing the track.
-
playingProperty
javafx.beans.property.ReadOnlyBooleanProperty playingProperty()
Property indicating if the track is playing.- Returns:
- boolean property indicating if the track is currently playing.
-
-