Package org.opencastproject.waveform.api
Interface WaveformService
- All Known Implementing Classes:
WaveformServiceImpl,WaveformServiceRemote
public interface WaveformService
This is an api for a service that will create a waveform image from a track.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateWaveformImage(Track sourceTrack, int pixelPerMinute, int minWidth, int maxWidth, int height, String color) Takes the given track and returns the job that will create a waveform image.
-
Field Details
-
JOB_TYPE
Job type- See Also:
-
-
Method Details
-
createWaveformImage
Job createWaveformImage(Track sourceTrack, int pixelPerMinute, int minWidth, int maxWidth, int height, String color) throws MediaPackageException, WaveformServiceException Takes the given track and returns the job that will create a waveform image.- Parameters:
sourceTrack- the track to create waveform image frompixelPerMinute- the width of the waveform image in pixels per minuteminWidth- the minimum width of the waveform imagemaxWidth- the maximum width of the waveform imageheight- the height of the waveform imagecolor- the color of the waveform image- Returns:
- a job that will create a waveform image
- Throws:
MediaPackageException- if the serialization of the given track failsWaveformServiceException- if the job can't be created for any reason
-