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);
engine.stopP2p() #stop the P2P streaming
engine.restartP2p() #Resume P2P if it has been stopped
engine.shutdown() #Stop P2P and shut down
Last updated 4 years ago