For the project im working on, i need to consume videos on Android from AWS S3.
Im using private file access with signed urls. Everything works fine but the videos stream init time is quite long ( maybe 6-10 seconds).
Im trying to incorporate CloudFront to help serve the content more quickly. I've already created my 'Distribution' on the AWS console and set the proper fields to private content, etc..
Im stuck at generating the proper url so that the files are consumed from CloudFront and not S3.
I dont seem to find ANY documentation on CloudFront + Android nor any gradle dependency.
The online resources ive found point to Java tuts that rely on the CloudFrontUrlSigner class ( which is only included on the Java SDK , not the Android SDK )
So i tried using compile 'com.amazonaws:aws-java-sdk-cloudfront:1.10.+'
on my app.gradle file and i can 'complete' the guide, but i get build-time errors.
How can i accomplish this?
Thanks, David.