Amazon AWS s3 private Bucket video streaming
Amazon AWS s3 private bucket video streaming is so simple.. Add below permission in menifeast : < uses-permission android :name = " android.permission.INTERNET " /> Add below dependency in gradle file : compile ' com.amazonaws:aws-android-sdk-s3:2.3.0 ' Write below code lines to get private streaming url to stream video : AWSCredentials myCredentials = new BasicAWSCredentials ( {AWS_ACCESS_KEY_ID} , {AWS_SECRET_KEY} ); AmazonS3 s3client = new AmazonS3Client (myCredentials); s3client. setEndpoint ( {AWS_END_POINT} ); GeneratePresignedUrlRequest request = new GeneratePresignedUrlRequest ( {AWS_BUCKET} , {AWS_KEY} ); URL objectURL = s3client.generatePresignedUrl(request); Uri url = Uri.parse(objectURL.toString()); Initialize media controller & play video in video view VideoView mContentView = ( VideoView ) findViewById(R.id.surface); MediaController mController = new MediaController (this); mController. setAnchorView (mContentView); mCon