제품 업데이트
Tencent Cloud 오디오/비디오 단말 SDK 재생 업그레이드 및 권한 부여 인증 추가
TRTC 월간 구독 패키지 출시 관련 안내
{@link LocalStream#setVideoProfile setVideoProfile()}을 호출하여 비디오 속성을 설정할 수 있습니다.const localStream = TRTC.createStream({ userId, audio: true, video: true });// Profile을 ‘480p’로 설정localStream.setVideoProfile('480p');localStream.initialize().then(() => {console.log('local stream init success');localStream.play('local_stream');});
const localStream = TRTC.createStream({ userId, audio: true, video: true });// 해상도, 프레임 레이트 및 비트 레이트 값 지정localStream.setVideoProfile({ width: 640, height: 480, frameRate: 15, bitrate: 900 /* kpbs */});localStream.initialize().then(() => {console.log('local stream init success');localStream.play('local_stream');});
{@link LocalStream#setVideoProfile setVideoProfile()}을 호출하여 통화 중 실시간으로 비디오 설정을 변경할 수 있습니다. 자세한 내용은 {@link LocalStream#setVideoProfile setVideoProfile()} API 설명을 참고하십시오{@link LocalStream#setVideoProfile setVideoProfile()}을 호출하여 로컬 스트림을 초기화하기 전에 {@link LocalStream#initialize initialize()}를 호출해야 합니다. 통화 중에는 영상 설정을 변경할 수 없습니다.비디오 profile | 해상도(너비 × 높이) | 프레임 레이트(fps) | 비트 레이트(kbps) |
120p | 160 × 120 | 15 | 200 |
180p | 320 × 180 | 15 | 350 |
240p | 320 × 240 | 15 | 400 |
360p | 640 × 360 | 15 | 800 |
480p | 640 × 480 | 15 | 900 |
720p | 1280 × 720 | 15 | 1500 |
1080p | 1920 × 1080 | 15 | 2000 |
1440p | 2560 × 1440 | 30 | 4860 |
4K | 3840 × 2160 | 30 | 9000 |
피드백