Coder Social home page Coder Social logo

playrtc-javascript-code-samples's Introduction

PlayRTC Javascript Code Samples

PlayRTC의 자바스크립트 SDK 코드 샘플

개요

이 저장소는 PlayRTC의 자바스크립트 SDK를 사용하는데 있어서 필요한 여러 기능을 코드 조각으로 모았습니다. 아래의 링크를 통해 각각의 기능과 실질적인 활용방법을 이해하고 응용할 수 있도록 하였습니다.

코드 샘플

기본 기능

PlayRTC의 가장 기본적인 기능인 사용자와 사용자를 연결하고 영상, 음성 통화를 수행

  • Get Media
    • PlayRTC를 통해 기기의 영상, 음성 가져오기
  • Media Stream - Audio Only
    • PlayRTC를 통해 사용자(Peer)와 사용자(Peer)끼리 Audio 태그를 사용하여 음성 통화 하기
  • Media Stream - Video and Audio
    • PlayRTC를 통해 사용자(Peer)와 사용자(Peer)끼리 Video 태그를 사용하여 영상, 음성 통화 하기
  • Calling
    • 통화시 상대방의 수락을 기다리기

PlayRTC 서버 제공 채널 서비스

PlayRTC 서비스가 제공하는 채널 기능 사용

  • Channel
    • 채널 목록을 가져와 표출하기

데이터 채널

데이터 채널을 통해 자료 주고 받기

  • 주의
    • 파이어 폭스의 경우 아래의 예제에서는 에러가 생기게 되며, 이는 한 페이지에서 데이터 채널 객체를 하나만 생성하여 사용할 수 있기 때문
    • 파이어 폭스에서 데이터 채널을 테스트를 진행하고자 하면 아래의 종합을 사용하여 테스트를 진행
    • 크롬은 정상작동
  • Text
    • 데이터 채널로 문자 보내기
  • File
    • 데이터 채널로 파일 보내기
  • Big File
    • 데이터 채널로 큰 파일 보내고, 진행상황을 표시 하기

녹음/녹화

영상, 음성의 녹음/녹화

  • 주의
    • 현재 크롬(v47)에서 녹화 기능은 지원되지 않고 있으며, 이 테스트를 위해서는 파이어 폭스를 사용할 것
  • Local Audio Record
    • 로컬 사용자 오디오 녹음하고 저장하기
  • Local Video Record
    • 로컬 사용자 비디오 녹음하고 저장하기
  • Remote Audio Record
    • 리모트 사용자 오디오 녹음하고 저장하기
  • Remote Video Record
    • 리모트 사용자 비디오 녹음하고 저장하기

유틸리티

기타 기능, 개발 도구

종합

COPYRIGHT (c) 2015 SK TELECOM CO. LTD. ALL RIGHTS RESERVED.

playrtc-javascript-code-samples's People

Contributors

cryingnavi avatar dfdgsdfg avatar ahas76 avatar afrontend avatar brhwang avatar

Stargazers

landzz avatar dely avatar Lim, ChaeMyeong avatar sujkh avatar

Watchers

James Cloos avatar  avatar 김진수 avatar Im Doowook avatar Yoonki Kim avatar sujkh avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.