This is a LUA script to manage OBS browser source and add a URL to play embedded videos from Youtube. The script just makes it simple to insert a single video player, create custom playlists or load a Youtube generated list via a remote URL using OBS browser source, without all the ads and page elements on the Youtube page. Report bugs here in the thread.
Installation
Browser source properties view
Screen view
Installation
- Extract the .ZIP archive in the OBS installation scripts folder.
obs-studio\data\obs-plugins\frontend-tools\scripts (OBS really needs a script installer) - Go to OBS menu bar and Tools > Scripts to open the scripts manager
- Add the script by clicking the button with the plus icon
- Select maax-youtube.lua
- Add atleast 1 browser source to the scene where it will serve. No need to set any values.
- Open Tools > Scripts > maax-youtube.lua (if not already in view)
- Select the scene then select the source
- Configure the settings as desired and add Youtube video URLS
- Click update button when done
- Create browser sources from the script window
- Edit an existing browser source
- Add multiple Youtube video URL to create custom playlists
- Add Youtube generated playlist ID to play max 200 videos continuously
- Enable autoplay to start the playback once the source is active
- Enable loop to restart a playlist or a single video for eternity
- Play Youtube video in an iFrame
- No intrusive page elements from Youtube site
- No ads (a function of Youtube embed API. Not a hack)
Browser source properties view
Screen view