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:
parent
d388e3ae4b
commit
4721d3722f
1 changed files with 1 additions and 1 deletions
|
@ -1015,7 +1015,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stream.Width || stream.Height) {
|
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") {
|
if (stream.AspectRatio && stream.Codec != "mjpeg") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue