Skip to content
Small proof of concept application showing how audio files (MP3s) can be streamed from S3 using CloudFront and JWPlayer.
CSS PHP JavaScript Perl
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
public
.gitattributes
.gitignore
README.md
artisan
composer.json
phpunit.xml
server.php

README.md

laravel-aws-audio-stream

Small proof of concept application showing how audio files (MP3s) can be streamed from S3 using CloudFront and JWPlayer.

Requirements

  • AWS account with S3 and CloudFront enabled
  • AWS key and secret key
  • Name of a bucket created in S3

Usage

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

Notes

  • You'll probably need to update your upload_max_filesize setting (default is 2 MB).
You can’t perform that action at this time.