Skip to content

Commit

Permalink
Remove old remote transcription retrieval url format
Browse files Browse the repository at this point in the history
  • Loading branch information
rpurdel committed Oct 8, 2024
1 parent 01db31e commit f3b80d3
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/main/java/org/jitsi/jigasi/TranscriptionGateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,27 +148,16 @@ public void stop()
* that also fails it returns the default GoogleCloudTranscriptionService.
*
* @param tenant the tenant which is retrieved from the context
* @param roomJid the roomJid which is retrieved from the context (used only with JaaS)
* @param roomJid the roomJid which is retrieved from the context
*/
private String getCustomTranscriptionServiceClass(String tenant, String roomJid)
{
String transcriberClass = null;

if (remoteTranscriptionConfigUrl != null)
{
String tsConfigUrl;

// this is JaaS specific
if (remoteTranscriptionConfigUrl.contains("jitsi.net"))
{
tsConfigUrl = remoteTranscriptionConfigUrl + "?conferenceFullName="
+ URLEncoder.encode(roomJid, java.nio.charset.StandardCharsets.UTF_8);
}
else
{
String maybeTenant = tenant == null ? "" : tenant;
tsConfigUrl = remoteTranscriptionConfigUrl + "/" + maybeTenant;
}
String tsConfigUrl = remoteTranscriptionConfigUrl + "?conferenceFullName="
+ URLEncoder.encode(roomJid, java.nio.charset.StandardCharsets.UTF_8);

transcriberClass = getTranscriberFromRemote(tsConfigUrl);
logger.info("Transcriber class retrieved from remote " + remoteTranscriptionConfigUrl
Expand Down

0 comments on commit f3b80d3

Please sign in to comment.