1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Added data- attributes

Expose width/height that may help set video player size when creating
DOM elements
This commit is contained in:
Tim Hobbs 2014-03-18 18:02:30 -07:00
parent d388e3ae4b
commit 4721d3722f

View file

@ -1015,7 +1015,7 @@
}
if (stream.Width || stream.Height) {
attributes.push('<span class="mediaInfoAttribute">' + stream.Width + 'x' + stream.Height + '</span>');
attributes.push('<span class="mediaInfoAttribute" id="mediaWidthHeight" data-width="' + stream.Width + '" data-height="' + stream.Height + '">' + stream.Width + 'x' + stream.Height + '</span>');
}
if (stream.AspectRatio && stream.Codec != "mjpeg") {