Can playback video with controls, need to fix performance and reducing window size
This commit is contained in:
21
deepl/pom.xml
Normal file
21
deepl/pom.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.github.gtache.autosubtitle</groupId>
|
||||
<artifactId>autosubtitle</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>autosubtitle-deepl</artifactId>
|
||||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.github.gtache.autosubtitle</groupId>
|
||||
<artifactId>autosubtitle-core</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.github.gtache.autosubtitle.deepl;
|
||||
|
||||
import com.github.gtache.autosubtitle.Translator;
|
||||
import com.github.gtache.autosubtitle.subtitle.Subtitle;
|
||||
import com.github.gtache.autosubtitle.subtitle.SubtitleCollection;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* DeepL implementation of {@link Translator}
|
||||
*/
|
||||
public class DeepLTranslator implements Translator {
|
||||
|
||||
@Inject
|
||||
DeepLTranslator() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Locale getLocale(final String text) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String translate(final String text, final Locale to) {
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Subtitle translate(final Subtitle subtitle, final Locale to) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SubtitleCollection translate(final SubtitleCollection collection, final Locale to) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.github.gtache.autosubtitle.modules.deepl;
|
||||
|
||||
import com.github.gtache.autosubtitle.Translator;
|
||||
import com.github.gtache.autosubtitle.deepl.DeepLTranslator;
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
|
||||
import javax.inject.Singleton;
|
||||
|
||||
/**
|
||||
* Dagger module for DeepL
|
||||
*/
|
||||
@Module
|
||||
public interface DeepLModule {
|
||||
|
||||
@Binds
|
||||
@Singleton
|
||||
Translator bindsTranslator(final DeepLTranslator translator);
|
||||
}
|
||||
8
deepl/src/main/java/module-info.java
Normal file
8
deepl/src/main/java/module-info.java
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* DeepL module for auto-subtitle
|
||||
*/
|
||||
module com.github.gtache.autosubtitle.deepl {
|
||||
requires transitive com.github.gtache.autosubtitle.core;
|
||||
exports com.github.gtache.autosubtitle.deepl;
|
||||
exports com.github.gtache.autosubtitle.modules.deepl;
|
||||
}
|
||||
Reference in New Issue
Block a user