New location parameter makes it easy to calculate the final storage URL in our JS functions
NewNext year we’ll be adding video recording, processing and storage regions (EU, US, CA, etc.).
In light of this change we’ve updated the onSaveOk, onUploadDone and onVideoUploadSuccess functions (they’re part of our JS Events API on desktop and mobile) with a new location parameter which contains the subdomain of the S3 bucket where the final .mp4 video and .jpg snapshot will be stored by us.
It’s value is currently addpipevideos.s3.amazonaws.com . Once we introduce regions the new location parameter will take different values depending on the region.