laintv

laintv

The source for lain.tv

Name Last Update
resource Loading commit data...
source Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
Setup.hs Loading commit data...
laintv.cabal Loading commit data...
stack.yaml Loading commit data...

Lain.TV

A website for streaming. Made by and for the people of lainchan.org.

Building

Clone the repo and build with stack build. You may need to install dependencies.

source/LainTV/WMSPanel/Credentials.hs is a haskell file not included here containing several constants needed to connect to the WMS panel API, e.g.:

module LainTV.WMSPanel.Credentials where

clientId  = "this-is-a-client-id"
apiKey    = "7h1s1s4n4p1k3y"
dataSlice = "12345678901234567890"

Installation

Currently, the only way to install it is to either a) build on the server or b) build somewhere else and copy the executable onto the server.

Configuration

LainTV reads the streams that it displays from a list of streams in /etc/laintv/streams.yaml. Example streams.yaml file:

# /etc/laintv/streams.yaml

- name:     Main
  source:   https://lain.tv:8082/live/stream/playlist.m3u8
  rtmp_url: rtmp://lain.tv/live/stream
  wms_url:  107.191.102.75:1935/live/stream

If the file isn't present, LainTV will just assume there are no streams to be displayed.