When html is written as shown below, which source (url, file path) is the video?
<video class="gifVideo js-gifVideo lazyVideo"
data-webm="https://el.phncdn.com/pics/gifs/042/100/151/42100151a.webm"
data-mp4 = "
"
poster="data:image/gif;base64,R0lGODlhAQABAAAAAAAAAAP//yH5BAEAAAAAAAAAAAAAAAAAAAAAAAA 7"
data-poster="https://el.phncdn.com/pics/gifs/042/100/151/(m=bKOCwLV)(mh=LC91wp1cr3v8n-
Nk)42100151a.jpg "loop muted>
<source class="js-webm" type="video/webm">
<source class="js-mp4" type="video/mp4">
</video>
data attribute starting with data-
, data-mp4
, and so on, assuming is accessed from JavaScript (or CSS).
Therefore, it is expected that https://el.phncdn.com/pics/gifs/042/100/151/42100151a.webm
or is the source, but JS needs to see which one is actually the source.
JS is likely to decide which source to adopt under some conditions and set it to src
.
There's nothing I can say with confidence just by that information.
data-mp4
attribute values in your JavaScript code.
© 2024 OneMinuteCode. All rights reserved.