YTTV
Play any YT video you want on the TV - quickly and conveniently!
| Last updated | 2 weeks ago | 
| Total downloads | 2717 | 
| Total rating | 1 | 
| Categories | BepInEx Furniture TV Videos | 
| Dependency string | MAR_Mods-YTTV-1.0.4 | 
| Dependants | 1 other package depends on this package | 
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
YTTV
This mod allows you to play YouTube videos on the buyable television, by specifying a link. You can enter various commands for the mod into chat.
A fork of TheByteNinja's Television Controller Fix, which itself is a fork of KoderTech's Television Controller mod. Both of these mods are outdated, so I took it upon myself to make a working version.
Supports English and Russian, just as the original did. You can set the language in a config file (...\steamapps\common\Lethal Company\YTTV\television_controller.cfg).
Commands
- /thelp - View all commands
 - /tplay [LINK] - Play video from this link
 - /ttime [TIMESTAMP] - Set video to this timestamp
 - /treset - Restart video
 - /tposition [TRUE/FALSE] - Toggle if video resets on TV on/off
 - /tvolume [0-100] - Set TV volume to this percentage
 
Desync Issues / Bugginess
An unfortunate issue with this mod is that it's easy for the viewing experience to desynchronize between players.
Here are some tips to alleviate this:
- /treset seems to help when the mod becomes unresponsive to commands.
 - Wait for EVERYONE watching to have gotten "The video was uploaded to the television" in chat before playing a video.
 - Turn the TV off and on again.
 
How did you make this?
I used Visual Studio. For the project, I picked Class Library (.NET Framework), and set the framework to .NET Framework 4.8. Essentially all I really did (besides fixing TheByteNinja's decompiled code) was change the link that downloads yt-dlp.exe to be the latest version (in the original mods, these are outdated, hence why they don't work anymore).
 
Here's the line you should change to update the yt-dlp version: string expectedVersion = "XXXX.XX.XX"; replace the X's with the yt-dlp release version.
Credits
Television Controller
- KoderTech (listed on Thunderstore as KoderTeh)
 - 7-8 Arctiqan
 - Iluminati
 - Dan4ik
 - Durnanu
 - Larte
 
- TheByteNinja