adding a video player
This commit is contained in:
parent
38b5bffe21
commit
9d0b70e459
@ -19,8 +19,18 @@
|
|||||||
<!-- Textové pole na zadanie textu -->
|
<!-- Textové pole na zadanie textu -->
|
||||||
<textarea id="inputText" placeholder="Enter text"></textarea>
|
<textarea id="inputText" placeholder="Enter text"></textarea>
|
||||||
|
|
||||||
<!-- Textové pole pre preklad -->
|
<!-- Pole pre preklad -->
|
||||||
<textarea id="translatedText" placeholder="Translation"></textarea>
|
<div class = "video" >
|
||||||
|
<video id="translationVideo" controls style="border: 2px solid #ccc; border-radius: 4px;">
|
||||||
|
<source src="" type="video/mp4">
|
||||||
|
Your browser does not support the video tag.
|
||||||
|
</video>
|
||||||
|
<!-- Navigation arrows -->
|
||||||
|
<button id="prevBtn" style="position: absolute; top: 50%; left: -40px; transform: translateY(-50%); font-size: 24px; background-color: #4285f4; color: white; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer;">←</button>
|
||||||
|
<button id="nextBtn" style="position: absolute; top: 50%; right: -40px; transform: translateY(-50%); font-size: 24px; background-color: #4285f4; color: white; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer;">→</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Tlačidlo pre mikrofón -->
|
<!-- Tlačidlo pre mikrofón -->
|
||||||
@ -29,9 +39,13 @@
|
|||||||
<div id="timerDisplay"></div>
|
<div id="timerDisplay"></div>
|
||||||
<p id="statusText"></p>
|
<p id="statusText"></p>
|
||||||
|
|
||||||
|
<button id="translateWordsBtn">Preložiť po slovách</button>
|
||||||
|
<button id="translateLettersBtn">Preložiť po písmenách</button>
|
||||||
|
|
||||||
<!-- Pripojenie skriptov -->
|
<!-- Pripojenie skriptov -->
|
||||||
<script src="kontrola_api.js"></script>
|
<script src="kontrola_api.js"></script>
|
||||||
<script src="speech_recognition.js"></script>
|
<script src="speech_recognition.js"></script>
|
||||||
|
<script src="videoplayer.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user