Package app.media_managers
Class AudioModifier
java.lang.Object
app.media_managers.AudioModifier
- Direct Known Subclasses:
VideoModifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMedia
(MediaCommunicator communicator, double x, double y) Allows the user to select an audio file to add to the pagevoid
modifyMedia
(MediaAudio audio, javafx.util.Duration timestamp, MediaCommunicator communicator) Allowing timestamps to either be added or removed from referenced parameter audio
-
Constructor Details
-
AudioModifier
public AudioModifier()
-
-
Method Details
-
addMedia
Allows the user to select an audio file to add to the page- Throws:
Exception
- when user selected file fails to load
-
modifyMedia
public void modifyMedia(MediaAudio audio, javafx.util.Duration timestamp, MediaCommunicator communicator) throws Exception Allowing timestamps to either be added or removed from referenced parameter audioIf this class' timestamp attribute already exist in the audio attribute, it is removed from audio. Otherwise, it is added
- Throws:
Exception
- when MediaCommunicator fails to update referenced audio
-