Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAppending to existing tags INSIDE the Video tag for JPEG image ? #1525
Comments
This comment has been minimized.
This comment has been minimized.
|
Here is a minimal example: https://jsfiddle.net/yj4kuszr/ There may be other ways to do this, this is just how I usually do it. |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
It is just in there as a fallback player for compatibility with older browsers / devices modern and uptodate devices use HTML5.
Thank you! strange it works with the .poster missing but appended to the variable instead but oh well it works now :) |
Setting the downloaded from torrent jpeg file into the tags
posterand<img>I have been trying with
But I can't get it to display even though I can see in the console it has downloaded and is ready etc.
The Javascript methods I am used to are like this
document.getElementsByTagName('video')[0].poster = "https://www.domain.com/jpeg.jpg";Can anyone help me set the downloaded from torrent jpeg file into those tags ?