Giter VIP home page Giter VIP logo

agora-python-quickstart's Introduction

Agora Python Quick-Start

δΈ­ζ–‡ | English

Several demos are contained in this repository. You may pick up some demos to run!

Index

Prerequisites

  • Xcode (macOS)
  • Visual Studio 2017+ with C++ (Windows)
  • Python 3.6+

Quick-Start

You can also write a simple demo yourself by the following instructins.

  1. Install Agora Python SDK.

    Method 1: Use PyPI (Recommended)

    pip3 install agora-python-sdk

    Method 2: Compile from Source Code

    For detail information, please visit here.

  2. Open a Python3 console in Terminal (macOS) or PowerShell (Windows).

    python3
  3. Write a simple demo in Python console.

    >>> import agorartc
    >>> rtc = agorartc.createRtcEngineBridge()
    >>> eventHandler = agorartc.RtcEngineEventHandlerBase()
    >>> rtc.initEventHandler(eventHandler)
    0 (Success)
    >>> rtc.initialize("your-appID", None, agorartc.AREA_CODE_GLOB & 0xFFFFFFFF)  # If you do not have an App ID, see Appendix (https://github.com/AgoraIO-Community/Agora-Python-SDK#appendix).
    0 (Success)
    >>> rtc.enableVideo()
    0 (Success)
    >>> rtc.joinChannel("", "channel-name", "", 0)
    0 (Success)
    >>> rtc.leaveChannel()  # Leave channel
    0 (Success)

Appendix

Create an Account and Obtain an App ID

To use our SDK, you must obtain an app ID:

  1. Create a developer account at agora.io. Once you finish the sign-up process, you are redirected to the dashboard.
  2. Navigate in the dashboard tree on the left to Projects > Project List.
  3. Copy the app ID that you obtained from the dashboard into a text file. You will use it when you call our SDK.

agora-python-quickstart's People

Contributors

longyuyang avatar jinyeqing avatar yiqingjackiehuang 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.