AnsweredAssumed Answered

Android & Akamai token authentication & LG Nexus5 Android 4.4

Question asked by davide strano on Apr 1, 2015
Latest reply on Apr 11, 2015 by davide strano

Hi all,

we are developing an android application that contains a videoview that plays hls streaming from akamai CDN .
The streaming url has a token authentication generated using Akamai API.
The application will be only available to Android 4.x device that support the akamai Token authentication service.
We are applying an URL Encoding of the token.
I have used this tool: to start.
Here below you can find an example of the result of both the urls (Main and Backup to the variant playlist manifest) with and without the URL Encoding applied:


URL HLS Main (without urlEncode)*~hmac=bfbd971ec41dbdcb10c61c2d42d9db70d9e1cf45797ad867f0ffef7239b81fe8


URL HLS Main (with urlEncode)*%7ehmac%3dbfbd971ec41dbdcb10c61c2d42d9db70d9e1cf45797ad867f0ffef7239b81fe8


URL HLS di backup (without urlEncode)*~hmac=bfbd971ec41dbdcb10c61c2d42d9db70d9e1cf45797ad867f0ffef7239b81fe8

URL HLS di backup (with urlEncode)*%7ehmac%3dbfbd971ec41dbdcb10c61c2d42d9db70d9e1cf45797ad867f0ffef7239b81fe8


Could anyone confirm me if with Android 4.x is necessary applied the url encoding of the token?
Could anyone say me if there two urls (main and backup) with UrlEncode above reported are both correct?
Someone have experience that also with encoding url probably there will be handsets android 4.x that will not playing video at cause of the characters in the query string?

I tried some android 4.x and I was able to play the video stream with the url encoded but I got an error with the mobile LG Nexus5 Android 4.4.

This handset didn't play the video on:


-The url contains a token and without urlEncode applied:Non working URL (The player opens and the Buffering remains at 0%)*~hmac=ebc03ad0d89f948de516b41a4415e3e94eb10ee041d8bcb30ed542eb01db5b4f

-The url contains a token and with urlEncode applied:Non working URL (The player opens and the Buffering remains at 0%)*%7ehmac%3debc03ad0d89f948de516b41a4415e3e94eb10ee041d8bcb30ed542eb01db5b4f


LG Nexus5 was able to play only url without token (free channel):working URL:


Does anyone have any idea how to enable this LG Nexus5  to stream a url that contains a token with or without urlEncode or if there is any workaround for this?

Thanks Davide