public interface MediaController
MediaPlayer which are registered to this
controller.| 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.
|
void addMediaPlayer(MediaPlayer player, String resultID, VisualizationToggle toggle)
MediaPlayer instance.player - The instance.resultID - To which result this player belongs.void clearMediaPlayers()
MediaPlayer instances.void closeOtherPlayers(MediaPlayer doNotCloseThisOne)
void play(String resultID, double startTime)
resultID - The ID of the result where the media player will be startedstartTime - Where to start the playback in seconds.void play(String resultID, double startTime, double endTime)
resultID - 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.