Can we change the color of the HTML5...

User 2695940 Photo


Registered User
139 posts

Just wondering if anyone knows how to change to default color of the play symbol for the HTML5 video element. Not a real big deal but thought I would ask one of the experts here.

Thanks!
John Ferguson
Website Design and Development
www.jf1.co
User 2699991 Photo


Registered User
3,752 posts
Online Now

I maybe wrong here but I don't think the player exists in SD, it's connected via a link, somewhere that even that benzos chappie can't reach.

The Help You Need: When You Need It The Most
Website Design & Development
Website Renovations
Wayans' Theme Park
Watch Listen & Learn Video Tutorials
User 2885740 Photo


Registered User
59 posts

The controls on a video element are styled by the web browser via its user agent style sheet. Each browser has its own way of styling. So, if you want to change the style of the video-controls you have to build your own custom controls. On MDN is an example on how to do that.
In the attached sd-file you find an implementation of this example.
Take care
Attachments:
User 2695940 Photo


Registered User
139 posts

Thanks Wayan and René,

Appreciate your responses. The client decided it was not an issue so problem solved.

All the best,
John
John Ferguson
Website Design and Development
www.jf1.co

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.