SwarmCloud

vuePress-theme-reco SwarmCloud    2018 - 2023
P2P Streaming Engine P2P Streaming Engine

Choose mode

  • dark
  • auto
  • light
Documents
  • Introduction
  • Web SDK

    • HLS(m3u8)
    • Shaka-Player
    • Dash.js
    • MP4
    • Downloader
  • Android/AndroidTV SDK

    • v3
    • v2
  • iOS/tvOS/macOS SDK
Pricing
Contact Us
Partnership
Ecosystem
Globe
Dashboard
GitHub (opens new window)
語言
  • English
  • 中文

Documents
  • Introduction
  • Web SDK

    • HLS(m3u8)
    • Shaka-Player
    • Dash.js
    • MP4
    • Downloader
  • Android/AndroidTV SDK

    • v3
    • v2
  • iOS/tvOS/macOS SDK
Pricing
Contact Us
Partnership
Ecosystem
Globe
Dashboard
GitHub (opens new window)
語言
  • English
  • 中文
  • Introduction
  • FAQ
  • Tracking Service
  • Signaling Service
  • P2P Optimization
  • Dashboard

    • Domain/AppId Binding
      • Domain and Token
      • App Id and Token
    • Data Analysis
    • P2P Control
    • Restful API
  • Web HLS SDK

  • Android SDK v3

  • Android SDK v2

  • iOS/tvOS/macOS SDK

  • Flutter SDK

  • Shaka-Player SDK

  • Dash.js SDK

  • Hls.js SDK

  • Web MP4 SDK

  • Web Downloader

  • More

Domain/AppId Binding

vuePress-theme-reco SwarmCloud    2018 - 2023

Domain/AppId Binding


SwarmCloud

# Domain and Token

Websites which integrate SwarmCloud SDK should register domain to activate P2P service. Please note that SwarmCloud identifies domain by HTTP Origin, player in iFrame may cause domain name inconsistency.

  • Visit https://oms.cdnbye.com

  • Select the Zone you want to register, please note that you may need to change tracker address of SDK

  • After the registration is completed, the website will prompt You have not registered domain name or created app, are you going now? , click Register your domain to jump to the domain name binding interface

  • Click on the Website Management button in the sidebar and input your domain, eg: demo.cdnbye.com

  • Domain name is unavailable if added by other account already. Click Validate button to validate your domain name. There are tow ways of domain validation(DNS and file), select one of them to operate according to the prompt

  • If you want to customize the channelId, you need to get token first. Click on the APP Management button in the sidebar, then copy the token

You can use root domain to match all sub-domains.

# App Id and Token

Before release iOS, Android and Electron APP, you should register AppId and obtain token from console:

  • Visit https://oms.cdnbye.com

  • Select the Zone you want to register, please note that you may need to change tracker address of SDK

  • Click on the APP Management button in the sidebar

  • Copy the token and pass it to the initiator of the SDK

  • Click on the Create App button and fill in the form with information such as the App Name, AppId and platform. Please note that the AppId needs to correspond to the APP. The methods for obtaining the AppId are as follows:

    • AppId of iOS platform can be obtained from TARGETS -> General -> Bundle Identifier picture

    • AppId of Android platform can be obtained from app -> build.gradle -> android -> defaultConfig -> applicationId picture

    • Electron's AppId is defined by yourself and should be configured in the SDK's p2pConfig -> appId

    • Flutter App need to Create App on corresponding platforms according to AppId