|
Post by James Bond on Apr 5, 2019 0:25:12 GMT
Here's the code I know how to use,
<center><video width="640" height="480" controls loop><source src="url.mp4" type="video/mp4"></video></center>
I know how to get a custom title to appear if I hover the mouse over the video,
<center><video width="640" height="480" controls loop title="title"><source src="url.mp4" type="video/mp4"></video></center>
But I'd like to be able to embed the video with the title centered at the top as soon as the video loads, and then have the title disappear when someone clicks play. Is that possible? Can someone with some experience of HTML and video embedding help me out?
|
|
Deleted
Deleted Member
@Deleted
Posts: 0
Likes:
|
Post by Deleted on Apr 5, 2019 1:49:24 GMT
Here's the code I know how to use, <center><video width="640" height="480" controls loop><source src="url.mp4" type="video/mp4"></video></center> I know how to get a custom title to appear if I hover the mouse over the video, <center><video width="640" height="480" controls loop title="title"><source src="url.mp4" type="video/mp4"></video></center> But I'd like to be able to embed the video with the title centered at the top as soon as the video loads, and then have the title disappear when someone clicks play. Is that possible? Can someone with some experience of HTML and video embedding help me out? What you're asking would involve a good amount of Javascript and perhaps some CSS if you're getting fancy. You're not going to be able to do it with just a HTML tag or attribute. You need to handle events for this and change the DOM. I'd just peruse the W3Schools for a start and get a good idea of the scripting involved. www.w3schools.com/tags/ref_av_dom.aspThere should be a few tutorials there to help as well. It's not as daunting as you might think. It's best to work these things out for yourself, if you can.
|
|
|
Post by James Bond on Apr 7, 2019 13:44:40 GMT
Here's the code I know how to use, <center><video width="640" height="480" controls loop><source src="url.mp4" type="video/mp4"></video></center> I know how to get a custom title to appear if I hover the mouse over the video, <center><video width="640" height="480" controls loop title="title"><source src="url.mp4" type="video/mp4"></video></center> But I'd like to be able to embed the video with the title centered at the top as soon as the video loads, and then have the title disappear when someone clicks play. Is that possible? Can someone with some experience of HTML and video embedding help me out? What you're asking would involve a good amount of Javascript and perhaps some CSS if you're getting fancy. You're not going to be able to do it with just a HTML tag or attribute. You need to handle events for this and change the DOM. I'd just peruse the W3Schools for a start and get a good idea of the scripting involved. www.w3schools.com/tags/ref_av_dom.aspThere should be a few tutorials there to help as well. It's not as daunting as you might think. It's best to work these things out for yourself, if you can. OK, thanks for your help.
|
|