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
$ git clone email@example.com:coreymcmahon/laravel-aws-audio-stream.git $ cd laravel-aws-audio-stream $ chmod -R 777 app/storage/
app/config/amazon.php with your AWS settings.
app/config/database.php with your database settings.
$ composer install $ ./artisan migrate
Create a user in the database.
$ ./artisan create:user firstname.lastname@example.org 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_filesizesetting (default is 2 MB).