Small proof of concept application showing how audio files (MP3s) can be streamed from S3 using CloudFront and JWPlayer.
- AWS account with S3 and CloudFront enabled
- AWS key and secret key
- Name of a bucket created in S3
To install:
$ git clone git@github.com:coreymcmahon/laravel-aws-audio-stream.git
$ cd laravel-aws-audio-stream
$ chmod -R 777 app/storage/
Update app/config/amazon.php
with your AWS settings.
Update app/config/database.php
with your database settings.
$ composer install
$ ./artisan migrate
Create a user in the database.
$ ./artisan create:user someuser@somedomain.com
Please enter a password
Please confirm the password
User successfully added.
Start the test web server.
$ ./artisan serve
- You'll probably need to update your
upload_max_filesize
setting (default is 2 MB).