tencent cloud

フィードバック

Electron

最終更新日:2022-07-21 17:11:01

    Tencent Real-Time Communication (TRTC)は、ローカル画面とリモート画面の回転方向と塗りつぶしモードのカスタム制御をサポートします。

    ローカル画面のカスタム制御

    setLocalRenderParamsを呼び出すことにより、ローカルレンダリングパラメータを設定できます。

    import TRTCCloud, { 
     TRTCRenderParams, TRTCVideoRotation, TRTCVideoFillMode,
     TRTCVideoMirrorType
    } from 'trtc-electron-sdk';
    const trtcCloud = new TRTCCloud();
    const param = new TRTCRenderParams(
     TRTCVideoRotation.TRTCVideoRotation90,
     TRTCVideoFillMode.TRTCVideoFillMode_Fill,
     TRTCVideoMirrorType.TRTCVideoMirrorType_Enable
    );
    trtcCloud.setLocalRenderParams(param);
    const localUserDom = document.querySelector('local-user');
    trtcCloud.startLocalPreview(localUserDom);
    

    リモート画面のカスタム制御

    setRemoteRenderParamsを呼び出すことにより、リモートレンダリングパラメータを設定できます。

    import TRTCCloud, { 
     TRTCRenderParams, TRTCVideoRotation, TRTCVideoFillMode,
     TRTCVideoMirrorType, TRTCVideoStreamType
    } from 'trtc-electron-sdk';
    const trtcCloud = new TRTCCloud();
    const param = new TRTCRenderParams(
     TRTCVideoRotation.TRTCVideoRotation180,
     TRTCVideoFillMode.TRTCVideoFillMode_Fill,
     TRTCVideoMirrorType.TRTCVideoMirrorType_Disable
    );
    const remoteUserId = 'remoteUser';
    trtcCloud.setRemoteRenderParams(remoteUserId, TRTCVideoStreamType.TRTCVideoStreamTypeBig, param);
    const remoteUserDom = document.querySelector('remote-user');
    trtcCloud.startRemoteView(remoteUserId, remoteUserDom, TRTCVideoStreamType.TRTCVideoStreamTypeBig);
    
    お問い合わせ

    カスタマーサービスをご提供できるため、ぜひお気軽にお問い合わせくださいませ。

    テクニカルサポート

    さらにサポートが必要な場合は、サポートチケットを送信して弊社サポートチームにお問い合わせください。24時間365日のサポートをご提供します。

    電話サポート(24 時間365日対応)