Questions tagged [current-time]
77 questions
0
votes
1 answer
How do I show the current time and total length of custom audio player?
I currently have a well working audio player, although I'm wondering how I can show the current songs total duration and current song, Example: 02:52/04:23. Here is a link to what I have so far: Link To Custom Audio Player. These are all my…

coder123
- 247
- 3
- 17
0
votes
1 answer
How do I use rage of dates to download image from Nasa in bash
Need to download images using range of dates or specified date from Nasa. The date keeps defaulting to current date although I input different date.
TODAY= read -p "Enter date: "$(+%Y-%m-%d)
if [ ! -e ~/Pictures/${TODAY}_apod.jpg ]; then echo "We…

Chili
- 1
- 1
0
votes
0 answers
can't set current time to a Audio element, in javascript
aud = document.getElementById('audio element');
btn = document.getElementById('btn element');
btn.addEventListener("click", playpause, false);
aud.oncanplay = reSync(1200);
function playpause() {
if (aud.paused) {
aud.play();
}…

Erik Juel Jensen
- 11
- 1
0
votes
1 answer
Check IF statment every X seconds and then run the code once
I am looking for a way to check the IF statement every 1 second,
var vid = document.getElementById("video");
var cTime = vid.currentTime;
if ( cTime > 5 && cTime < 10) {
}
and once it is met, then run the code
vid.currentTime = 15
I have tried…

SarmadK
- 123
- 1
- 2
- 14
0
votes
1 answer
How to set currentTime in an
I've got 2500 transcripts with time stamps every 3 minutes. I want the time stamps to jump to the time in the audio file.
I'm using Javascript and HTML5 and have the code pieces working but not the whole thing.