A website for streaming. Made by and for the people of lainchan.org.
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"
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.
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: 22.214.171.124:1935/live/stream
If the file isn't present, LainTV will just assume there are no streams to be displayed.