RemoteMonster Documents
HomepageBlogCommunityAbout Us
v2.x
v2.x
  • RemoteMonster
  • Overview
    • Flow
    • Structure
    • Examples
    • Features
    • Spec
  • Web
    • Web - Overview
    • Web - Getting Started
    • Web - Media
    • Web - Debug Inside
    • Web - Github
    • Web - SDK Reference
  • Android
    • Android - Overview
    • Android - Getting Started
    • Android - Media
    • Android - ProGuard
    • Android - Github
    • Android - SDK Reference
  • iOS
    • iOS - Overview
    • iOS - Getting Started
    • iOS - Media
    • iOS - Github
    • iOS - SDK Reference
  • api
    • Webhook API - Livecast - beta
    • Managing Channels
  • Common
    • Service Key
    • Config/RemonConfig
    • Livecast
    • Communication
    • Callbacks
    • Channel
    • Channel ID 규칙
    • Network Environment
    • Studio Environment
    • Media
    • Simulcast
    • Record - beta
    • Error
    • About WebRTC
    • FAQ
  • 그룹통화
    • 그룹통화 만들기(Android)
    • 그룹통화 만들기(iOS)
    • 그룹통화 만들기(Web)
  • 튜토리얼 - 통화
    • 통화 5 분 안에 시작하기
    • 통화 키 발급
    • 새 통화 프로젝트 설정 - Web
    • 단순 통화 앱 만들기 - Web
  • 튜토리얼 - 방송
    • 방송 5 분 안에 시작하기
    • 방송 키 발급
    • 새 방송 프로젝트 설정 - Web
    • 단순 시청 앱 만들기 - Web
Powered by GitBook
On this page
  • 준비사항
  • 프로젝트 생성 및 설정
  • SDK 설치 - npm
  • SDK 설치 - Static Import
  • 개발
  • Service Key
  • 방송
  • 통신
  1. Web

Web - Getting Started

준비사항

  • 웹 브라우저, 프론트엔드 개발 환경

  • WebRTC를 지원하는 모던 브라우저

프로젝트 생성 및 설정

RemoteMonster의 SDK는 브라우저 환경에서 작동합니다. 간단하게 일반적인 웹 프론트엔드 개발 준비를 하면 됩니다.

npm init
npm i http-server
touch index.html
npx http-server
# Open browser "localhost:8081"

SDK 설치 - npm

npm을 통해 간단하게 설치가 가능합니다.

npm i @remotemonster/sdk
import Remon from '@remotemonster/sdk'
index.html
<script src="node_modules/@remotemonster/sdk/remon.min.js"></script>

SDK 설치 - Static Import

index.html
<!-- Latest -->
<script src="https://cdn.jsdelivr.net/npm/@remotemonster/sdk/remon.min.js"></script>

<!-- Specific version -->
<script src="https://cdn.jsdelivr.net/npm/@remotemonster/sdk@2.0.8/remon.min.js"></script>

개발

이제 모든 준비가 끝났습니다. 아래를 통해 세부적인 개발 방법을 확인하세요.

Service Key

SDK를 통해 RemoteMonster 방송, 통신 인프라에 접근하려면, Service Id와 Key가 필요합니다. 간단한 테스트와 데모를 위해서라면 이 과정을 넘어가도 좋습니다. 실제 서비스를 개발하고 운영하기 위해서는 아래를 참고하여 Service Id, Key를 발급 받아 적용하도록 합니다.

방송

Remon을 통해 방송 기능을 쉽고 빠르게 만들 수 있습니다.

방송 송출

<video id="localVideo" autoplay muted></video>
<script>
const config = {
  view: {
    local: '#localVideo'
  }
}

const caster = new Remon({ config })
caster.createCast()
</script>

방송 시청

<video id="remoteVideo" autoplay></video>
<script>
const config = {
  view: {
    remote: '#remoteVideo'
  }
}

const viewer = new Remon({ config })
viewer.joinCast('CHANNEL_ID')
</script>

혹은 좀더 자세한 내용은 아래를 참고하세요.

통신

Remon을 통해 통신 기능을 쉽고 빠르게 만들 수 있습니다.

<video id="localVideo" autoplay muted></video>
<video id="remoteVideo" autoplay></video>
<script>
const config = {
  view: {
    local: '#localVideo',
    remote: '#remoteVideo'
  }
}

const remonCall = new Remon({ config })
remonCall.connectCall('CHANNEL_ID')
</script>

혹은 좀더 자세한 내용은 아래를 참고하세요.

PreviousWeb - OverviewNextWeb - Media

Last updated 5 years ago

을 사용 할 수 있습니다. 아래와 같이 Latest 또는 Specific version을 HTML 파일에 삽입하세요.

jsDelivr CDN
Service Key
Livecast
Communication