Categorygithub.com/koho/playlist
repositorypackage
1.1.1
Repository: https://github.com/koho/playlist.git
Documentation: pkg.go.dev

# README

PlayList

Play your remote media folder via HTTP in your favorite media player.

Get started

Install ffmpeg

ffmpeg must be installed first.

Create your config file

Place the config file config.yml to the same directory of the binary.

listen: :6300
groups:
  - name: private
    path: /data/private
    username: john
    password: 123456

  - name: share
    path: /usr/share/family

Start web server

./playlist

Play

Open your favorite media player, import the playlist with the following url.

  • http://server_ip:6300/private
  • http://server_ip:6300/share

Parameters

ParameterDescription
listenListen address of the web server.
groupsAll your media groups.
groups.nameName of the media group.
groups.pathPath is where your media folder located.
groups.urlURL overwrites the default url of the media file. The final url joins the given url with the media file name.
groups.usernameWhen Username is non-empty, the HTTP Basic Auth will be enabled. Otherwise, no authentication is needed.
groups.passwordPassword of the user.
thumb.dirDir is where the thumbnail of media file stored.
thumb.workersWorkers is the number of worker processes to generate thumbnails in parallel. Default is the half of logical CPUs.
thumb.sizeSize sets the output thumbnail size. Default is 640:360.

With nginx

server {
  listen 8933;
  listen [::]:8933;
  location /playlist/ {
    proxy_pass        http://127.0.0.1:6300/;
    proxy_set_header  X-Real-IP         $remote_addr;
    proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header  X-Forwarded-Proto $scheme;
    proxy_set_header  Host              $http_host;
    proxy_set_header  X-Original-URI    $request_uri;
  }
}