diff options
author | Maxim Devaev <[email protected]> | 2022-04-04 16:07:51 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-04-04 16:07:51 +0300 |
commit | 64fd7b088eef424109b5e192048259072b52a415 (patch) | |
tree | 53e07c0fc4599f81b2cf8968af0dade529602640 /web | |
parent | b9688ca438bdb2fa869890dd4f9f5fad0829d13b (diff) |
fixed nan in janus video tag
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/stream.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 80cc2deb..4d432fb4 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -51,8 +51,9 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) { self.getResolution = function() { let el_video = $("stream-video"); return { - real_width: el_video.videoWidth, - real_height: el_video.videoHeight, + // Разрешение видео или элемента + real_width: (el_video.videoWidth || el_video.offsetWidth), + real_height: (el_video.videoHeight || el_video.offsetHeight), view_width: el_video.offsetWidth, view_height: el_video.offsetHeight, }; |