I have tried the method PreprocessHttpRequestCallback for altering NetworkConfig to add a custom user agent unfortunately, I couldn't implement it successfully. I even searched their entire git sample repo for NetworkConfig yet failed to find a sample and also their documentation
There is nothing many practical examples couldn't find.
Bitmovin Android SDK Version: 3.18
Not sure what exactly you tried, but this seems to work (replace
customValue
with your desired user-agent string) using thePreprocessHttpRequestCallback
:A good place to ask such questions is also Bitmovin's Community: https://community.bitmovin.com/t/how-to-set-a-custom-user-agent-as-header-for-android-bitmovin-player-sdk/979/2