Refactor build workflow by removing unnecessary dependency installation step and add new SaT configuration file with scene and source definitions
Some checks failed
Lint and Build / build (pull_request) Failing after 2m57s
Some checks failed
Lint and Build / build (pull_request) Failing after 2m57s
This commit is contained in:
parent
3c58ccc5af
commit
450b6d6044
4 changed files with 1010 additions and 19 deletions
|
@ -15,18 +15,6 @@ jobs:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install build dependencies
|
|
||||||
run: |
|
|
||||||
if command -v apt-get >/dev/null 2>&1; then
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y build-essential python3-dev
|
|
||||||
elif command -v apk >/dev/null 2>&1; then
|
|
||||||
sudo apk add --no-cache build-base python3-dev
|
|
||||||
elif command -v yum >/dev/null 2>&1; then
|
|
||||||
sudo yum groupinstall -y "Development Tools"
|
|
||||||
sudo yum install -y python3-devel
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Clean NextJS cache
|
- name: Clean NextJS cache
|
||||||
run: rm -rf .next
|
run: rm -rf .next
|
||||||
|
|
||||||
|
|
998
files/SaT.json
Normal file
998
files/SaT.json
Normal file
|
@ -0,0 +1,998 @@
|
||||||
|
{
|
||||||
|
"current_scene": "Scene",
|
||||||
|
"current_program_scene": "Scene",
|
||||||
|
"scene_order": [
|
||||||
|
{
|
||||||
|
"name": "Scene"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "1-Screen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "2-Screen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "4-Screen"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Testers"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "SaT",
|
||||||
|
"groups": [],
|
||||||
|
"quick_transitions": [
|
||||||
|
{
|
||||||
|
"name": "Cut",
|
||||||
|
"duration": 300,
|
||||||
|
"hotkeys": [],
|
||||||
|
"id": 4,
|
||||||
|
"fade_to_black": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Fade",
|
||||||
|
"duration": 300,
|
||||||
|
"hotkeys": [],
|
||||||
|
"id": 5,
|
||||||
|
"fade_to_black": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Fade",
|
||||||
|
"duration": 300,
|
||||||
|
"hotkeys": [],
|
||||||
|
"id": 6,
|
||||||
|
"fade_to_black": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transitions": [],
|
||||||
|
"saved_projectors": [],
|
||||||
|
"canvases": [],
|
||||||
|
"current_transition": "Fade",
|
||||||
|
"transition_duration": 300,
|
||||||
|
"preview_locked": false,
|
||||||
|
"scaling_enabled": false,
|
||||||
|
"scaling_level": -8,
|
||||||
|
"scaling_off_x": 0.0,
|
||||||
|
"scaling_off_y": 0.0,
|
||||||
|
"modules": {
|
||||||
|
"scripts-tool": [],
|
||||||
|
"output-timer": {
|
||||||
|
"streamTimerHours": 0,
|
||||||
|
"streamTimerMinutes": 0,
|
||||||
|
"streamTimerSeconds": 30,
|
||||||
|
"recordTimerHours": 0,
|
||||||
|
"recordTimerMinutes": 0,
|
||||||
|
"recordTimerSeconds": 30,
|
||||||
|
"autoStartStreamTimer": false,
|
||||||
|
"autoStartRecordTimer": false,
|
||||||
|
"pauseRecordTimer": true
|
||||||
|
},
|
||||||
|
"auto-scene-switcher": {
|
||||||
|
"interval": 300,
|
||||||
|
"non_matching_scene": "",
|
||||||
|
"switch_if_not_matching": false,
|
||||||
|
"active": false,
|
||||||
|
"switches": []
|
||||||
|
},
|
||||||
|
"captions": {
|
||||||
|
"source": "",
|
||||||
|
"enabled": false,
|
||||||
|
"lang_id": 1033,
|
||||||
|
"provider": "mssapi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"version": 2,
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "1-Screen",
|
||||||
|
"uuid": "a147f8e6-092d-4271-b1f6-8677b0644699",
|
||||||
|
"id": "scene",
|
||||||
|
"versioned_id": "scene",
|
||||||
|
"settings": {
|
||||||
|
"id_counter": 1,
|
||||||
|
"custom_size": false,
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"name": "ss_large",
|
||||||
|
"source_uuid": "e5727f76-0f05-4747-93fe-190d0e27fad8",
|
||||||
|
"visible": true,
|
||||||
|
"locked": false,
|
||||||
|
"rot": 0.0,
|
||||||
|
"scale_ref": {
|
||||||
|
"x": 1920.0,
|
||||||
|
"y": 1080.0
|
||||||
|
},
|
||||||
|
"align": 5,
|
||||||
|
"bounds_type": 0,
|
||||||
|
"bounds_align": 0,
|
||||||
|
"bounds_crop": false,
|
||||||
|
"crop_left": 0,
|
||||||
|
"crop_top": 0,
|
||||||
|
"crop_right": 0,
|
||||||
|
"crop_bottom": 0,
|
||||||
|
"id": 1,
|
||||||
|
"group_item_backup": false,
|
||||||
|
"pos": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"pos_rel": {
|
||||||
|
"x": -1.7777777910232544,
|
||||||
|
"y": -1.0
|
||||||
|
},
|
||||||
|
"scale": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"scale_rel": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"bounds": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"bounds_rel": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"scale_filter": "disable",
|
||||||
|
"blend_method": "default",
|
||||||
|
"blend_type": "normal",
|
||||||
|
"show_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"hide_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"private_settings": {}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"OBSBasic.SelectScene": [],
|
||||||
|
"libobs.show_scene_item.1": [],
|
||||||
|
"libobs.hide_scene_item.1": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"canvas_uuid": "6c69626f-6273-4c00-9d88-c5136d61696e",
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "2-Screen",
|
||||||
|
"uuid": "e3fa43b2-84ff-46cf-b56c-6110a31df1ad",
|
||||||
|
"id": "scene",
|
||||||
|
"versioned_id": "scene",
|
||||||
|
"settings": {
|
||||||
|
"id_counter": 0,
|
||||||
|
"custom_size": false,
|
||||||
|
"items": []
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"OBSBasic.SelectScene": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"canvas_uuid": "6c69626f-6273-4c00-9d88-c5136d61696e",
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "4-Screen",
|
||||||
|
"uuid": "ec2099f7-a728-49fc-95ee-c19ca5987bda",
|
||||||
|
"id": "scene",
|
||||||
|
"versioned_id": "scene",
|
||||||
|
"settings": {
|
||||||
|
"id_counter": 1,
|
||||||
|
"custom_size": false,
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"name": "ss_bottom_left",
|
||||||
|
"source_uuid": "e3c901fa-60da-4e62-9104-f6e5c8c2dabd",
|
||||||
|
"visible": true,
|
||||||
|
"locked": false,
|
||||||
|
"rot": 0.0,
|
||||||
|
"scale_ref": {
|
||||||
|
"x": 1920.0,
|
||||||
|
"y": 1080.0
|
||||||
|
},
|
||||||
|
"align": 5,
|
||||||
|
"bounds_type": 0,
|
||||||
|
"bounds_align": 0,
|
||||||
|
"bounds_crop": false,
|
||||||
|
"crop_left": 0,
|
||||||
|
"crop_top": 0,
|
||||||
|
"crop_right": 0,
|
||||||
|
"crop_bottom": 0,
|
||||||
|
"id": 1,
|
||||||
|
"group_item_backup": false,
|
||||||
|
"pos": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"pos_rel": {
|
||||||
|
"x": -1.7777777910232544,
|
||||||
|
"y": -1.0
|
||||||
|
},
|
||||||
|
"scale": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"scale_rel": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"bounds": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"bounds_rel": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"scale_filter": "disable",
|
||||||
|
"blend_method": "default",
|
||||||
|
"blend_type": "normal",
|
||||||
|
"show_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"hide_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"private_settings": {}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"OBSBasic.SelectScene": [],
|
||||||
|
"libobs.show_scene_item.1": [],
|
||||||
|
"libobs.hide_scene_item.1": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"canvas_uuid": "6c69626f-6273-4c00-9d88-c5136d61696e",
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "Scene",
|
||||||
|
"uuid": "9a7e85d1-30bd-4e1a-8836-2d20b385820c",
|
||||||
|
"id": "scene",
|
||||||
|
"versioned_id": "scene",
|
||||||
|
"settings": {
|
||||||
|
"id_counter": 7,
|
||||||
|
"custom_size": false,
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"name": "ss_top_left",
|
||||||
|
"source_uuid": "cd24ff7b-7e4b-4aef-a224-6af032de6247",
|
||||||
|
"visible": true,
|
||||||
|
"locked": false,
|
||||||
|
"rot": 0.0,
|
||||||
|
"scale_ref": {
|
||||||
|
"x": 1920.0,
|
||||||
|
"y": 1080.0
|
||||||
|
},
|
||||||
|
"align": 5,
|
||||||
|
"bounds_type": 0,
|
||||||
|
"bounds_align": 0,
|
||||||
|
"bounds_crop": false,
|
||||||
|
"crop_left": 0,
|
||||||
|
"crop_top": 0,
|
||||||
|
"crop_right": 0,
|
||||||
|
"crop_bottom": 0,
|
||||||
|
"id": 1,
|
||||||
|
"group_item_backup": false,
|
||||||
|
"pos": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"pos_rel": {
|
||||||
|
"x": -1.7777777910232544,
|
||||||
|
"y": -1.0
|
||||||
|
},
|
||||||
|
"scale": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"scale_rel": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"bounds": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"bounds_rel": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"scale_filter": "disable",
|
||||||
|
"blend_method": "default",
|
||||||
|
"blend_type": "normal",
|
||||||
|
"show_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"hide_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ss_top_right",
|
||||||
|
"source_uuid": "b38b1134-7040-44b4-a397-1a1385911403",
|
||||||
|
"visible": true,
|
||||||
|
"locked": false,
|
||||||
|
"rot": 0.0,
|
||||||
|
"scale_ref": {
|
||||||
|
"x": 1920.0,
|
||||||
|
"y": 1080.0
|
||||||
|
},
|
||||||
|
"align": 5,
|
||||||
|
"bounds_type": 0,
|
||||||
|
"bounds_align": 0,
|
||||||
|
"bounds_crop": false,
|
||||||
|
"crop_left": 0,
|
||||||
|
"crop_top": 0,
|
||||||
|
"crop_right": 0,
|
||||||
|
"crop_bottom": 0,
|
||||||
|
"id": 2,
|
||||||
|
"group_item_backup": false,
|
||||||
|
"pos": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"pos_rel": {
|
||||||
|
"x": -1.7777777910232544,
|
||||||
|
"y": -1.0
|
||||||
|
},
|
||||||
|
"scale": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"scale_rel": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"bounds": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"bounds_rel": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"scale_filter": "disable",
|
||||||
|
"blend_method": "default",
|
||||||
|
"blend_type": "normal",
|
||||||
|
"show_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"hide_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ss_bottom_left",
|
||||||
|
"source_uuid": "e3c901fa-60da-4e62-9104-f6e5c8c2dabd",
|
||||||
|
"visible": true,
|
||||||
|
"locked": false,
|
||||||
|
"rot": 0.0,
|
||||||
|
"scale_ref": {
|
||||||
|
"x": 1920.0,
|
||||||
|
"y": 1080.0
|
||||||
|
},
|
||||||
|
"align": 5,
|
||||||
|
"bounds_type": 0,
|
||||||
|
"bounds_align": 0,
|
||||||
|
"bounds_crop": false,
|
||||||
|
"crop_left": 0,
|
||||||
|
"crop_top": 0,
|
||||||
|
"crop_right": 0,
|
||||||
|
"crop_bottom": 0,
|
||||||
|
"id": 3,
|
||||||
|
"group_item_backup": false,
|
||||||
|
"pos": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"pos_rel": {
|
||||||
|
"x": -1.7777777910232544,
|
||||||
|
"y": -1.0
|
||||||
|
},
|
||||||
|
"scale": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"scale_rel": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"bounds": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"bounds_rel": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"scale_filter": "disable",
|
||||||
|
"blend_method": "default",
|
||||||
|
"blend_type": "normal",
|
||||||
|
"show_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"hide_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ss_bottom_right",
|
||||||
|
"source_uuid": "c2164d12-5a03-4372-acdd-f93a7db2a166",
|
||||||
|
"visible": true,
|
||||||
|
"locked": false,
|
||||||
|
"rot": 0.0,
|
||||||
|
"scale_ref": {
|
||||||
|
"x": 1920.0,
|
||||||
|
"y": 1080.0
|
||||||
|
},
|
||||||
|
"align": 5,
|
||||||
|
"bounds_type": 0,
|
||||||
|
"bounds_align": 0,
|
||||||
|
"bounds_crop": false,
|
||||||
|
"crop_left": 0,
|
||||||
|
"crop_top": 0,
|
||||||
|
"crop_right": 0,
|
||||||
|
"crop_bottom": 0,
|
||||||
|
"id": 4,
|
||||||
|
"group_item_backup": false,
|
||||||
|
"pos": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"pos_rel": {
|
||||||
|
"x": -1.7777777910232544,
|
||||||
|
"y": -1.0
|
||||||
|
},
|
||||||
|
"scale": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"scale_rel": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"bounds": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"bounds_rel": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"scale_filter": "disable",
|
||||||
|
"blend_method": "default",
|
||||||
|
"blend_type": "normal",
|
||||||
|
"show_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"hide_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ss_large",
|
||||||
|
"source_uuid": "e5727f76-0f05-4747-93fe-190d0e27fad8",
|
||||||
|
"visible": true,
|
||||||
|
"locked": false,
|
||||||
|
"rot": 0.0,
|
||||||
|
"scale_ref": {
|
||||||
|
"x": 1920.0,
|
||||||
|
"y": 1080.0
|
||||||
|
},
|
||||||
|
"align": 5,
|
||||||
|
"bounds_type": 0,
|
||||||
|
"bounds_align": 0,
|
||||||
|
"bounds_crop": false,
|
||||||
|
"crop_left": 0,
|
||||||
|
"crop_top": 0,
|
||||||
|
"crop_right": 0,
|
||||||
|
"crop_bottom": 0,
|
||||||
|
"id": 5,
|
||||||
|
"group_item_backup": false,
|
||||||
|
"pos": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"pos_rel": {
|
||||||
|
"x": -1.7777777910232544,
|
||||||
|
"y": -1.0
|
||||||
|
},
|
||||||
|
"scale": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"scale_rel": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"bounds": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"bounds_rel": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"scale_filter": "disable",
|
||||||
|
"blend_method": "default",
|
||||||
|
"blend_type": "normal",
|
||||||
|
"show_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"hide_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ss_left",
|
||||||
|
"source_uuid": "0f02c57d-41fd-40c3-8e05-de44edc52361",
|
||||||
|
"visible": true,
|
||||||
|
"locked": false,
|
||||||
|
"rot": 0.0,
|
||||||
|
"scale_ref": {
|
||||||
|
"x": 1920.0,
|
||||||
|
"y": 1080.0
|
||||||
|
},
|
||||||
|
"align": 5,
|
||||||
|
"bounds_type": 0,
|
||||||
|
"bounds_align": 0,
|
||||||
|
"bounds_crop": false,
|
||||||
|
"crop_left": 0,
|
||||||
|
"crop_top": 0,
|
||||||
|
"crop_right": 0,
|
||||||
|
"crop_bottom": 0,
|
||||||
|
"id": 6,
|
||||||
|
"group_item_backup": false,
|
||||||
|
"pos": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"pos_rel": {
|
||||||
|
"x": -1.7777777910232544,
|
||||||
|
"y": -1.0
|
||||||
|
},
|
||||||
|
"scale": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"scale_rel": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"bounds": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"bounds_rel": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"scale_filter": "disable",
|
||||||
|
"blend_method": "default",
|
||||||
|
"blend_type": "normal",
|
||||||
|
"show_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"hide_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ss_right",
|
||||||
|
"source_uuid": "a90a0e5b-4443-4ac1-981c-6598b92c47fe",
|
||||||
|
"visible": true,
|
||||||
|
"locked": false,
|
||||||
|
"rot": 0.0,
|
||||||
|
"scale_ref": {
|
||||||
|
"x": 1920.0,
|
||||||
|
"y": 1080.0
|
||||||
|
},
|
||||||
|
"align": 5,
|
||||||
|
"bounds_type": 0,
|
||||||
|
"bounds_align": 0,
|
||||||
|
"bounds_crop": false,
|
||||||
|
"crop_left": 0,
|
||||||
|
"crop_top": 0,
|
||||||
|
"crop_right": 0,
|
||||||
|
"crop_bottom": 0,
|
||||||
|
"id": 7,
|
||||||
|
"group_item_backup": false,
|
||||||
|
"pos": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"pos_rel": {
|
||||||
|
"x": -1.7777777910232544,
|
||||||
|
"y": -1.0
|
||||||
|
},
|
||||||
|
"scale": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"scale_rel": {
|
||||||
|
"x": 1.0,
|
||||||
|
"y": 1.0
|
||||||
|
},
|
||||||
|
"bounds": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"bounds_rel": {
|
||||||
|
"x": 0.0,
|
||||||
|
"y": 0.0
|
||||||
|
},
|
||||||
|
"scale_filter": "disable",
|
||||||
|
"blend_method": "default",
|
||||||
|
"blend_type": "normal",
|
||||||
|
"show_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"hide_transition": {
|
||||||
|
"duration": 0
|
||||||
|
},
|
||||||
|
"private_settings": {}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"OBSBasic.SelectScene": [],
|
||||||
|
"libobs.show_scene_item.1": [],
|
||||||
|
"libobs.hide_scene_item.1": [],
|
||||||
|
"libobs.show_scene_item.2": [],
|
||||||
|
"libobs.hide_scene_item.2": [],
|
||||||
|
"libobs.show_scene_item.3": [],
|
||||||
|
"libobs.hide_scene_item.3": [],
|
||||||
|
"libobs.show_scene_item.4": [],
|
||||||
|
"libobs.hide_scene_item.4": [],
|
||||||
|
"libobs.show_scene_item.5": [],
|
||||||
|
"libobs.hide_scene_item.5": [],
|
||||||
|
"libobs.show_scene_item.6": [],
|
||||||
|
"libobs.hide_scene_item.6": [],
|
||||||
|
"libobs.show_scene_item.7": [],
|
||||||
|
"libobs.hide_scene_item.7": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"canvas_uuid": "6c69626f-6273-4c00-9d88-c5136d61696e",
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "ss_bottom_left",
|
||||||
|
"uuid": "e3c901fa-60da-4e62-9104-f6e5c8c2dabd",
|
||||||
|
"id": "source_switcher",
|
||||||
|
"versioned_id": "source_switcher",
|
||||||
|
"settings": {
|
||||||
|
"current_index": -1
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"none": [],
|
||||||
|
"next": [],
|
||||||
|
"previous": [],
|
||||||
|
"random": [],
|
||||||
|
"shuffle": [],
|
||||||
|
"first": [],
|
||||||
|
"last": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "ss_bottom_right",
|
||||||
|
"uuid": "c2164d12-5a03-4372-acdd-f93a7db2a166",
|
||||||
|
"id": "source_switcher",
|
||||||
|
"versioned_id": "source_switcher",
|
||||||
|
"settings": {
|
||||||
|
"current_index": -1
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"none": [],
|
||||||
|
"next": [],
|
||||||
|
"previous": [],
|
||||||
|
"random": [],
|
||||||
|
"shuffle": [],
|
||||||
|
"first": [],
|
||||||
|
"last": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "ss_large",
|
||||||
|
"uuid": "e5727f76-0f05-4747-93fe-190d0e27fad8",
|
||||||
|
"id": "source_switcher",
|
||||||
|
"versioned_id": "source_switcher",
|
||||||
|
"settings": {
|
||||||
|
"current_index": -1,
|
||||||
|
"current_source_file": true,
|
||||||
|
"current_source_file_path": "C:/Users/derek/OBS/SaT Summer 2025/ss/ss-large.txt",
|
||||||
|
"current_source_file_interval": 1000
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"none": [],
|
||||||
|
"next": [],
|
||||||
|
"previous": [],
|
||||||
|
"random": [],
|
||||||
|
"shuffle": [],
|
||||||
|
"first": [],
|
||||||
|
"last": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "ss_left",
|
||||||
|
"uuid": "0f02c57d-41fd-40c3-8e05-de44edc52361",
|
||||||
|
"id": "source_switcher",
|
||||||
|
"versioned_id": "source_switcher",
|
||||||
|
"settings": {
|
||||||
|
"current_index": -1
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"none": [],
|
||||||
|
"next": [],
|
||||||
|
"previous": [],
|
||||||
|
"random": [],
|
||||||
|
"shuffle": [],
|
||||||
|
"first": [],
|
||||||
|
"last": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "ss_right",
|
||||||
|
"uuid": "a90a0e5b-4443-4ac1-981c-6598b92c47fe",
|
||||||
|
"id": "source_switcher",
|
||||||
|
"versioned_id": "source_switcher",
|
||||||
|
"settings": {
|
||||||
|
"current_index": -1
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"none": [],
|
||||||
|
"next": [],
|
||||||
|
"previous": [],
|
||||||
|
"random": [],
|
||||||
|
"shuffle": [],
|
||||||
|
"first": [],
|
||||||
|
"last": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "ss_top_left",
|
||||||
|
"uuid": "cd24ff7b-7e4b-4aef-a224-6af032de6247",
|
||||||
|
"id": "source_switcher",
|
||||||
|
"versioned_id": "source_switcher",
|
||||||
|
"settings": {
|
||||||
|
"current_index": -1
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"none": [],
|
||||||
|
"next": [],
|
||||||
|
"previous": [],
|
||||||
|
"random": [],
|
||||||
|
"shuffle": [],
|
||||||
|
"first": [],
|
||||||
|
"last": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "ss_top_right",
|
||||||
|
"uuid": "b38b1134-7040-44b4-a397-1a1385911403",
|
||||||
|
"id": "source_switcher",
|
||||||
|
"versioned_id": "source_switcher",
|
||||||
|
"settings": {
|
||||||
|
"current_index": -1
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"none": [],
|
||||||
|
"next": [],
|
||||||
|
"previous": [],
|
||||||
|
"random": [],
|
||||||
|
"shuffle": [],
|
||||||
|
"first": [],
|
||||||
|
"last": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"private_settings": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prev_ver": 520159233,
|
||||||
|
"name": "Testers",
|
||||||
|
"uuid": "10ab7435-3634-4d18-ab64-18385c68a106",
|
||||||
|
"id": "scene",
|
||||||
|
"versioned_id": "scene",
|
||||||
|
"settings": {
|
||||||
|
"id_counter": 0,
|
||||||
|
"custom_size": false,
|
||||||
|
"items": []
|
||||||
|
},
|
||||||
|
"mixers": 0,
|
||||||
|
"sync": 0,
|
||||||
|
"flags": 0,
|
||||||
|
"volume": 1.0,
|
||||||
|
"balance": 0.5,
|
||||||
|
"enabled": true,
|
||||||
|
"muted": false,
|
||||||
|
"push-to-mute": false,
|
||||||
|
"push-to-mute-delay": 0,
|
||||||
|
"push-to-talk": false,
|
||||||
|
"push-to-talk-delay": 0,
|
||||||
|
"hotkeys": {
|
||||||
|
"OBSBasic.SelectScene": []
|
||||||
|
},
|
||||||
|
"deinterlace_mode": 0,
|
||||||
|
"deinterlace_field_order": 0,
|
||||||
|
"monitoring_type": 0,
|
||||||
|
"canvas_uuid": "6c69626f-6273-4c00-9d88-c5136d61696e",
|
||||||
|
"private_settings": {}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -173,23 +173,25 @@ export function useSmartPolling(
|
||||||
}, [callback]);
|
}, [callback]);
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
|
// Clear any existing interval before setting up a new one
|
||||||
|
if (intervalRef.current) {
|
||||||
|
clearInterval(intervalRef.current);
|
||||||
|
intervalRef.current = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (isVisible) {
|
if (isVisible) {
|
||||||
// Start polling when visible
|
// Start polling when visible
|
||||||
callbackRef.current();
|
callbackRef.current();
|
||||||
intervalRef.current = setInterval(() => {
|
intervalRef.current = setInterval(() => {
|
||||||
callbackRef.current();
|
callbackRef.current();
|
||||||
}, interval);
|
}, interval);
|
||||||
} else {
|
|
||||||
// Stop polling when not visible
|
|
||||||
if (intervalRef.current) {
|
|
||||||
clearInterval(intervalRef.current);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
if (intervalRef.current) {
|
if (intervalRef.current) {
|
||||||
clearInterval(intervalRef.current);
|
clearInterval(intervalRef.current);
|
||||||
|
intervalRef.current = null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, [interval, isVisible, dependencies]);
|
}, [interval, isVisible, ...dependencies]);
|
||||||
}
|
}
|
|
@ -21,7 +21,10 @@ export function middleware(request: NextRequest) {
|
||||||
// Skip authentication for localhost/internal requests (optional security)
|
// Skip authentication for localhost/internal requests (optional security)
|
||||||
const host = request.headers.get('host');
|
const host = request.headers.get('host');
|
||||||
if (host && (host.startsWith('localhost') || host.startsWith('127.0.0.1') || host.startsWith('192.168.'))) {
|
if (host && (host.startsWith('localhost') || host.startsWith('127.0.0.1') || host.startsWith('192.168.'))) {
|
||||||
console.log('Allowing internal network access without API key');
|
// Don't log for frequently polled endpoints to reduce noise
|
||||||
|
if (!request.nextUrl.pathname.includes('/api/obsStatus')) {
|
||||||
|
console.log('Allowing internal network access without API key');
|
||||||
|
}
|
||||||
return NextResponse.next();
|
return NextResponse.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue