Skip to content

SomerCloud-Studio/webRTC-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

webRTC -sdk

Overview

Initialize Agora Engine

  • This is the first step to use agora SDK. For more information, visit docs.agora.io
  • var client = AgoraRTC.createClient({mode: 'live', codec: "h264"}); client.init(<APPID>, function () { console.log("AgoraRTC client initialized"); }, function (err) { console.log("AgoraRTC client init failed", err); });

Set Local View

  • Now set local view to make video call. Please accept the access request from the browser when prompted.

localStream.init(function() { console.log("getUserMedia successfully"); localStream.play('agora_local'); }, function (err) { console.log("getUserMedia failed", err); });

About

Integrate with Agora's web RTC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published