AgoraRTC SDK (Web)
For publishing npm package AgoraRTC SDK (Web).
Get more infomation from https://www.agora.io.
AgoraRTC SDK for web
For publishing npm package AgoraRTC SDK (Web).
Get more infomation from https://www.agora.io.
src
e.stream.video
? t.div.setAttribute(
"style",
"width: 100%; height: 100%; position: relative; background-color: black; overflow: hidden;"
)dst
e.stream.video
? t.div.setAttribute(
"style",
"width: 100%; height: 100%; position: relative; overflow: hidden;"
)
src
e.stream.local && !e.stream.screen
? e.stream.mirror
? t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute; transform: rotateY(180deg); object-fit: ".concat(
t.fit || "cover",
";"
)
)
: t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute; object-fit: ".concat(
t.fit || "cover",
";"
)
)
: e.stream.video
? t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute; object-fit: ".concat(
t.fit || "cover",
";"
)
)
: e.stream.screen
? t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute; object-fit: ".concat(
t.fit || "contain"
)
)
: t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute; display: none; object-fit: ".concat(
t.fit || "cover"
)
);dst
e.stream.local && !e.stream.screen
? e.stream.mirror
? t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute; transform: rotateY(180deg);"
)
: t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute;"
)
: e.stream.video
? t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute;"
)
: e.stream.screen
? t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute;"
)
: t.video.setAttribute(
"style",
"width: 100%; height: 100%; position: absolute; display: none;"
);