mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
fixed nan in janus video tag
This commit is contained in:
@@ -51,8 +51,9 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) {
|
|||||||
self.getResolution = function() {
|
self.getResolution = function() {
|
||||||
let el_video = $("stream-video");
|
let el_video = $("stream-video");
|
||||||
return {
|
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_width: el_video.offsetWidth,
|
||||||
view_height: el_video.offsetHeight,
|
view_height: el_video.offsetHeight,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user