mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Merge branch '4.x-current' into fix/imageformats
This commit is contained in:
commit
344f7c33e4
4
.github/workflows/pr_push.yml
vendored
4
.github/workflows/pr_push.yml
vendored
@ -18,8 +18,8 @@ jobs:
|
|||||||
runs-on: [windows-latest]
|
runs-on: [windows-latest]
|
||||||
if: contains(github.event.head_commit.message, '[skip ci]') != true
|
if: contains(github.event.head_commit.message, '[skip ci]') != true
|
||||||
env:
|
env:
|
||||||
QT_VERSION: '5.10.1'
|
QT_VERSION: '5.15.2'
|
||||||
WINDOWS_DEPS_VERSION: '2017'
|
WINDOWS_DEPS_VERSION: '2019'
|
||||||
CMAKE_GENERATOR: "Visual Studio 16 2019"
|
CMAKE_GENERATOR: "Visual Studio 16 2019"
|
||||||
CMAKE_SYSTEM_VERSION: "10.0"
|
CMAKE_SYSTEM_VERSION: "10.0"
|
||||||
steps:
|
steps:
|
||||||
|
4
.github/workflows/tag_release.yml
vendored
4
.github/workflows/tag_release.yml
vendored
@ -12,8 +12,8 @@ jobs:
|
|||||||
name: 'Windows 32+64bit'
|
name: 'Windows 32+64bit'
|
||||||
runs-on: [windows-latest]
|
runs-on: [windows-latest]
|
||||||
env:
|
env:
|
||||||
QT_VERSION: '5.10.1'
|
QT_VERSION: '5.15.2'
|
||||||
WINDOWS_DEPS_VERSION: '2017'
|
WINDOWS_DEPS_VERSION: '2019'
|
||||||
CMAKE_GENERATOR: "Visual Studio 16 2019"
|
CMAKE_GENERATOR: "Visual Studio 16 2019"
|
||||||
CMAKE_SYSTEM_VERSION: "10.0"
|
CMAKE_SYSTEM_VERSION: "10.0"
|
||||||
steps:
|
steps:
|
||||||
|
10
BUILDING.md
10
BUILDING.md
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
You'll need [Qt 5.10.x](https://download.qt.io/official_releases/qt/5.10/),
|
You'll need [Qt 5.15.2](https://download.qt.io/official_releases/qt/5.15/5.15.2/),
|
||||||
[CMake](https://cmake.org/download/) and a working [OBS Studio development environment](https://obsproject.com/wiki/install-instructions) installed on your
|
[CMake](https://cmake.org/download/) and a working [OBS Studio development environment](https://obsproject.com/wiki/install-instructions) installed on your
|
||||||
computer.
|
computer.
|
||||||
|
|
||||||
@ -53,10 +53,10 @@ look for issues or specificities.
|
|||||||
```shell
|
```shell
|
||||||
git clone --recursive https://github.com/Palakis/obs-websocket.git
|
git clone --recursive https://github.com/Palakis/obs-websocket.git
|
||||||
cd obs-websocket
|
cd obs-websocket
|
||||||
./CI/install-dependencies-macos.sh
|
./CI/macos/install-dependencies-macos.sh
|
||||||
./CI/install-build-obs-macos.sh
|
./CI/macos/install-build-obs-macos.sh
|
||||||
./CI/build-macos.sh
|
./CI/macos/build-plugin-macos.sh
|
||||||
./CI/package-macos.sh
|
./CI/macos/package-plugin-macos.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
This will result in a ready-to-use `obs-websocket.pkg` installer in the `release` subfolder.
|
This will result in a ready-to-use `obs-websocket.pkg` installer in the `release` subfolder.
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
if not exist %DepsBasePath% (
|
|
||||||
curl -o %DepsBasePath%.zip -kLO https://obsproject.com/downloads/dependencies2017.zip -f --retry 5 -C -
|
|
||||||
7z x %DepsBasePath%.zip -o%DepsBasePath%
|
|
||||||
) else (
|
|
||||||
echo "OBS dependencies are already there. Download skipped."
|
|
||||||
)
|
|
@ -1,42 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
OSTYPE=$(uname)
|
|
||||||
|
|
||||||
if [ "${OSTYPE}" != "Darwin" ]; then
|
|
||||||
echo "[obs-websocket - Error] macOS obs-studio build script can be run on Darwin-type OS only."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
HAS_CMAKE=$(type cmake 2>/dev/null)
|
|
||||||
HAS_GIT=$(type git 2>/dev/null)
|
|
||||||
|
|
||||||
if [ "${HAS_CMAKE}" = "" ]; then
|
|
||||||
echo "[obs-websocket - Error] CMake not installed - please run 'install-dependencies-macos.sh' first."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${HAS_GIT}" = "" ]; then
|
|
||||||
echo "[obs-websocket - Error] Git not installed - please install Xcode developer tools or via Homebrew."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "[obs-websocket] Downloading and unpacking OBS dependencies"
|
|
||||||
wget --quiet --retry-connrefused --waitretry=1 https://obs-nightly.s3.amazonaws.com/osx-deps-2018-08-09.tar.gz
|
|
||||||
tar -xf ./osx-deps-2018-08-09.tar.gz -C /tmp
|
|
||||||
|
|
||||||
# Build obs-studio
|
|
||||||
cd ..
|
|
||||||
echo "[obs-websocket] Cloning obs-studio from GitHub.."
|
|
||||||
git clone https://github.com/obsproject/obs-studio
|
|
||||||
cd obs-studio
|
|
||||||
OBSLatestTag=$(git describe --tags --abbrev=0)
|
|
||||||
git checkout $OBSLatestTag
|
|
||||||
mkdir build && cd build
|
|
||||||
echo "[obs-websocket] Building obs-studio.."
|
|
||||||
cmake .. \
|
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.11 \
|
|
||||||
-DDISABLE_PLUGINS=true \
|
|
||||||
-DENABLE_SCRIPTING=0 \
|
|
||||||
-DDepsPath=/tmp/obsdeps \
|
|
||||||
-DCMAKE_PREFIX_PATH=/usr/local/opt/qt/lib/cmake \
|
|
||||||
&& make -j4
|
|
@ -1,56 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
OSTYPE=$(uname)
|
|
||||||
|
|
||||||
if [ "${OSTYPE}" != "Darwin" ]; then
|
|
||||||
echo "[obs-websocket - Error] macOS install dependencies script can be run on Darwin-type OS only."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
HAS_BREW=$(type brew 2>/dev/null)
|
|
||||||
|
|
||||||
if [ "${HAS_BREW}" = "" ]; then
|
|
||||||
echo "[obs-websocket - Error] Please install Homebrew (https://www.brew.sh/) to build obs-websocket on macOS."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# OBS Studio deps
|
|
||||||
echo "[obs-websocket] Updating Homebrew.."
|
|
||||||
brew update >/dev/null
|
|
||||||
echo "[obs-websocket] Checking installed Homebrew formulas.."
|
|
||||||
BREW_PACKAGES=$(brew list)
|
|
||||||
BREW_DEPENDENCIES="jack speexdsp ccache swig mbedtls"
|
|
||||||
|
|
||||||
for DEPENDENCY in ${BREW_DEPENDENCIES}; do
|
|
||||||
if echo "${BREW_PACKAGES}" | grep -q "^${DEPENDENCY}\$"; then
|
|
||||||
echo "[obs-websocket] Upgrading OBS-Studio dependency '${DEPENDENCY}'.."
|
|
||||||
brew upgrade ${DEPENDENCY} 2>/dev/null
|
|
||||||
else
|
|
||||||
echo "[obs-websocket] Installing OBS-Studio dependency '${DEPENDENCY}'.."
|
|
||||||
brew install ${DEPENDENCY} 2>/dev/null
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# qtwebsockets deps
|
|
||||||
echo "[obs-websocket] Installing obs-websocket dependency 'QT 5.10.1'.."
|
|
||||||
|
|
||||||
brew install ./CI/macos/qt.rb
|
|
||||||
|
|
||||||
# Pin this version of QT5 to avoid `brew upgrade`
|
|
||||||
# upgrading it to incompatible version
|
|
||||||
brew pin qt
|
|
||||||
|
|
||||||
# Fetch and install Packages app
|
|
||||||
# =!= NOTICE =!=
|
|
||||||
# Installs a LaunchDaemon under /Library/LaunchDaemons/fr.whitebox.packages.build.dispatcher.plist
|
|
||||||
# =!= NOTICE =!=
|
|
||||||
|
|
||||||
HAS_PACKAGES=$(type packagesbuild 2>/dev/null)
|
|
||||||
|
|
||||||
if [ "${HAS_PACKAGES}" = "" ]; then
|
|
||||||
echo "[obs-websocket] Installing Packaging app (might require password due to 'sudo').."
|
|
||||||
curl -o './Packages.pkg' --retry-connrefused -s --retry-delay 1 'https://s3-us-west-2.amazonaws.com/obs-nightly/Packages.pkg'
|
|
||||||
sudo installer -pkg ./Packages.pkg -target /
|
|
||||||
fi
|
|
@ -1,8 +0,0 @@
|
|||||||
if not exist %QtBaseDir% (
|
|
||||||
curl -kLO https://cdn-fastly.obsproject.com/downloads/Qt_5.10.1.7z -f --retry 5 -z Qt_5.10.1.7z
|
|
||||||
7z x Qt_5.10.1.7z -o%QtBaseDir%
|
|
||||||
) else (
|
|
||||||
echo "Qt is already installed. Download skipped."
|
|
||||||
)
|
|
||||||
|
|
||||||
dir %QtBaseDir%
|
|
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
echo "[obs-websocket] Running CMake.."
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_UBUNTU_FIX=true ..
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_UBUNTU_FIX=true ..
|
||||||
|
|
||||||
|
echo "[obs-websocket] Building plugin.."
|
||||||
make -j4
|
make -j4
|
@ -1,9 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
echo "[obs-websocket] Installing obs-studio PPA and updates.."
|
||||||
sudo add-apt-repository -y ppa:obsproject/obs-studio
|
sudo add-apt-repository -y ppa:obsproject/obs-studio
|
||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
|
|
||||||
|
echo "[obs-websocket] Installing obs-studio and dependencies.."
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
libc-dev-bin \
|
libc-dev-bin \
|
||||||
libc6-dev git \
|
libc6-dev git \
|
||||||
@ -13,7 +15,12 @@ sudo apt-get install -y \
|
|||||||
obs-studio \
|
obs-studio \
|
||||||
qtbase5-dev
|
qtbase5-dev
|
||||||
|
|
||||||
|
echo "[obs-websocket] Installed OBS Version: $(obs --version)"
|
||||||
|
|
||||||
|
ls /usr/include/
|
||||||
|
ls /usr/include/obs/
|
||||||
|
|
||||||
# Dirty hack
|
# Dirty hack
|
||||||
sudo wget -O /usr/include/obs/obs-frontend-api.h https://raw.githubusercontent.com/obsproject/obs-studio/26.0.0/UI/obs-frontend-api/obs-frontend-api.h
|
sudo wget -O /usr/include/obs/obs-frontend-api.h https://raw.githubusercontent.com/obsproject/obs-studio/26.1.2/UI/obs-frontend-api/obs-frontend-api.h
|
||||||
|
|
||||||
sudo ldconfig
|
sudo ldconfig
|
@ -7,7 +7,7 @@ export PKG_VERSION="1-$GIT_HASH-$BRANCH_SHORT_NAME-git"
|
|||||||
|
|
||||||
if [[ $BRANCH_FULL_NAME =~ ^refs/tags/ ]]; then
|
if [[ $BRANCH_FULL_NAME =~ ^refs/tags/ ]]; then
|
||||||
export PKG_VERSION="$BRANCH_SHORT_NAME"
|
export PKG_VERSION="$BRANCH_SHORT_NAME"
|
||||||
echo "[obs-websocket] Branch is a tag. Setting version to $PKG_VERSION."
|
echo "[obs-websocket] Branch is a tag. Setting version to $PKG_VERSION."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ./build
|
cd ./build
|
||||||
@ -18,7 +18,7 @@ PAGER="cat" sudo checkinstall -y --type=debian --fstrans=no --nodoc \
|
|||||||
--pkglicense="GPLv2.0" --maintainer="stephane.lepin@gmail.com" \
|
--pkglicense="GPLv2.0" --maintainer="stephane.lepin@gmail.com" \
|
||||||
--pkggroup="video" \
|
--pkggroup="video" \
|
||||||
--pkgsource="https://github.com/Palakis/obs-websocket" \
|
--pkgsource="https://github.com/Palakis/obs-websocket" \
|
||||||
--requires="obs-studio \(\>= 25.0.7\), libqt5core5a, libqt5widgets5, qt5-image-formats-plugins" \
|
--requires="obs-studio \(\>= 26.1.0\), libqt5core5a, libqt5widgets5, qt5-image-formats-plugins" \
|
||||||
--pakdir="../package"
|
--pakdir="../package"
|
||||||
|
|
||||||
sudo chmod ao+r ../package/*
|
sudo chmod ao+r ../package/*
|
@ -1,10 +1,5 @@
|
|||||||
tap "akeru-inc/tap"
|
|
||||||
brew "jack"
|
brew "jack"
|
||||||
brew "speexdsp"
|
brew "speexdsp"
|
||||||
brew "cmake"
|
brew "cmake"
|
||||||
brew "freetype"
|
brew "freetype"
|
||||||
brew "fdk-aac"
|
brew "fdk-aac"
|
||||||
brew "https://gist.githubusercontent.com/DDRBoxman/9c7a2b08933166f4b61ed9a44b242609/raw/ef4de6c587c6bd7f50210eccd5bd51ff08e6de13/qt.rb"
|
|
||||||
brew "swig", link: false
|
|
||||||
brew "https://gist.githubusercontent.com/DDRBoxman/4cada55c51803a2f963fa40ce55c9d3e/raw/572c67e908bfbc1bcb8c476ea77ea3935133f5b5/swig.rb"
|
|
||||||
brew "akeru-inc/tap/xcnotary"
|
|
@ -3,23 +3,21 @@
|
|||||||
OSTYPE=$(uname)
|
OSTYPE=$(uname)
|
||||||
|
|
||||||
if [ "${OSTYPE}" != "Darwin" ]; then
|
if [ "${OSTYPE}" != "Darwin" ]; then
|
||||||
echo "[obs-websocket - Error] macOS build script can be run on Darwin-type OS only."
|
echo "[obs-websocket - Error] macOS build script can be run on Darwin-type OS only."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HAS_CMAKE=$(type cmake 2>/dev/null)
|
HAS_CMAKE=$(type cmake 2>/dev/null)
|
||||||
|
|
||||||
if [ "${HAS_CMAKE}" = "" ]; then
|
if [ "${HAS_CMAKE}" = "" ]; then
|
||||||
echo "[obs-websocket - Error] CMake not installed - please run 'install-dependencies-macos.sh' first."
|
echo "[obs-websocket - Error] CMake not installed - please run 'install-dependencies-macos.sh' first."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#export QT_PREFIX="$(find /usr/local/Cellar/qt5 -d 1 | tail -n 1)"
|
|
||||||
|
|
||||||
echo "[obs-websocket] Building 'obs-websocket' for macOS."
|
echo "[obs-websocket] Building 'obs-websocket' for macOS."
|
||||||
mkdir -p build && cd build
|
mkdir -p build && cd build
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DQTDIR=/usr/local/opt/qt \
|
-DQTDIR=/tmp/obsdeps \
|
||||||
-DLIBOBS_INCLUDE_DIR=../../obs-studio/libobs \
|
-DLIBOBS_INCLUDE_DIR=../../obs-studio/libobs \
|
||||||
-DLIBOBS_LIB=../../obs-studio/libobs \
|
-DLIBOBS_LIB=../../obs-studio/libobs \
|
||||||
-DOBS_FRONTEND_LIB="$(pwd)/../../obs-studio/build/UI/obs-frontend-api/libobs-frontend-api.dylib" \
|
-DOBS_FRONTEND_LIB="$(pwd)/../../obs-studio/build/UI/obs-frontend-api/libobs-frontend-api.dylib" \
|
39
CI/macos/install-build-obs-macos.sh
Executable file
39
CI/macos/install-build-obs-macos.sh
Executable file
@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
OSTYPE=$(uname)
|
||||||
|
|
||||||
|
if [ "${OSTYPE}" != "Darwin" ]; then
|
||||||
|
echo "[obs-websocket - Error] macOS obs-studio build script can be run on Darwin-type OS only."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
HAS_CMAKE=$(type cmake 2>/dev/null)
|
||||||
|
HAS_GIT=$(type git 2>/dev/null)
|
||||||
|
|
||||||
|
if [ "${HAS_CMAKE}" = "" ]; then
|
||||||
|
echo "[obs-websocket - Error] CMake not installed - please run 'install-dependencies-macos.sh' first."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${HAS_GIT}" = "" ]; then
|
||||||
|
echo "[obs-websocket - Error] Git not installed - please install Xcode developer tools or via Homebrew."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Build obs-studio
|
||||||
|
cd ..
|
||||||
|
echo "[obs-websocket] Cloning obs-studio from GitHub.."
|
||||||
|
git clone https://github.com/obsproject/obs-studio
|
||||||
|
cd obs-studio
|
||||||
|
OBSLatestTag=$(git describe --tags --abbrev=0)
|
||||||
|
git checkout $OBSLatestTag
|
||||||
|
mkdir build && cd build
|
||||||
|
echo "[obs-websocket] Building obs-studio.."
|
||||||
|
cmake .. \
|
||||||
|
-DQTDIR=/tmp/obsdeps \
|
||||||
|
-DDepsPath=/tmp/obsdeps \
|
||||||
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \
|
||||||
|
-DDISABLE_PLUGINS=true \
|
||||||
|
-DENABLE_SCRIPTING=0 \
|
||||||
|
-DCMAKE_PREFIX_PATH=/tmp/obsdeps/lib/cmake \
|
||||||
|
&& make -j4
|
57
CI/macos/install-dependencies-macos.sh
Executable file
57
CI/macos/install-dependencies-macos.sh
Executable file
@ -0,0 +1,57 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
OSTYPE=$(uname)
|
||||||
|
|
||||||
|
if [ "${OSTYPE}" != "Darwin" ]; then
|
||||||
|
echo "[obs-websocket - Error] macOS install dependencies script can be run on Darwin-type OS only."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
HAS_BREW=$(type brew 2>/dev/null)
|
||||||
|
|
||||||
|
if [ "${HAS_BREW}" = "" ]; then
|
||||||
|
echo "[obs-websocket - Error] Please install Homebrew (https://www.brew.sh/) to build obs-websocket on macOS."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# OBS Studio Brew Deps
|
||||||
|
echo "[obs-websocket] Updating Homebrew.."
|
||||||
|
brew update >/dev/null
|
||||||
|
echo "[obs-websocket] Checking installed Homebrew formulas.."
|
||||||
|
|
||||||
|
if [ -d /usr/local/opt/openssl@1.0.2t ]; then
|
||||||
|
brew uninstall openssl@1.0.2t
|
||||||
|
brew untap local/openssl
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d /usr/local/opt/python@2.7.17 ]; then
|
||||||
|
brew uninstall python@2.7.17
|
||||||
|
brew untap local/python2
|
||||||
|
fi
|
||||||
|
|
||||||
|
brew bundle --file ./CI/macos/Brewfile
|
||||||
|
|
||||||
|
# Fetch and install Packages app
|
||||||
|
# =!= NOTICE =!=
|
||||||
|
# Installs a LaunchDaemon under /Library/LaunchDaemons/fr.whitebox.packages.build.dispatcher.plist
|
||||||
|
# =!= NOTICE =!=
|
||||||
|
|
||||||
|
HAS_PACKAGES=$(type packagesbuild 2>/dev/null)
|
||||||
|
|
||||||
|
if [ "${HAS_PACKAGES}" = "" ]; then
|
||||||
|
echo "[obs-websocket] Installing Packaging app (might require password due to 'sudo').."
|
||||||
|
curl -L -O http://s.sudre.free.fr/Software/files/Packages.dmg
|
||||||
|
sudo hdiutil attach ./Packages.dmg
|
||||||
|
sudo installer -pkg /Volumes/Packages\ 1.2.9/Install\ Packages.pkg -target /
|
||||||
|
fi
|
||||||
|
|
||||||
|
# OBS Deps
|
||||||
|
echo "[obs-websocket] Installing obs-websocket dependency 'OBS Deps ${OBS_DEPS_VERSION}'.."
|
||||||
|
wget --quiet --retry-connrefused --waitretry=1 https://github.com/obsproject/obs-deps/releases/download/${OBS_DEPS_VERSION}/macos-deps-${OBS_DEPS_VERSION}.tar.gz
|
||||||
|
tar -xf ./macos-deps-${OBS_DEPS_VERSION}.tar.gz -C /tmp
|
||||||
|
|
||||||
|
# Qt deps
|
||||||
|
echo "[obs-websocket] Installing obs-websocket dependency 'Qt ${QT_VERSION}'.."
|
||||||
|
curl -L -O https://github.com/obsproject/obs-deps/releases/download/${OBS_DEPS_VERSION}/macos-qt-${QT_VERSION}-${OBS_DEPS_VERSION}.tar.gz
|
||||||
|
tar -xf ./macos-qt-${QT_VERSION}-${OBS_DEPS_VERSION}.tar.gz -C "/tmp"
|
||||||
|
xattr -r -d com.apple.quarantine /tmp/obsdeps
|
@ -5,12 +5,11 @@ set -e
|
|||||||
OSTYPE=$(uname)
|
OSTYPE=$(uname)
|
||||||
|
|
||||||
if [ "${OSTYPE}" != "Darwin" ]; then
|
if [ "${OSTYPE}" != "Darwin" ]; then
|
||||||
echo "[obs-websocket - Error] macOS package script can be run on Darwin-type OS only."
|
echo "[obs-websocket - Error] macOS package script can be run on Darwin-type OS only."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[obs-websocket] Preparing package build"
|
echo "[obs-websocket] Preparing package build"
|
||||||
export QT_CELLAR_PREFIX="$(/usr/bin/find /usr/local/Cellar/qt -d 1 | sort -t '.' -k 1,1n -k 2,2n -k 3,3n | tail -n 1)"
|
|
||||||
|
|
||||||
GIT_HASH=$(git rev-parse --short HEAD)
|
GIT_HASH=$(git rev-parse --short HEAD)
|
||||||
GIT_BRANCH_OR_TAG=$(git name-rev --name-only HEAD | awk -F/ '{print $NF}')
|
GIT_BRANCH_OR_TAG=$(git name-rev --name-only HEAD | awk -F/ '{print $NF}')
|
||||||
@ -20,13 +19,13 @@ VERSION="$GIT_HASH-$GIT_BRANCH_OR_TAG"
|
|||||||
FILENAME_UNSIGNED="obs-websocket-$VERSION-Unsigned.pkg"
|
FILENAME_UNSIGNED="obs-websocket-$VERSION-Unsigned.pkg"
|
||||||
FILENAME="obs-websocket-$VERSION.pkg"
|
FILENAME="obs-websocket-$VERSION.pkg"
|
||||||
|
|
||||||
echo "[obs-websocket] Modifying obs-websocket.so"
|
echo "[obs-websocket] Modifying obs-websocket.so linking"
|
||||||
install_name_tool \
|
install_name_tool \
|
||||||
-change /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets \
|
-change /tmp/obsdeps/lib/QtWidgets.framework/Versions/5/QtWidgets \
|
||||||
@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets \
|
@executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets \
|
||||||
-change /usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtGui \
|
-change /tmp/obsdeps/lib/QtGui.framework/Versions/5/QtGui \
|
||||||
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui \
|
@executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui \
|
||||||
-change /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore \
|
-change /tmp/obsdeps/lib/QtCore.framework/Versions/5/QtCore \
|
||||||
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore \
|
@executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore \
|
||||||
./build/obs-websocket.so
|
./build/obs-websocket.so
|
||||||
|
|
145
CI/macos/qt.rb
145
CI/macos/qt.rb
@ -1,145 +0,0 @@
|
|||||||
# Patches for Qt must be at the very least submitted to Qt's Gerrit codereview
|
|
||||||
# rather than their bug-report Jira. The latter is rarely reviewed by Qt.
|
|
||||||
class Qt < Formula
|
|
||||||
desc "Cross-platform application and UI framework"
|
|
||||||
homepage "https://www.qt.io/"
|
|
||||||
url "https://download.qt.io/official_releases/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz"
|
|
||||||
mirror "https://www.mirrorservice.org/sites/download.qt-project.org/official_releases/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz"
|
|
||||||
sha256 "05ffba7b811b854ed558abf2be2ddbd3bb6ddd0b60ea4b5da75d277ac15e740a"
|
|
||||||
head "https://code.qt.io/qt/qt5.git", :branch => "5.10", :shallow => false
|
|
||||||
|
|
||||||
bottle do
|
|
||||||
sha256 "8b4bad005596a5f8790150fe455db998ac2406f4e0f04140d6656205d844d266" => :high_sierra
|
|
||||||
sha256 "9c488554935fb573554a4e36d36d3c81e47245b7fefc4b61edef894e67ba1740" => :sierra
|
|
||||||
sha256 "c0407afba5951df6cc4c6f6c1c315972bd41c99cecb4e029919c4c15ab6f7bdc" => :el_capitan
|
|
||||||
end
|
|
||||||
|
|
||||||
keg_only "Qt 5 has CMake issues when linked"
|
|
||||||
|
|
||||||
option "with-docs", "Build documentation"
|
|
||||||
option "with-examples", "Build examples"
|
|
||||||
option "without-proprietary-codecs", "Don't build with proprietary codecs (e.g. mp3)"
|
|
||||||
|
|
||||||
# OS X 10.7 Lion is still supported in Qt 5.5, but is no longer a reference
|
|
||||||
# configuration and thus untested in practice. Builds on OS X 10.7 have been
|
|
||||||
# reported to fail: <https://github.com/Homebrew/homebrew/issues/45284>.
|
|
||||||
# depends_on :macos => :mountain_lion
|
|
||||||
|
|
||||||
depends_on "pkg-config" => :build
|
|
||||||
depends_on :xcode => :build
|
|
||||||
depends_on "mysql" => :optional
|
|
||||||
depends_on "postgresql" => :optional
|
|
||||||
|
|
||||||
# Restore `.pc` files for framework-based build of Qt 5 on OS X. This
|
|
||||||
# partially reverts <https://codereview.qt-project.org/#/c/140954/> merged
|
|
||||||
# between the 5.5.1 and 5.6.0 releases. (Remove this as soon as feasible!)
|
|
||||||
#
|
|
||||||
# Core formulae known to fail without this patch (as of 2016-10-15):
|
|
||||||
# * gnuplot (with `--with-qt` option)
|
|
||||||
# * mkvtoolnix (with `--with-qt` option, silent build failure)
|
|
||||||
# * poppler (with `--with-qt` option)
|
|
||||||
patch do
|
|
||||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/e8fe6567/qt5/restore-pc-files.patch"
|
|
||||||
sha256 "48ff18be2f4050de7288bddbae7f47e949512ac4bcd126c2f504be2ac701158b"
|
|
||||||
end
|
|
||||||
|
|
||||||
def install
|
|
||||||
args = %W[
|
|
||||||
-verbose
|
|
||||||
-prefix #{prefix}
|
|
||||||
-release
|
|
||||||
-opensource -confirm-license
|
|
||||||
-system-zlib
|
|
||||||
-qt-libpng
|
|
||||||
-qt-libjpeg
|
|
||||||
-qt-freetype
|
|
||||||
-qt-pcre
|
|
||||||
-nomake tests
|
|
||||||
-no-rpath
|
|
||||||
-pkg-config
|
|
||||||
-dbus-runtime
|
|
||||||
]
|
|
||||||
|
|
||||||
args << "-nomake" << "examples" if build.without? "examples"
|
|
||||||
|
|
||||||
if build.with? "mysql"
|
|
||||||
args << "-plugin-sql-mysql"
|
|
||||||
(buildpath/"brew_shim/mysql_config").write <<~EOS
|
|
||||||
#!/bin/sh
|
|
||||||
if [ x"$1" = x"--libs" ]; then
|
|
||||||
mysql_config --libs | sed "s/-lssl -lcrypto//"
|
|
||||||
else
|
|
||||||
exec mysql_config "$@"
|
|
||||||
fi
|
|
||||||
EOS
|
|
||||||
chmod 0755, "brew_shim/mysql_config"
|
|
||||||
args << "-mysql_config" << buildpath/"brew_shim/mysql_config"
|
|
||||||
end
|
|
||||||
|
|
||||||
args << "-plugin-sql-psql" if build.with? "postgresql"
|
|
||||||
args << "-proprietary-codecs" if build.with? "proprietary-codecs"
|
|
||||||
|
|
||||||
system "./configure", *args
|
|
||||||
system "make"
|
|
||||||
ENV.deparallelize
|
|
||||||
system "make", "install"
|
|
||||||
|
|
||||||
if build.with? "docs"
|
|
||||||
system "make", "docs"
|
|
||||||
system "make", "install_docs"
|
|
||||||
end
|
|
||||||
|
|
||||||
# Some config scripts will only find Qt in a "Frameworks" folder
|
|
||||||
frameworks.install_symlink Dir["#{lib}/*.framework"]
|
|
||||||
|
|
||||||
# The pkg-config files installed suggest that headers can be found in the
|
|
||||||
# `include` directory. Make this so by creating symlinks from `include` to
|
|
||||||
# the Frameworks' Headers folders.
|
|
||||||
Pathname.glob("#{lib}/*.framework/Headers") do |path|
|
|
||||||
include.install_symlink path => path.parent.basename(".framework")
|
|
||||||
end
|
|
||||||
|
|
||||||
# Move `*.app` bundles into `libexec` to expose them to `brew linkapps` and
|
|
||||||
# because we don't like having them in `bin`.
|
|
||||||
# (Note: This move breaks invocation of Assistant via the Help menu
|
|
||||||
# of both Designer and Linguist as that relies on Assistant being in `bin`.)
|
|
||||||
libexec.mkpath
|
|
||||||
Pathname.glob("#{bin}/*.app") { |app| mv app, libexec }
|
|
||||||
end
|
|
||||||
|
|
||||||
def caveats; <<~EOS
|
|
||||||
We agreed to the Qt opensource license for you.
|
|
||||||
If this is unacceptable you should uninstall.
|
|
||||||
EOS
|
|
||||||
end
|
|
||||||
|
|
||||||
test do
|
|
||||||
(testpath/"hello.pro").write <<~EOS
|
|
||||||
QT += core
|
|
||||||
QT -= gui
|
|
||||||
TARGET = hello
|
|
||||||
CONFIG += console
|
|
||||||
CONFIG -= app_bundle
|
|
||||||
TEMPLATE = app
|
|
||||||
SOURCES += main.cpp
|
|
||||||
EOS
|
|
||||||
|
|
||||||
(testpath/"main.cpp").write <<~EOS
|
|
||||||
#include <QCoreApplication>
|
|
||||||
#include <QDebug>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
QCoreApplication a(argc, argv);
|
|
||||||
qDebug() << "Hello World!";
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EOS
|
|
||||||
|
|
||||||
system bin/"qmake", testpath/"hello.pro"
|
|
||||||
system "make"
|
|
||||||
assert_predicate testpath/"hello", :exist?
|
|
||||||
assert_predicate testpath/"main.o", :exist?
|
|
||||||
system "./hello"
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,37 +0,0 @@
|
|||||||
|
|
||||||
@echo off
|
|
||||||
SETLOCAL EnableDelayedExpansion
|
|
||||||
|
|
||||||
REM If obs-studio directory does not exist, clone the git repo
|
|
||||||
if not exist %OBSPath% (
|
|
||||||
echo obs-studio directory does not exist
|
|
||||||
git clone https://github.com/obsproject/obs-studio %OBSPath%
|
|
||||||
cd /D %OBSPath%\
|
|
||||||
git describe --tags --abbrev=0 --exclude="*-rc*" > "%OBSPath%\obs-studio-latest-tag.txt"
|
|
||||||
set /p OBSLatestTag=<"%OBSPath%\obs-studio-latest-tag.txt"
|
|
||||||
)
|
|
||||||
|
|
||||||
REM Prepare OBS Studio builds
|
|
||||||
|
|
||||||
echo Running CMake...
|
|
||||||
cd /D %OBSPath%
|
|
||||||
echo git checkout %OBSLatestTag%
|
|
||||||
git checkout %OBSLatestTag%
|
|
||||||
echo:
|
|
||||||
|
|
||||||
if not exist build32 mkdir build32
|
|
||||||
if not exist build64 mkdir build64
|
|
||||||
|
|
||||||
echo Running cmake for obs-studio %OBSLatestTag% 32-bit...
|
|
||||||
cd build32
|
|
||||||
cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR32%" -DDepsPath="%DepsPath32%" -DDISABLE_PLUGINS=true -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true ..
|
|
||||||
echo:
|
|
||||||
echo:
|
|
||||||
|
|
||||||
echo Running cmake for obs-studio %OBSLatestTag% 64-bit...
|
|
||||||
cd ..\build64
|
|
||||||
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR64%" -DDepsPath="%DepsPath64%" -DDISABLE_PLUGINS=true -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true ..
|
|
||||||
echo:
|
|
||||||
echo:
|
|
||||||
|
|
||||||
dir "%OBSPath%\libobs"
|
|
@ -1,7 +0,0 @@
|
|||||||
mkdir build32
|
|
||||||
mkdir build64
|
|
||||||
|
|
||||||
cd build32
|
|
||||||
cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR32%" -DLibObs_DIR="%OBSPath%\build32\libobs" -DLIBOBS_INCLUDE_DIR="%OBSPath%\libobs" -DLIBOBS_LIB="%OBSPath%\build32\libobs\%build_config%\obs.lib" -DOBS_FRONTEND_LIB="%OBSPath%\build32\UI\obs-frontend-api\%build_config%\obs-frontend-api.lib" ..
|
|
||||||
cd ..\build64
|
|
||||||
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR64%" -DLibObs_DIR="%OBSPath%\build64\libobs" -DLIBOBS_INCLUDE_DIR="%OBSPath%\libobs" -DLIBOBS_LIB="%OBSPath%\build64\libobs\%build_config%\obs.lib" -DOBS_FRONTEND_LIB="%OBSPath%\build64\UI\obs-frontend-api\%build_config%\obs-frontend-api.lib" ..
|
|
7
CI/windows/download-obs-deps.cmd
Normal file
7
CI/windows/download-obs-deps.cmd
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
if exist %DEPS_BASE_PATH% (
|
||||||
|
echo "OBS dependencies found. Download skipped."
|
||||||
|
) else (
|
||||||
|
echo "OBS dependencies not found. Downloading..."
|
||||||
|
curl -o %DEPS_BASE_PATH%.zip -kLO https://cdn-fastly.obsproject.com/downloads/dependencies2019.zip -f --retry 5 -C -
|
||||||
|
7z x %DEPS_BASE_PATH%.zip -o%DEPS_BASE_PATH%
|
||||||
|
)
|
8
CI/windows/install-qt-win.cmd
Normal file
8
CI/windows/install-qt-win.cmd
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
if exist %QT_BASE_DIR% (
|
||||||
|
echo "Qt directory found. Download skipped."
|
||||||
|
) else (
|
||||||
|
echo "Qt directory not found. Downloading..."
|
||||||
|
curl -kLO https://tt2468.net/dl/Qt_5.15.2.7z -f --retry 5 -C -
|
||||||
|
7z x Qt_5.15.2.7z -o%QT_BASE_DIR%
|
||||||
|
)
|
||||||
|
dir %QT_BASE_DIR%
|
37
CI/windows/prepare-obs-windows.cmd
Normal file
37
CI/windows/prepare-obs-windows.cmd
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
|
||||||
|
@echo off
|
||||||
|
SETLOCAL EnableDelayedExpansion
|
||||||
|
|
||||||
|
REM If obs-studio directory does not exist, clone the git repo
|
||||||
|
if not exist %OBS_PATH% (
|
||||||
|
echo obs-studio directory does not exist
|
||||||
|
git clone https://github.com/obsproject/obs-studio %OBS_PATH%
|
||||||
|
cd /D %OBS_PATH%\
|
||||||
|
git describe --tags --abbrev=0 --exclude="*-rc*" > "%OBS_PATH%\obs-studio-latest-tag.txt"
|
||||||
|
set /p OBS_LATEST_TAG=<"%OBS_PATH%\obs-studio-latest-tag.txt"
|
||||||
|
)
|
||||||
|
|
||||||
|
REM Prepare OBS Studio builds
|
||||||
|
|
||||||
|
echo Running CMake...
|
||||||
|
cd /D %OBS_PATH%
|
||||||
|
echo git checkout %OBS_LATEST_TAG%
|
||||||
|
git checkout %OBS_LATEST_TAG%
|
||||||
|
echo:
|
||||||
|
|
||||||
|
if not exist build32 mkdir build32
|
||||||
|
if not exist build64 mkdir build64
|
||||||
|
|
||||||
|
echo Running cmake for obs-studio %OBS_LATEST_TAG% 32-bit...
|
||||||
|
cd build32
|
||||||
|
cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR32%" -DDepsPath="%DEPS_PATH_32%" -DDISABLE_PLUGINS=true -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true ..
|
||||||
|
echo:
|
||||||
|
echo:
|
||||||
|
|
||||||
|
echo Running cmake for obs-studio %OBS_LATEST_TAG% 64-bit...
|
||||||
|
cd ..\build64
|
||||||
|
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR64%" -DDepsPath="%DEPS_PATH_64%" -DDISABLE_PLUGINS=true -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true ..
|
||||||
|
echo:
|
||||||
|
echo:
|
||||||
|
|
||||||
|
dir "%OBS_PATH%\libobs"
|
7
CI/windows/prepare-plugin-windows.cmd
Normal file
7
CI/windows/prepare-plugin-windows.cmd
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
mkdir build32
|
||||||
|
mkdir build64
|
||||||
|
|
||||||
|
cd build32
|
||||||
|
cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR32%" -DLibObs_DIR="%OBS_PATH%\build32\libobs" -DLIBOBS_INCLUDE_DIR="%OBS_PATH%\libobs" -DLIBOBS_LIB="%OBS_PATH%\build32\libobs\%build_config%\obs.lib" -DOBS_FRONTEND_LIB="%OBS_PATH%\build32\UI\obs-frontend-api\%build_config%\obs-frontend-api.lib" ..
|
||||||
|
cd ..\build64
|
||||||
|
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0 -DQTDIR="%QTDIR64%" -DLibObs_DIR="%OBS_PATH%\build64\libobs" -DLIBOBS_INCLUDE_DIR="%OBS_PATH%\libobs" -DLIBOBS_LIB="%OBS_PATH%\build64\libobs\%build_config%\obs.lib" -DOBS_FRONTEND_LIB="%OBS_PATH%\build64\UI\obs-frontend-api\%build_config%\obs-frontend-api.lib" ..
|
@ -33,31 +33,41 @@ jobs:
|
|||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
variables:
|
variables:
|
||||||
build_config: RelWithDebInfo
|
build_config: RelWithDebInfo
|
||||||
DepsBasePath: 'D:\obsdependencies'
|
DEPS_CACHE_VERSION: '1' # Change whenever updating OBS dependencies URL, in order to force a cache reset
|
||||||
DepsPath32: '$(DepsBasePath)\win32'
|
DEPS_BASE_PATH: 'D:\obsdependencies'
|
||||||
DepsPath64: '$(DepsBasePath)\win64'
|
DEPS_PATH_32: '$(DEPS_BASE_PATH)\win32'
|
||||||
QtBaseDir: 'D:\QtDep'
|
DEPS_PATH_64: '$(DEPS_BASE_PATH)\win64'
|
||||||
QTDIR32: '$(QtBaseDir)\5.10.1\msvc2017'
|
QT_CACHE_VERSION: '1' # Change whenever updating Qt dependency URL, in order to force a cache reset
|
||||||
QTDIR64: '$(QtBaseDir)\5.10.1\msvc2017_64'
|
QT_BASE_DIR: 'D:\QtDep'
|
||||||
OBSPath: 'D:\obs-studio'
|
QTDIR32: '$(QT_BASE_DIR)\5.15.2\msvc2019'
|
||||||
|
QTDIR64: '$(QT_BASE_DIR)\5.15.2\msvc2019_64'
|
||||||
|
OBS_PATH: 'D:\obs-studio'
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- script: ./CI/install-qt-win.cmd
|
- task: Cache@2
|
||||||
|
displayName: Restore cached Qt archive file
|
||||||
|
inputs:
|
||||||
|
key: 'qtdep-"$(QT_CACHE_VERSION)" | "$(Agent.OS)"'
|
||||||
|
restoreKeys: |
|
||||||
|
qtdep-"$(QT_CACHE_VERSION)" | "$(Agent.OS)"
|
||||||
|
path: $(QT_BASE_DIR)
|
||||||
|
|
||||||
|
- script: ./CI/windows/install-qt-win.cmd
|
||||||
displayName: 'Install Qt'
|
displayName: 'Install Qt'
|
||||||
env:
|
env:
|
||||||
QtBaseDir: $(QtBaseDir)
|
QT_BASE_DIR: $(QT_BASE_DIR)
|
||||||
|
|
||||||
- task: Cache@2
|
- task: Cache@2
|
||||||
displayName: Restore cached OBS Studio dependencies
|
displayName: Restore cached OBS Studio dependencies
|
||||||
inputs:
|
inputs:
|
||||||
key: 'obsdeps | "$(Agent.OS)"'
|
key: 'obsdeps-"$(DEPS_CACHE_VERSION)" | "$(Agent.OS)"'
|
||||||
restoreKeys: |
|
restoreKeys: |
|
||||||
obsdeps | "$(Agent.OS)"
|
obsdeps-"$(DEPS_CACHE_VERSION)" | "$(Agent.OS)"
|
||||||
path: $(DepsBasePath)
|
path: $(DEPS_BASE_PATH)
|
||||||
|
|
||||||
- script: ./CI/download-obs-deps.cmd
|
- script: ./CI/windows/download-obs-deps.cmd
|
||||||
displayName: 'Download OBS Studio dependencies'
|
displayName: 'Download OBS Studio dependencies'
|
||||||
|
|
||||||
- task: Cache@2
|
- task: Cache@2
|
||||||
@ -66,37 +76,37 @@ jobs:
|
|||||||
key: 'obs | "$(Agent.OS)"'
|
key: 'obs | "$(Agent.OS)"'
|
||||||
restoreKeys: |
|
restoreKeys: |
|
||||||
obs | "$(Agent.OS)"
|
obs | "$(Agent.OS)"
|
||||||
path: $(OBSPath)
|
path: $(OBS_PATH)
|
||||||
|
|
||||||
- script: ./CI/prepare-obs-windows.cmd
|
- script: ./CI/windows/prepare-obs-windows.cmd
|
||||||
displayName: 'Checkout & CMake OBS Studio'
|
displayName: 'Checkout & CMake OBS Studio'
|
||||||
env:
|
env:
|
||||||
build_config: $(build_config)
|
build_config: $(build_config)
|
||||||
DepsPath32: $(DepsPath32)
|
DEPS_PATH_32: $(DEPS_PATH_32)
|
||||||
DepsPath64: $(DepsPath64)
|
DEPS_PATH_64: $(DEPS_PATH_64)
|
||||||
QTDIR32: $(QTDIR32)
|
QTDIR32: $(QTDIR32)
|
||||||
QTDIR64: $(QTDIR64)
|
QTDIR64: $(QTDIR64)
|
||||||
OBSPath: $(OBSPath)
|
OBS_PATH: $(OBS_PATH)
|
||||||
|
|
||||||
- task: MSBuild@1
|
- task: MSBuild@1
|
||||||
displayName: 'Build OBS Studio 32-bit'
|
displayName: 'Build OBS Studio 32-bit'
|
||||||
inputs:
|
inputs:
|
||||||
msbuildArguments: '/m /p:Configuration=$(build_config)'
|
msbuildArguments: '/m /p:Configuration=$(build_config)'
|
||||||
solution: '$(OBSPath)\build32\obs-studio.sln'
|
solution: '$(OBS_PATH)\build32\obs-studio.sln'
|
||||||
|
|
||||||
- task: MSBuild@1
|
- task: MSBuild@1
|
||||||
displayName: 'Build OBS Studio 64-bit'
|
displayName: 'Build OBS Studio 64-bit'
|
||||||
inputs:
|
inputs:
|
||||||
msbuildArguments: '/m /p:Configuration=$(build_config)'
|
msbuildArguments: '/m /p:Configuration=$(build_config)'
|
||||||
solution: '$(OBSPath)\build64\obs-studio.sln'
|
solution: '$(OBS_PATH)\build64\obs-studio.sln'
|
||||||
|
|
||||||
- script: ./CI/prepare-windows.cmd
|
- script: ./CI/windows/prepare-plugin-windows.cmd
|
||||||
displayName: 'CMake obs-websocket'
|
displayName: 'CMake obs-websocket'
|
||||||
env:
|
env:
|
||||||
build_config: $(build_config)
|
build_config: $(build_config)
|
||||||
QTDIR32: $(QTDIR32)
|
QTDIR32: $(QTDIR32)
|
||||||
QTDIR64: $(QTDIR64)
|
QTDIR64: $(QTDIR64)
|
||||||
OBSPath: $(OBSPath)
|
OBS_PATH: $(OBS_PATH)
|
||||||
|
|
||||||
- task: MSBuild@1
|
- task: MSBuild@1
|
||||||
displayName: 'Build obs-websocket 32-bit'
|
displayName: 'Build obs-websocket 32-bit'
|
||||||
@ -110,7 +120,7 @@ jobs:
|
|||||||
msbuildArguments: '/m /p:Configuration=$(build_config)'
|
msbuildArguments: '/m /p:Configuration=$(build_config)'
|
||||||
solution: '.\build64\obs-websocket.sln'
|
solution: '.\build64\obs-websocket.sln'
|
||||||
|
|
||||||
- script: ./CI/package-windows.cmd
|
- script: ./CI/windows/package-plugin-windows.cmd
|
||||||
displayName: 'Package obs-websocket'
|
displayName: 'Package obs-websocket'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
@ -121,22 +131,21 @@ jobs:
|
|||||||
|
|
||||||
- job: 'Build_Linux'
|
- job: 'Build_Linux'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-18.04'
|
vmImage: 'ubuntu-20.04'
|
||||||
variables:
|
variables:
|
||||||
BUILD_REASON: $(Build.Reason)
|
|
||||||
BRANCH_SHORT_NAME: $(Build.SourceBranchName)
|
BRANCH_SHORT_NAME: $(Build.SourceBranchName)
|
||||||
BRANCH_FULL_NAME: $(Build.SourceBranch)
|
BRANCH_FULL_NAME: $(Build.SourceBranch)
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- script: ./CI/install-dependencies-ubuntu.sh
|
- script: ./CI/linux/install-dependencies-ubuntu.sh
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- script: ./CI/build-ubuntu.sh
|
- script: ./CI/linux/build-plugin-ubuntu.sh
|
||||||
displayName: 'Build obs-websocket'
|
displayName: 'Build obs-websocket'
|
||||||
|
|
||||||
- script: ./CI/package-ubuntu.sh
|
- script: ./CI/linux/package-plugin-ubuntu.sh
|
||||||
displayName: 'Package obs-websocket'
|
displayName: 'Package obs-websocket'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
@ -146,18 +155,24 @@ jobs:
|
|||||||
|
|
||||||
- job: 'Build_macOS'
|
- job: 'Build_macOS'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'macos-10.14'
|
vmImage: 'macOS-10.15'
|
||||||
|
variables:
|
||||||
|
OBS_DEPS_VERSION: '2020-12-22'
|
||||||
|
QT_VERSION: '5.15.2'
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- script: ./CI/install-dependencies-macos.sh
|
- script: ./CI/macos/install-dependencies-macos.sh
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
|
env:
|
||||||
|
OBS_DEPS_VERSION: $(OBS_DEPS_VERSION)
|
||||||
|
QT_VERSION: $(QT_VERSION)
|
||||||
|
|
||||||
- script: ./CI/install-build-obs-macos.sh
|
- script: ./CI/macos/install-build-obs-macos.sh
|
||||||
displayName: 'Build OBS'
|
displayName: 'Build OBS'
|
||||||
|
|
||||||
- script: ./CI/build-macos.sh
|
- script: ./CI/macos/build-plugin-macos.sh
|
||||||
displayName: 'Build obs-websocket'
|
displayName: 'Build obs-websocket'
|
||||||
|
|
||||||
- task: InstallAppleCertificate@2
|
- task: InstallAppleCertificate@2
|
||||||
@ -167,7 +182,7 @@ jobs:
|
|||||||
certSecureFile: 'Certificates.p12'
|
certSecureFile: 'Certificates.p12'
|
||||||
certPwd: $(secrets.macOS.certificatesImportPassword)
|
certPwd: $(secrets.macOS.certificatesImportPassword)
|
||||||
|
|
||||||
- script: ./CI/package-macos.sh
|
- script: ./CI/macos/package-plugin-macos.sh
|
||||||
displayName: 'Package obs-websocket'
|
displayName: 'Package obs-websocket'
|
||||||
env:
|
env:
|
||||||
RELEASE_MODE: $(isReleaseMode)
|
RELEASE_MODE: $(isReleaseMode)
|
||||||
|
@ -366,7 +366,7 @@
|
|||||||
"{boolean} `flags.encoded` Output is encoded",
|
"{boolean} `flags.encoded` Output is encoded",
|
||||||
"{boolean} `flags.multiTrack` Output uses several audio tracks",
|
"{boolean} `flags.multiTrack` Output uses several audio tracks",
|
||||||
"{boolean} `flags.service` Output uses a service",
|
"{boolean} `flags.service` Output uses a service",
|
||||||
"{Object} `settings` Output name",
|
"{Object} `settings` Output settings",
|
||||||
"{boolean} `active` Output status (active or not)",
|
"{boolean} `active` Output status (active or not)",
|
||||||
"{boolean} `reconnecting` Output reconnection status (reconnecting or not)",
|
"{boolean} `reconnecting` Output reconnection status (reconnecting or not)",
|
||||||
"{double} `congestion` Output congestion",
|
"{double} `congestion` Output congestion",
|
||||||
@ -433,7 +433,7 @@
|
|||||||
{
|
{
|
||||||
"type": "Object",
|
"type": "Object",
|
||||||
"name": "settings",
|
"name": "settings",
|
||||||
"description": "Output name"
|
"description": "Output settings"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@ -861,7 +861,7 @@
|
|||||||
"{String} `name` Transition name.",
|
"{String} `name` Transition name.",
|
||||||
"{String} `type` Transition type.",
|
"{String} `type` Transition type.",
|
||||||
"{int} `duration` Transition duration (in milliseconds). Will be -1 for any transition with a fixed duration, such as a Stinger, due to limitations of the OBS API.",
|
"{int} `duration` Transition duration (in milliseconds). Will be -1 for any transition with a fixed duration, such as a Stinger, due to limitations of the OBS API.",
|
||||||
"{String} `from-scene` Source scene of the transition",
|
"{String (optional)} `from-scene` Source scene of the transition",
|
||||||
"{String} `to-scene` Destination scene of the transition"
|
"{String} `to-scene` Destination scene of the transition"
|
||||||
],
|
],
|
||||||
"api": "events",
|
"api": "events",
|
||||||
@ -885,7 +885,7 @@
|
|||||||
"description": "Transition duration (in milliseconds). Will be -1 for any transition with a fixed duration, such as a Stinger, due to limitations of the OBS API."
|
"description": "Transition duration (in milliseconds). Will be -1 for any transition with a fixed duration, such as a Stinger, due to limitations of the OBS API."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "String",
|
"type": "String (optional)",
|
||||||
"name": "from-scene",
|
"name": "from-scene",
|
||||||
"description": "Source scene of the transition"
|
"description": "Source scene of the transition"
|
||||||
},
|
},
|
||||||
@ -989,7 +989,7 @@
|
|||||||
"{String} `name` Transition name.",
|
"{String} `name` Transition name.",
|
||||||
"{String} `type` Transition type.",
|
"{String} `type` Transition type.",
|
||||||
"{int} `duration` Transition duration (in milliseconds).",
|
"{int} `duration` Transition duration (in milliseconds).",
|
||||||
"{String} `from-scene` Source scene of the transition",
|
"{String (optional)} `from-scene` Source scene of the transition",
|
||||||
"{String} `to-scene` Destination scene of the transition"
|
"{String} `to-scene` Destination scene of the transition"
|
||||||
],
|
],
|
||||||
"api": "events",
|
"api": "events",
|
||||||
@ -1013,7 +1013,7 @@
|
|||||||
"description": "Transition duration (in milliseconds)."
|
"description": "Transition duration (in milliseconds)."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "String",
|
"type": "String (optional)",
|
||||||
"name": "from-scene",
|
"name": "from-scene",
|
||||||
"description": "Source scene of the transition"
|
"description": "Source scene of the transition"
|
||||||
},
|
},
|
||||||
@ -5626,6 +5626,55 @@
|
|||||||
"type": "class",
|
"type": "class",
|
||||||
"examples": []
|
"examples": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"subheads": [],
|
||||||
|
"description": "Get the source's active status of a specified source (if it is showing in the final mix).",
|
||||||
|
"param": "{String} `sourceName` Source name.",
|
||||||
|
"return": "{boolean} `sourceActive` Source active status of the source.",
|
||||||
|
"api": "requests",
|
||||||
|
"name": "GetSourceActive",
|
||||||
|
"category": "sources",
|
||||||
|
"since": "unreleased",
|
||||||
|
"returns": [
|
||||||
|
{
|
||||||
|
"type": "boolean",
|
||||||
|
"name": "sourceActive",
|
||||||
|
"description": "Source active status of the source."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"type": "String",
|
||||||
|
"name": "sourceName",
|
||||||
|
"description": "Source name."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"names": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"description": "GetSourceActive"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"categories": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"description": "sources"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"sinces": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"description": "unreleased"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"heading": {
|
||||||
|
"level": 2,
|
||||||
|
"text": "GetSourceActive"
|
||||||
|
},
|
||||||
|
"lead": "",
|
||||||
|
"type": "class",
|
||||||
|
"examples": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"subheads": [],
|
"subheads": [],
|
||||||
"description": "Get the audio's active status of a specified source.",
|
"description": "Get the audio's active status of a specified source.",
|
||||||
@ -9535,7 +9584,7 @@
|
|||||||
"param": [
|
"param": [
|
||||||
"{String} `sceneName` Name of the scene to create the scene item in",
|
"{String} `sceneName` Name of the scene to create the scene item in",
|
||||||
"{String} `sourceName` Name of the source to be added",
|
"{String} `sourceName` Name of the source to be added",
|
||||||
"{boolean} `setVisible` Whether to make the sceneitem visible on creation or not. Default `true`"
|
"{boolean (optional)} `setVisible` Whether to make the sceneitem visible on creation or not. Default `true`"
|
||||||
],
|
],
|
||||||
"return": "{int} `itemId` Numerical ID of the created scene item",
|
"return": "{int} `itemId` Numerical ID of the created scene item",
|
||||||
"api": "requests",
|
"api": "requests",
|
||||||
@ -9561,7 +9610,7 @@
|
|||||||
"description": "Name of the source to be added"
|
"description": "Name of the source to be added"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "boolean",
|
"type": "boolean (optional)",
|
||||||
"name": "setVisible",
|
"name": "setVisible",
|
||||||
"description": "Whether to make the sceneitem visible on creation or not. Default `true`"
|
"description": "Whether to make the sceneitem visible on creation or not. Default `true`"
|
||||||
}
|
}
|
||||||
|
@ -166,6 +166,7 @@ You can also refer to any of the client libraries listed on the [README](README.
|
|||||||
+ [GetMute](#getmute)
|
+ [GetMute](#getmute)
|
||||||
+ [SetMute](#setmute)
|
+ [SetMute](#setmute)
|
||||||
+ [ToggleMute](#togglemute)
|
+ [ToggleMute](#togglemute)
|
||||||
|
+ [GetSourceActive](#getsourceactive)
|
||||||
+ [GetAudioActive](#getaudioactive)
|
+ [GetAudioActive](#getaudioactive)
|
||||||
+ [SetSourceName](#setsourcename)
|
+ [SetSourceName](#setsourcename)
|
||||||
+ [SetSyncOffset](#setsyncoffset)
|
+ [SetSyncOffset](#setsyncoffset)
|
||||||
@ -347,7 +348,7 @@ These are complex types, such as `Source` and `Scene`, which are used as argumen
|
|||||||
| `flags.encoded` | _boolean_ | Output is encoded |
|
| `flags.encoded` | _boolean_ | Output is encoded |
|
||||||
| `flags.multiTrack` | _boolean_ | Output uses several audio tracks |
|
| `flags.multiTrack` | _boolean_ | Output uses several audio tracks |
|
||||||
| `flags.service` | _boolean_ | Output uses a service |
|
| `flags.service` | _boolean_ | Output uses a service |
|
||||||
| `settings` | _Object_ | Output name |
|
| `settings` | _Object_ | Output settings |
|
||||||
| `active` | _boolean_ | Output status (active or not) |
|
| `active` | _boolean_ | Output status (active or not) |
|
||||||
| `reconnecting` | _boolean_ | Output reconnection status (reconnecting or not) |
|
| `reconnecting` | _boolean_ | Output reconnection status (reconnecting or not) |
|
||||||
| `congestion` | _double_ | Output congestion |
|
| `congestion` | _double_ | Output congestion |
|
||||||
@ -515,7 +516,7 @@ A transition (other than "cut") has begun.
|
|||||||
| `name` | _String_ | Transition name. |
|
| `name` | _String_ | Transition name. |
|
||||||
| `type` | _String_ | Transition type. |
|
| `type` | _String_ | Transition type. |
|
||||||
| `duration` | _int_ | Transition duration (in milliseconds). Will be -1 for any transition with a fixed duration, such as a Stinger, due to limitations of the OBS API. |
|
| `duration` | _int_ | Transition duration (in milliseconds). Will be -1 for any transition with a fixed duration, such as a Stinger, due to limitations of the OBS API. |
|
||||||
| `from-scene` | _String_ | Source scene of the transition |
|
| `from-scene` | _String (optional)_ | Source scene of the transition |
|
||||||
| `to-scene` | _String_ | Destination scene of the transition |
|
| `to-scene` | _String_ | Destination scene of the transition |
|
||||||
|
|
||||||
|
|
||||||
@ -555,7 +556,7 @@ A stinger transition has finished playing its video.
|
|||||||
| `name` | _String_ | Transition name. |
|
| `name` | _String_ | Transition name. |
|
||||||
| `type` | _String_ | Transition type. |
|
| `type` | _String_ | Transition type. |
|
||||||
| `duration` | _int_ | Transition duration (in milliseconds). |
|
| `duration` | _int_ | Transition duration (in milliseconds). |
|
||||||
| `from-scene` | _String_ | Source scene of the transition |
|
| `from-scene` | _String (optional)_ | Source scene of the transition |
|
||||||
| `to-scene` | _String_ | Destination scene of the transition |
|
| `to-scene` | _String_ | Destination scene of the transition |
|
||||||
|
|
||||||
|
|
||||||
@ -2289,6 +2290,29 @@ Inverts the mute status of a specified source.
|
|||||||
|
|
||||||
_No additional response items._
|
_No additional response items._
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### GetSourceActive
|
||||||
|
|
||||||
|
|
||||||
|
- Unreleased
|
||||||
|
|
||||||
|
Get the source's active status of a specified source (if it is showing in the final mix).
|
||||||
|
|
||||||
|
**Request Fields:**
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ---- | :---: | ------------|
|
||||||
|
| `sourceName` | _String_ | Source name. |
|
||||||
|
|
||||||
|
|
||||||
|
**Response Items:**
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ---- | :---: | ------------|
|
||||||
|
| `sourceActive` | _boolean_ | Source active status of the source. |
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### GetAudioActive
|
### GetAudioActive
|
||||||
@ -3752,7 +3776,7 @@ Creates a scene item in a scene. In other words, this is how you add a source in
|
|||||||
| ---- | :---: | ------------|
|
| ---- | :---: | ------------|
|
||||||
| `sceneName` | _String_ | Name of the scene to create the scene item in |
|
| `sceneName` | _String_ | Name of the scene to create the scene item in |
|
||||||
| `sourceName` | _String_ | Name of the source to be added |
|
| `sourceName` | _String_ | Name of the source to be added |
|
||||||
| `setVisible` | _boolean_ | Whether to make the sceneitem visible on creation or not. Default `true` |
|
| `setVisible` | _boolean (optional)_ | Whether to make the sceneitem visible on creation or not. Default `true` |
|
||||||
|
|
||||||
|
|
||||||
**Response Items:**
|
**Response Items:**
|
||||||
|
@ -124,7 +124,7 @@ void WSEvents::FrontendEventHandler(enum obs_frontend_event event, void* private
|
|||||||
case OBS_FRONTEND_EVENT_FINISHED_LOADING:
|
case OBS_FRONTEND_EVENT_FINISHED_LOADING:
|
||||||
owner->hookTransitionPlaybackEvents();
|
owner->hookTransitionPlaybackEvents();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OBS_FRONTEND_EVENT_SCENE_CHANGED:
|
case OBS_FRONTEND_EVENT_SCENE_CHANGED:
|
||||||
owner->OnSceneChange();
|
owner->OnSceneChange();
|
||||||
break;
|
break;
|
||||||
@ -278,7 +278,7 @@ void WSEvents::connectSourceSignals(obs_source_t* source) {
|
|||||||
signal_handler_connect(sh, "filter_add", OnSourceFilterAdded, this);
|
signal_handler_connect(sh, "filter_add", OnSourceFilterAdded, this);
|
||||||
signal_handler_connect(sh, "filter_remove", OnSourceFilterRemoved, this);
|
signal_handler_connect(sh, "filter_remove", OnSourceFilterRemoved, this);
|
||||||
signal_handler_connect(sh, "reorder_filters", OnSourceFilterOrderChanged, this);
|
signal_handler_connect(sh, "reorder_filters", OnSourceFilterOrderChanged, this);
|
||||||
|
|
||||||
signal_handler_connect(sh, "media_play", OnMediaPlaying, this);
|
signal_handler_connect(sh, "media_play", OnMediaPlaying, this);
|
||||||
signal_handler_connect(sh, "media_pause", OnMediaPaused, this);
|
signal_handler_connect(sh, "media_pause", OnMediaPaused, this);
|
||||||
signal_handler_connect(sh, "media_restart", OnMediaRestarted, this);
|
signal_handler_connect(sh, "media_restart", OnMediaRestarted, this);
|
||||||
@ -336,7 +336,7 @@ void WSEvents::disconnectSourceSignals(obs_source_t* source) {
|
|||||||
signal_handler_disconnect(sh, "transition_start", OnTransitionBegin, this);
|
signal_handler_disconnect(sh, "transition_start", OnTransitionBegin, this);
|
||||||
signal_handler_disconnect(sh, "transition_stop", OnTransitionEnd, this);
|
signal_handler_disconnect(sh, "transition_stop", OnTransitionEnd, this);
|
||||||
signal_handler_disconnect(sh, "transition_video_stop", OnTransitionVideoEnd, this);
|
signal_handler_disconnect(sh, "transition_video_stop", OnTransitionVideoEnd, this);
|
||||||
|
|
||||||
signal_handler_disconnect(sh, "media_play", OnMediaPlaying, this);
|
signal_handler_disconnect(sh, "media_play", OnMediaPlaying, this);
|
||||||
signal_handler_disconnect(sh, "media_pause", OnMediaPaused, this);
|
signal_handler_disconnect(sh, "media_pause", OnMediaPaused, this);
|
||||||
signal_handler_disconnect(sh, "media_restart", OnMediaRestarted, this);
|
signal_handler_disconnect(sh, "media_restart", OnMediaRestarted, this);
|
||||||
@ -469,7 +469,7 @@ void WSEvents::OnSceneChange() {
|
|||||||
* Note: This event is not fired when the scenes are reordered.
|
* Note: This event is not fired when the scenes are reordered.
|
||||||
*
|
*
|
||||||
* @return {Array<Scene>} `scenes` Scenes list.
|
* @return {Array<Scene>} `scenes` Scenes list.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name ScenesChanged
|
* @name ScenesChanged
|
||||||
* @category scenes
|
* @category scenes
|
||||||
@ -487,7 +487,7 @@ void WSEvents::OnSceneListChange() {
|
|||||||
* Triggered when switching to another scene collection or when renaming the current scene collection.
|
* Triggered when switching to another scene collection or when renaming the current scene collection.
|
||||||
*
|
*
|
||||||
* @return {String} `sceneCollection` Name of the new current scene collection.
|
* @return {String} `sceneCollection` Name of the new current scene collection.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name SceneCollectionChanged
|
* @name SceneCollectionChanged
|
||||||
* @category scenes
|
* @category scenes
|
||||||
@ -510,7 +510,7 @@ void WSEvents::OnSceneCollectionChange() {
|
|||||||
*
|
*
|
||||||
* @return {Array<Object>} `sceneCollections` Scene collections list.
|
* @return {Array<Object>} `sceneCollections` Scene collections list.
|
||||||
* @return {String} `sceneCollections.*.name` Scene collection name.
|
* @return {String} `sceneCollections.*.name` Scene collection name.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name SceneCollectionListChanged
|
* @name SceneCollectionListChanged
|
||||||
* @category scenes
|
* @category scenes
|
||||||
@ -553,7 +553,7 @@ void WSEvents::OnTransitionChange() {
|
|||||||
*
|
*
|
||||||
* @return {Array<Object>} `transitions` Transitions list.
|
* @return {Array<Object>} `transitions` Transitions list.
|
||||||
* @return {String} `transitions.*.name` Transition name.
|
* @return {String} `transitions.*.name` Transition name.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name TransitionListChanged
|
* @name TransitionListChanged
|
||||||
* @category transitions
|
* @category transitions
|
||||||
@ -582,7 +582,7 @@ void WSEvents::OnTransitionListChange() {
|
|||||||
* Triggered when switching to another profile or when renaming the current profile.
|
* Triggered when switching to another profile or when renaming the current profile.
|
||||||
*
|
*
|
||||||
* @return {String} `profile` Name of the new current profile.
|
* @return {String} `profile` Name of the new current profile.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name ProfileChanged
|
* @name ProfileChanged
|
||||||
* @category profiles
|
* @category profiles
|
||||||
@ -599,7 +599,7 @@ void WSEvents::OnProfileChange() {
|
|||||||
*
|
*
|
||||||
* @return {Array<Object>} `profiles` Profiles list.
|
* @return {Array<Object>} `profiles` Profiles list.
|
||||||
* @return {String} `profiles.*.name` Profile name.
|
* @return {String} `profiles.*.name` Profile name.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name ProfileListChanged
|
* @name ProfileListChanged
|
||||||
* @category profiles
|
* @category profiles
|
||||||
@ -679,10 +679,10 @@ void WSEvents::OnStreamStopped() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A request to start recording has been issued.
|
* A request to start recording has been issued.
|
||||||
*
|
*
|
||||||
* Note: `recordingFilename` is not provided in this event because this information
|
* Note: `recordingFilename` is not provided in this event because this information
|
||||||
* is not available at the time this event is emitted.
|
* is not available at the time this event is emitted.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name RecordingStarting
|
* @name RecordingStarting
|
||||||
* @category recording
|
* @category recording
|
||||||
@ -696,7 +696,7 @@ void WSEvents::OnRecordingStarting() {
|
|||||||
* Recording started successfully.
|
* Recording started successfully.
|
||||||
*
|
*
|
||||||
* @return {String} `recordingFilename` Absolute path to the file of the current recording.
|
* @return {String} `recordingFilename` Absolute path to the file of the current recording.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name RecordingStarted
|
* @name RecordingStarted
|
||||||
* @category recording
|
* @category recording
|
||||||
@ -712,7 +712,7 @@ void WSEvents::OnRecordingStarted() {
|
|||||||
* A request to stop recording has been issued.
|
* A request to stop recording has been issued.
|
||||||
*
|
*
|
||||||
* @return {String} `recordingFilename` Absolute path to the file of the current recording.
|
* @return {String} `recordingFilename` Absolute path to the file of the current recording.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name RecordingStopping
|
* @name RecordingStopping
|
||||||
* @category recording
|
* @category recording
|
||||||
@ -728,7 +728,7 @@ void WSEvents::OnRecordingStopping() {
|
|||||||
* Recording stopped successfully.
|
* Recording stopped successfully.
|
||||||
*
|
*
|
||||||
* @return {String} `recordingFilename` Absolute path to the file of the current recording.
|
* @return {String} `recordingFilename` Absolute path to the file of the current recording.
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
* @name RecordingStopped
|
* @name RecordingStopped
|
||||||
* @category recording
|
* @category recording
|
||||||
@ -999,10 +999,10 @@ void WSEvents::TransitionDurationChanged(int ms) {
|
|||||||
*
|
*
|
||||||
* @return {String} `name` Transition name.
|
* @return {String} `name` Transition name.
|
||||||
* @return {String} `type` Transition type.
|
* @return {String} `type` Transition type.
|
||||||
* @return {int} `duration` Transition duration (in milliseconds).
|
* @return {int} `duration` Transition duration (in milliseconds).
|
||||||
* Will be -1 for any transition with a fixed duration,
|
* Will be -1 for any transition with a fixed duration,
|
||||||
* such as a Stinger, due to limitations of the OBS API.
|
* such as a Stinger, due to limitations of the OBS API.
|
||||||
* @return {String} `from-scene` Source scene of the transition
|
* @return {String (optional)} `from-scene` Source scene of the transition
|
||||||
* @return {String} `to-scene` Destination scene of the transition
|
* @return {String} `to-scene` Destination scene of the transition
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
@ -1054,7 +1054,7 @@ void WSEvents::OnTransitionEnd(void* param, calldata_t* data) {
|
|||||||
* @return {String} `name` Transition name.
|
* @return {String} `name` Transition name.
|
||||||
* @return {String} `type` Transition type.
|
* @return {String} `type` Transition type.
|
||||||
* @return {int} `duration` Transition duration (in milliseconds).
|
* @return {int} `duration` Transition duration (in milliseconds).
|
||||||
* @return {String} `from-scene` Source scene of the transition
|
* @return {String (optional)} `from-scene` Source scene of the transition
|
||||||
* @return {String} `to-scene` Destination scene of the transition
|
* @return {String} `to-scene` Destination scene of the transition
|
||||||
*
|
*
|
||||||
* @api events
|
* @api events
|
||||||
@ -1387,7 +1387,7 @@ void WSEvents::OnSourceFilterAdded(void* param, calldata_t* data) {
|
|||||||
if (!filter) {
|
if (!filter) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
self->connectFilterSignals(filter);
|
self->connectFilterSignals(filter);
|
||||||
|
|
||||||
OBSDataAutoRelease filterSettings = obs_source_get_settings(filter);
|
OBSDataAutoRelease filterSettings = obs_source_get_settings(filter);
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* @property {boolean} `flags.encoded` Output is encoded
|
* @property {boolean} `flags.encoded` Output is encoded
|
||||||
* @property {boolean} `flags.multiTrack` Output uses several audio tracks
|
* @property {boolean} `flags.multiTrack` Output uses several audio tracks
|
||||||
* @property {boolean} `flags.service` Output uses a service
|
* @property {boolean} `flags.service` Output uses a service
|
||||||
* @property {Object} `settings` Output name
|
* @property {Object} `settings` Output settings
|
||||||
* @property {boolean} `active` Output status (active or not)
|
* @property {boolean} `active` Output status (active or not)
|
||||||
* @property {boolean} `reconnecting` Output reconnection status (reconnecting or not)
|
* @property {boolean} `reconnecting` Output reconnection status (reconnecting or not)
|
||||||
* @property {double} `congestion` Output congestion
|
* @property {double} `congestion` Output congestion
|
||||||
|
@ -652,7 +652,7 @@ RpcResponse WSRequestHandler::DeleteSceneItem(const RpcRequest& request) {
|
|||||||
*
|
*
|
||||||
* @param {String} `sceneName` Name of the scene to create the scene item in
|
* @param {String} `sceneName` Name of the scene to create the scene item in
|
||||||
* @param {String} `sourceName` Name of the source to be added
|
* @param {String} `sourceName` Name of the source to be added
|
||||||
* @param {boolean} `setVisible` Whether to make the sceneitem visible on creation or not. Default `true`
|
* @param {boolean (optional)} `setVisible` Whether to make the sceneitem visible on creation or not. Default `true`
|
||||||
*
|
*
|
||||||
* @return {int} `itemId` Numerical ID of the created scene item
|
* @return {int} `itemId` Numerical ID of the created scene item
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user