Tower Unite
MatzeThe0ne Apr 30, 2019 @ 1:46pm
Local File Streaming Cinema
Is there a Way to Stream Local Files in the Cinema Condo, if one wants to watch a Movie that is not on YouTube?
< >
Showing 1-6 of 6 comments
Sora Apr 30, 2019 @ 6:39pm 
Linux, NGINX, NGINX FLV Module, FLVJS, VideoJS + FLVJS Module, PHP / HTML Knowledge
You can easily stream anything you want. If you dont mind risking people randomly streaming anything they want to the service you dont even need PHP knowledge Thats just for returning 403 Forbidden if the stream key is invalid.. HTML is needed for FLV / VideoJS setup to play the video in HTML 5 format, because RTMP is flash, which has no support anymore.

basically:
https://github.com/winshining/nginx-http-flv-module (Stream server module for NGINX)
https://github.com/Bilibili/flv.js/ (FLV JS)
https://github.com/mister-ben/videojs-flvjs (VideoJS FLV JS module)
https://videojs.com/ (VideoJS HTML5 media client)
Some PHP/HTML knowledge.

Open port 1935 TCP (iirc) for RTMP connections

Edit:
For anyone reading this:
If you use my method please have atleast the smarts to properly configure the NGINX webserver to accept a script to decline streams who do not provide a proper stream key. Otherwise anyone can stream to your NGINX server with any content they want.
Last edited by Sora; May 1, 2019 @ 12:37pm
MatzeThe0ne May 1, 2019 @ 12:15am 
Phew....that Sounds difficult. 0_0
Brett May 1, 2019 @ 5:07am 
Sounds dangerous. At least limiting the videos to YouTube puts anything that would show on TU screen through YouTube's content filter. I cringe at what we might see if it becomes a free-for-all of locally-owned content.
Sora May 1, 2019 @ 12:37pm 
You're average player who uses Windows wont be able to stream local files without renting a linux server or using a VM or finding an online service that allows direct linking to supported file formats that work in HTML5 (ingame browser)
Koi-o-T Jan 27, 2021 @ 6:57am 
i might need some help...
Sora Jan 27, 2021 @ 9:50am 
The old method doesn't work, as tower's browser (steam) don't support MSE.
You can use icecast, which is easier to configure but it causes insane amount of latency with streaming. but you can atleast provide VOD.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Apr 30, 2019 @ 1:46pm
Posts: 6