Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@rtcx/agora-rtc-sdk

AgoraIO13SEE LICENSE IN LICENSE.md3.1.0

AgoraRTC SDK for web

Agora, Webrtc, Javascript

readme

AgoraRTC SDK (Web)

For publishing npm package AgoraRTC SDK (Web).
Get more infomation from https://www.agora.io.

changelog

CHANGE LOGS

  • backgroundColor

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;"
        )
  • styles

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;"
        );