Advanced Usage
Switch Stream URL
swift
let newParsedURL = SWCP2pEngine.sharedInstance().parse(streamURL: NEW_ORIGINAL_URL)objective-c
NSURL *newParsedURL = [[SWCP2pEngine sharedInstance] parseStreamURL:NEW_ORIGINAL_URL];Stop P2P
swift
override func viewDidDisappear(_ animated: Bool) {
SWCP2pEngine.sharedInstance().stopP2p()
}objective-c
- (void)viewDidDisappear:(BOOL)animated {
[SWCP2pEngine.sharedInstance stopP2p];
}Stop P2P and Local Proxy
swift
objective-c
Last updated