HTML5 based media player using Minio-Go library.
- Amazon s3 account or a running instance Minio Server. Click here for setting up Minio server.
- Keep your media files in the S3 or Minio bucket.
- Install Minio-go library Note : If you do not have a working Golang environment, please follow Install Golang.
$ go get github.com/minio/minio-go
- To view or to download the code, go to: https://github.com/hackintoshrao/minio-go-media-player
-
Set Access key and Secret key
On Linux, OS X or Unix:
export AWS_ACCESS_KEY='your-access-key' export AWS_SECRET_KEY='your-secret-key'
On Windows:
set AWS_ACCESS_KEY=your-access-key set AWS_SECRET_KEY=your-secret-key
-
Execute the following commands
go run player-minio.go -b <bucket-name>
-
-b
sets the bucket name , and its mandatory. -
-e
sets the endpoint, defaults to s3.amazonaws.com.-
Set the endpoint to localhost:9000 for using with Minio server running locally.
-
set it to the ip address of the host if Minio server is run remotely.
-
-
-i
sets the enable_insecure flag. It is set tofalse
by default. It is set totrue
only for insecure connection.