mirror of
https://github.com/DerTyp7/obs-twitch-camera-frame.git
synced 2025-10-31 21:57:11 +01:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
832aa9beb0 | ||
|
|
7bb209a8d6 | ||
|
|
85501820f1 | ||
|
|
b12a9742f1 | ||
|
|
9de4c7fc03 | ||
|
|
d198699844 | ||
|
|
b5889e7b0a | ||
|
|
6936eaf689 | ||
|
|
1fbd632a30 | ||
|
|
493e85684d |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
config.js
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
const CONFIG = {
|
const CONFIG = {
|
||||||
apiKey: "1e8d3bcbc24f95e64672521ccdcf6020e2d64d30",
|
apiKey: "",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -16,10 +16,10 @@ function updateSubCount() {
|
|||||||
|
|
||||||
function sub(subName) {
|
function sub(subName) {
|
||||||
frame.style.animationName = "subAnimation";
|
frame.style.animationName = "subAnimation";
|
||||||
frame.style.animationDuration = "2s";
|
frame.style.animationDuration = "11s";
|
||||||
|
|
||||||
subCount.style.animationName = "backgroundSubAnimation";
|
subCount.style.animationName = "backgroundSubAnimation";
|
||||||
subCount.style.animationDuration = "2s";
|
subCount.style.animationDuration = "11s";
|
||||||
|
|
||||||
subCount.innerText = subName + " " + subCountNumber;
|
subCount.innerText = subName + " " + subCountNumber;
|
||||||
|
|
||||||
@@ -31,6 +31,6 @@ function sub(subName) {
|
|||||||
subCount.style.animationDuration = "20s";
|
subCount.style.animationDuration = "20s";
|
||||||
subCount.innerText = subCountNumber;
|
subCount.innerText = subCountNumber;
|
||||||
updateSubCount();
|
updateSubCount();
|
||||||
}, 2000);
|
}, 11000);
|
||||||
}
|
}
|
||||||
updateSubCount();
|
updateSubCount();
|
||||||
|
|||||||
5
readme.md
Normal file
5
readme.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# A Twtich camera frame for OBS
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
1. Change the `apiKey` in the file `config.js` to your [Tipeestream API-Key](https://www.tipeeestream.com/dashboard/api-key/)
|
||||||
|
2. Insert the `frame.html` as browser source in your obs
|
||||||
@@ -40,7 +40,7 @@ if ($newestVersionString -ne "") {
|
|||||||
Invoke-WebRequest -Uri "https://github.com/DerTyp876/obs-twitch-camera-frame/archive/refs/tags/$newestVersionString.zip" -OutFile "./temp/$newestVersionString.zip"
|
Invoke-WebRequest -Uri "https://github.com/DerTyp876/obs-twitch-camera-frame/archive/refs/tags/$newestVersionString.zip" -OutFile "./temp/$newestVersionString.zip"
|
||||||
Write-Output "Extracting archive..."
|
Write-Output "Extracting archive..."
|
||||||
Expand-Archive -Path "./temp/$newestVersionString.zip" -DestinationPath "./temp/"
|
Expand-Archive -Path "./temp/$newestVersionString.zip" -DestinationPath "./temp/"
|
||||||
Get-ChildItem -Path "./temp/ts5-obs-overlay-$($newestVersionString -replace 'v')" -Recurse | Move-Item -Destination "./"
|
Get-ChildItem -Path "./temp/obs-twitch-camera-frame-$($newestVersionString -replace 'v')" -Recurse | Move-Item -Destination "./"
|
||||||
|
|
||||||
Remove-Item "./temp" -Recurse -Force -Confirm
|
Remove-Item "./temp" -Recurse -Force -Confirm
|
||||||
|
|
||||||
@@ -50,6 +50,5 @@ if ($newestVersionString -ne "") {
|
|||||||
else {
|
else {
|
||||||
Write-Output "No new version found!"
|
Write-Output "No new version found!"
|
||||||
}
|
}
|
||||||
|
Write-Output "You need to add your API-Key again to the config.js!"
|
||||||
|
pause
|
||||||
|
|
||||||
Reference in New Issue
Block a user