EcoCDN P2P WebRTC
  • Introduction
  • HLS INTEGRATION
  • HTML5 Players
  • VideoJS Player
  • Android Integration
    • Environment Configuration
    • Import Android-SDK
    • Quick Start
    • Advanced Usage
    • API & Config
  • IOS INTEGRATION
    • Requirements
    • Project Setup
    • Integration
    • Advanced Usage
Powered by GitBook
On this page

Was this helpful?

  1. Android Integration

API & Config

Switch Stream URL

When Switching to a new stream URL, before passing new stream url to the player, pass that URL through P2pEngine instance:

String newParsedURL = P2pEngine.getInstance().parseStreamUrl(url);

API

engine.stopP2p() #stop the P2P streaming

engine.restartP2p() #Resume P2P if it has been stopped

engine.shutdown() #Stop P2P and shut down

PreviousAdvanced UsageNextRequirements

Last updated 3 years ago

Was this helpful?