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
    • Introduction
    • Sign Up
    • Select a Zone
  • Signaling Service
  • P2P Optimization
  • Dashboard

  • 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

Tracking Service

vuePress-theme-reco SwarmCloud    2018 - 2023

Tracking Service


SwarmCloud

# Introduction

The "tracker" server keeps track of where file copies reside on peer machines, which ones are available at time of the client request, and helps coordinate efficient transmission and reassembly of the copied file. Clients that have already begun downloading a file communicate with the tracker periodically to negotiate faster file transfer with new peers, and provide network performance statistics; however, after the initial peer-to-peer file download is started, peer-to-peer communication can continue without the connection to a tracker.

All data cannot be shared among different zone.

# Sign Up

Please click https://oms.cdnbye.com/ (opens new window) or https://swarmcloud.net/oms/ (opens new window)

# Select a Zone

# HongKong

Select zone HongKong when sign up

# SDK Config for HongKong Tracker

# Web SDK

p2pConfig: {
    announceLocation: 'hk',
}
// Pass p2pConfig to your P2PEngine ...

# Android SDK

val config = P2pConfig.Builder()
        .announceLocation(AnnounceLocation.HongKong)
        .build()
P2pEngine.init(ctx, YOUR_TOKEN, config)

# iOS SDK

let config = SWCP2pConfig.defaultConfiguration()
config.announceLocation = SWCAnnounceLocation.hongkong;
SWCP2pEngine.sharedInstance().start(token: YOUR_TOKEN, p2pConfig: config)

# Flutter SDK

SwarmCloud.init(
  YOUR_TOKEN,
  config: P2pConfig(
    announceLocation: AnnounceLocation.HongKong,
  )
);

# USA

Select zone USA when sign up

# SDK Config for USA Tracker

# Web SDK

p2pConfig: {
    announceLocation: 'us',
}
// Pass p2pConfig to your P2PEngine ...

# Android SDK

val config = P2pConfig.Builder()
        .announceLocation(AnnounceLocation.USA)
        .build()
P2pEngine.init(ctx, YOUR_TOKEN, config)

# iOS SDK

let config = SWCP2pConfig.defaultConfiguration()
config.announceLocation = SWCAnnounceLocation.USA
SWCP2pEngine.sharedInstance().start(token: YOUR_TOKEN, p2pConfig: config)

# Flutter SDK

SwarmCloud.init(
  YOUR_TOKEN,
  config: P2pConfig(
    announceLocation: AnnounceLocation.USA,
  )
);

# China

Select zone China when sign up

If using Chinese tracker, there's no need to set announce explicitly.