Closed brianmiller closed 1 year ago
Update:
I set "YouTube API Type" to "NodJs" and the other options appeared:
[OdinOnDemand]
## Whether to use built-in library or self-hosted NodeJS yt-dlp server to grab YouTube URLs. You probably do not need to touch this setting, but see GitHub for setup if interested. Restart required.
# Setting type: YouTubeAPI
# Default value: YouTubeExplode
# Acceptable values: YouTubeExplode, NodeJs
YouTube API Type = NodeJs
## yt-dlp NodeJS Server URL. Must format like http://ip:port/yt/
# Setting type: String
# Default value: http://localhost:3000/yt/
NodeJS Server = http://localhost:3000/yt/
## The auth code for the NodeJS yt-dlp server. This must match the one in server.js.
# Setting type: String
# Default value: CHANGEME=
NodeJS Auth Code = CHANGEME=
I'll continue and report back.
It works! Closing. Videos are play on join and are persistent after restarts too.
Great mod BTW. I'm wanting a video playing at our spawn/shrines but the video URLs are expiring. I saw your comment regarding the expiration of CDN URLs, it makes sense. But it would be great to always resolve to the CDN url from the youtube ID, rather than resolve the first time and hardcode until the URL expires. If it's even possible. I suspect it related to youtube-dl.
This got me interested in your nodejs option. Your instructions state "modifying the appropriate values in BepInEx\config\com.donkboys.OdinOnDemand.cfg." But this config file doesn't exit. I see "com.ood.valmedia.cfg" which I assume is the proper config file.
In this config, I see
And I assume I need to set this to NodeJs.
However, your instructions also state
"The NodeJS URL must be set to your server like: http://127.0.0.1:8080/yt/"
but I don't see a NodeJS URL directive in the config file.The same goes for
Replace the IP and port with your server's IP and port. Set your auth code identical to the one in server.js.
I don't see a place to enter the auth code.I took a look at your instructional video as well. Your video shows the config directives... Do I need to manually add them to the config?
Any help is appreciated.
Our ultimate goal is to simply have the theater screens and boomboxes always play the URL associated with the item, eliminating the need to always having to walk up to the screen and re-copy/paste a new URL every time you login.
Great mod!