Quick start
TikCDN solution makes full use of idle terminal bandwidth resources, complements traditional CDN, and builds a cost-effective new generation of content distribution network. Developers can quickly integrate with their own applications through the clean interface in the SDK to achieve P2P acceleration on Windows devices.
Precondition
- vs2017 and later versions support x86/x64 devices.
- Windows7 and above.
- Effective account TikCDN developers
Demo Running Guide
2、Configuration develops information
./X2TicTracker-FFPlay/main.cpp
Find the APP ID in the above file
#define APP_ID "your app id"
3、Change the Package Name(application name) to the same value as when you created the application, otherwise you will not be able to use the acceleration service.
4、Run-through example
5、Run the example on another machine to see the P2P acceleration
Implementation step
Initialization engine
IX2TikTracker* x2TikTracker = createX2TikTracker();
Configuring Developer information
x2TikTracker->initialize(APP_ID, NULL);
Start playing and speed up
x2TikTracker->startPlay(char* strUrl, bool bShare)
Get the p2p acceleration URL
x2TikTracker->getExPlayUrl(char* strUrl, int nUrlSize)
Playback acceleration URL
./ffplay.exe -i http://xxxxxx.hls
Stop accelerating
x2TikTracker->stopShare()