Skip to content

Commit

Permalink
Watch videos with subtitles #55: Stop voicing phrase when the video s…
Browse files Browse the repository at this point in the history
…tarts playing.
  • Loading branch information
filimo committed Nov 3, 2019
1 parent d0e77b7 commit ff771af
Show file tree
Hide file tree
Showing 5 changed files with 4,559 additions and 7 deletions.
16 changes: 16 additions & 0 deletions ReaderTranslator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
F0814BA223562AF300212F52 /* Set.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0814BA123562AF300212F52 /* Set.swift */; };
F0814BA323562AF300212F52 /* Set.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0814BA123562AF300212F52 /* Set.swift */; };
F0814BA423562AF300212F52 /* Set.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0814BA123562AF300212F52 /* Set.swift */; };
F08CE13A236EA9F200610342 /* index.html in Resources */ = {isa = PBXBuildFile; fileRef = F08CE138236EA9F200610342 /* index.html */; };
F08CE13B236EA9F200610342 /* index.js in Resources */ = {isa = PBXBuildFile; fileRef = F08CE139236EA9F200610342 /* index.js */; };
F0A001C623587121009E9CD6 /* reverso-reverso-speaker.js in Resources */ = {isa = PBXBuildFile; fileRef = F0A001C523587121009E9CD6 /* reverso-reverso-speaker.js */; };
F0A001C723587121009E9CD6 /* reverso-reverso-speaker.js in Resources */ = {isa = PBXBuildFile; fileRef = F0A001C523587121009E9CD6 /* reverso-reverso-speaker.js */; };
F0AA69A1232E9710007CC07B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0AA69A0232E9710007CC07B /* AppDelegate.swift */; };
Expand Down Expand Up @@ -225,6 +227,8 @@
F075445B23447A2800E1D88E /* ToolbarItemIcon.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = ToolbarItemIcon.pdf; sourceTree = "<group>"; };
F075445D23447A2800E1D88E /* ReaderTranslatorSafari.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ReaderTranslatorSafari.entitlements; sourceTree = "<group>"; };
F0814BA123562AF300212F52 /* Set.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Set.swift; sourceTree = "<group>"; };
F08CE138236EA9F200610342 /* index.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = index.html; sourceTree = "<group>"; };
F08CE139236EA9F200610342 /* index.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = index.js; sourceTree = "<group>"; };
F0A001C523587121009E9CD6 /* reverso-reverso-speaker.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = "reverso-reverso-speaker.js"; sourceTree = "<group>"; };
F0A9F35A2349228A00970C97 /* Reverso.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Reverso.swift; sourceTree = "<group>"; };
F0AA699D232E9710007CC07B /* ReaderTranslator.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReaderTranslator.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -349,6 +353,15 @@
path = StatusBarView_Voice;
sourceTree = "<group>";
};
F0753E5B236DF9EA00D0C2D9 /* VideoPlayer */ = {
isa = PBXGroup;
children = (
F08CE138236EA9F200610342 /* index.html */,
F08CE139236EA9F200610342 /* index.js */,
);
path = VideoPlayer;
sourceTree = "<group>";
};
F0754438234479DA00E1D88E /* ReaderTranslatorMac */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -466,6 +479,7 @@
F0AA69D9232E979B007CC07B /* Components */ = {
isa = PBXGroup;
children = (
F0753E5B236DF9EA00D0C2D9 /* VideoPlayer */,
F02989EA2360486500DF722E /* ViewRepresentable */,
F0AA69DA232E97AF007CC07B /* SpeechSynthesizer.swift */,
F0C36AA02359D50A001E396C /* Clipboard.swift */,
Expand Down Expand Up @@ -711,11 +725,13 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F08CE13B236EA9F200610342 /* index.js in Resources */,
F040D57C2336BD97004567B8 /* README.md in Resources */,
F0C36AA8235ADF5E001E396C /* reader-translator.js in Resources */,
F0AA69AD232E9712007CC07B /* LaunchScreen.storyboard in Resources */,
F0A001C623587121009E9CD6 /* reverso-reverso-speaker.js in Resources */,
F00C7C87235783FF003F6D28 /* gtranslator-reverso-speaker.js in Resources */,
F08CE13A236EA9F200610342 /* index.html in Resources */,
F0AA69AA232E9712007CC07B /* Preview Assets.xcassets in Resources */,
F0AA69A7232E9712007CC07B /* Assets.xcassets in Resources */,
);
Expand Down
7 changes: 7 additions & 0 deletions ReaderTranslator/Components/VideoPlayer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<body>
<video controls="" autoplay="" src="Castle.Rock.s01e07.1080p.m4v" type="video/x-m4v" class="media-document mac video" style="width: 100%;"></video>
<div style="white-space: pre-line; background-color: black; color: white;font-size: x-large;overflow: auto;height: 500;" id="srt"></div>
<script type="text/javascript" src="index.js"></script>
</body>
</html>
Loading

0 comments on commit ff771af

Please sign in to comment.