-
Notifications
You must be signed in to change notification settings - Fork 241
Debugging and run tests
- Build InputStream Adaptive as Debug mode (see How to build)
- In the InputStream Adaptive sources folder, open the folder
\build\inputstream.adaptive-prefix\src\inputstream.adaptive-build
then open with Visual Studio the project fileinputstream.adaptive.sln
- Run Kodi and install the builded InputStream Adaptive zip, or as alternative, before run Kodi, replace existing ISAdaptive files under Kodi app user folder
\Kodi\addons\inputstream.adaptive
with the builded files that you can find under Kodi sources\addons\inputstream.adaptive
- With Kodi running, on Visual Studio, open the menu
Debug
->Attach to process
, in the new window selectkodi.exe
and clickAttach
button - Now when you will play a video you can debug the code
NOTICE: The Widevine library does not allow debugging DRM streaming videos, this will cause a crash or malfunctions. Therefore if you need to debug a DRM stream it will not be possible, the only solution is to search for a similar non-DRM video stream and debug with it. On How to test a stream page you can find some links that provide some non-DRM streams to be used for testing purpose.
NOTE: The tree files list in Visual Studio are referred to the platform used, therefore for example you cannot see in the tree files list the files for android build (e.g. wvdecrypter_android.cpp). If you need to show all files open ISAdaptive from Visual Studio as folder (then without load the .sln
), with a side effect you will not have IntelliSense enabled for C++17 or higher.
The tests helps to check the right execution of specified parts of source code, for example the parsing of MPD/HSL manifest data. All tests are contained inside src\test\
folder.
To run all tests and get the log output:
- Build InputStream Adaptive as Debug mode (see How to build)
- In the InputStream Adaptive sources folder, open the folder
\build\inputstream.adaptive-prefix\src\inputstream.adaptive-build
then open with Visual Studio the project fileinputstream.adaptive.sln
- Select
RUN_TESTS
project, open his context menu (right click) and selectBuild
to execute all tests - On
Output
window tab (usually placed below screen) you can see the log result of all tests
NOTE: Every time you modify the source code, before build RUN_TESTS
, you must build inputstream.adaptive_test
project to update the test build.
User Documentation
Developer Documentation
- Integration
- Integration DRM
- Integration DRM (old)
- Stream selection types properties
- How to test a stream
- Test samples python addon
- How to provide custom manifest and license
- Supported containers and codecs
- Verified Media Path (VMP)
- Set resolution limits for DRM streams
- Custom DASH manifest tags
- Audio Subtitles track properties
- Dev. FAQ
- Widevine ARM64 support
- Add‐on WIP status
Development