Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

JavaScript Change the colour of video progress bar based on seconds. eg : Colour red from 1 to 2 seconds, blue from 2 to 5 seconds

I am new to web development. I have created a custom video player. I want to change the colour f the vide progress bar dynamically. I am training an ML model which gives output as follows: [('music', 0.0, 14.64), ('noEnergy', 14.64, 14.98),('male', 0.0, 14.64), ('female', 14.64, 14.98)]

I am suppose to change the colour of my video progress for male = red, female = blue.

I can pass this to my html file.

Can someone please help me how t change colour of progress bar dynamically.

I have created the custom video player using the below link :
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom