Class MediaTranscriptionCapabilityRegistry

java.lang.Object
org.exoplatform.documents.service.MediaTranscriptionCapabilityRegistry

@Service public class MediaTranscriptionCapabilityRegistry extends Object
Where a transcription engine says it is installed (EXO-92097). Documents is community code and the transcriber an enterprise one, booting after it: the transcriber registers itself here when it starts, and the transcript affordances (the state, the transcript tab, the retry) show only while one is registered.
  • Constructor Details

    • MediaTranscriptionCapabilityRegistry

      public MediaTranscriptionCapabilityRegistry()
  • Method Details

    • register

      public void register(String transcriberId)
      Records that a transcription engine is installed.
      Parameters:
      transcriberId - a name for the engine
    • unregister

      public void unregister(String transcriberId)
      Records that a transcription engine is no longer installed.
      Parameters:
      transcriberId - the name it registered with
    • isAvailable

      public boolean isAvailable()
      Tells whether media files can be transcribed on this server.
      Returns:
      true when a transcription engine is registered