@Component public class MediaControllerImpl extends Object implements MediaController, Serializable
MediaController implementation| Modifier and Type | Class and Description |
|---|---|
static class |
MediaControllerImpl.CallbackImpl |
| Constructor and Description |
|---|
MediaControllerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMediaPlayer(MediaPlayer player,
String resultID,
VisualizationToggle toggle)
Register a
MediaPlayer instance. |
void |
clearMediaPlayers()
Unregister all associated
MediaPlayer instances. |
void |
closeOtherPlayers(MediaPlayer doNotCloseThisOne) |
void |
play(String resultID,
double startTime)
Play media file from a specific starting point.
|
void |
play(String resultID,
double startTime,
double endTime)
Play media file from a specific starting point to and endpoint.
|
public void addMediaPlayer(MediaPlayer player, String resultID, VisualizationToggle toggle)
MediaControllerMediaPlayer instance.addMediaPlayer in interface MediaControllerplayer - The instance.resultID - To which result this player belongs.public void clearMediaPlayers()
MediaControllerMediaPlayer instances.clearMediaPlayers in interface MediaControllerpublic void closeOtherPlayers(MediaPlayer doNotCloseThisOne)
closeOtherPlayers in interface MediaControllerpublic void play(String resultID, double startTime)
MediaControllerplay in interface MediaControllerresultID - The ID of the result where the media player will be startedstartTime - Where to start the playback in seconds.public void play(String resultID, double startTime, double endTime)
MediaControllerplay in interface MediaControllerresultID - The ID of the result where the media player will be startedstartTime - Where to start the playback in seconds.endTime - Where to end the playback in seconds.Copyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.