how to synchronize the audio and text files in java script? [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have displayed text on below of video as subtitles,now i want to synchronize that text and video.
How to highlight the text as video plays?

Key the text you want to display by timestamp, and respond to the timeupdate event from the video media element. Respond to it by querying the currentTime of the video and updating accordingly.

Related

How to know what is background animated image [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
At squaretrade.com , after logging into the site, I see that there is some animation in the background of the text "NEW iPHONE?
PROTECT IT FOR LESS THAN $5 A MONTH".
I would love to know how this was done. Is it a flash image or an animated image? Can we copy it and use it in another site?
Thanks & Regards,
Decent Guy.
It is not a image. It is video, you can find in this https://resource.squaretrade.com/video/video-homepage-1272x566-v1.mp4

how to link an image in my website to open in video player on another page? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I want to link my image that is on my webpage to a video and I want that video will play on another page not on the same page.
so can you help me with it.
on Your page find your image section try like this.target="_blank" will open the video in other tab
<a href="https://www.youtube.com/watch?v=_Nua3Cjdik0" target="_blank">
<img src="your_image.jpg"></a>

Changing colors for an image in website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
how to partition an image in a website ? like this web site (each image is able to change her colors) : http://www.zolpan-intensement-couleurs.fr/fr/simulateur/decorateur_virtuel/index.aspx , what is the language that can we use ?
This isn't an image, it's a flash animation. Color-changing and other animations are also possible with pure CSS or with Javascript.

Detect when play button clicked in the video of my website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I"m developing a website for children. here i'm viewing videos for children.i want to handle some procedures when child click the play button.how can i catch that event when child press the play button. (I'm using html tag to play videos).Someone please help me. Advance thanks.
$(document).on('play', 'video', function(){
//do something
});
Events https://www.w3.org/2010/05/video/mediaevents.html

JavaScript Audio looping with autoplay features [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
hey friends,
I am making a game based on html5 and JS, i want to play a audio clip of 8 seconds in background in loop but when I add audio in HTML code by using :
<audio src="audio.mp3" autoplay loop></loop>
but still it plays audio for once.
can anybody tell me how to do this??
You may want to check these posts 1 and 2 because some browsers have issues with loop attribute so you have to do it manually.

Categories

Resources