A simple video call for Kivy use aiortc.
Note:
TODO:
kivyrtc/data
(replace existing file) and remove this todo.IS_RELEASE
in utils/platform.py to True
and remember change back to False
when done it.# On Mac, Linux
pip3 install --upgrade virtualenv
python3 -m virtualenv .env
source ./.env/bin/activate
# On Windows
py -3 -m pip install --upgrade virtualenv
py -3 -m virtualenv .env
.\.env\Scripts\activate
Install lib:
brew install ffmpeg opus libvpx pkg-config
On Windows:
win-lib
to .env
, to avoid following the steps below.include
to .env\Include
and lib
to .env\libs
.path/to/lib/bin
to os.environ["PATH"]
in main.py.%USERPROFILE%
.opus-1.3.1\win32\VS2015\opus.vcxproj
, find and add SDK version to:<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v140</PlatformToolset>
<WindowsTargetPlatformVersion>Your Windows SDK version</WindowsTargetPlatformVersion>
</PropertyGroup>
Command Prompt for VS
: msbuild "opus-1.3.1\win32\opus.vcxproj" /property:Configuration=ReleaseDLL;Platform=x64 /m /v:minimal
x64\ReleaseDLL\opus.lib
to .env\libs
, opus-1.3.1\Include
to .env\Include
and add path/to/x64/ReleaseDLL/opus.dll
to os.environ["PATH"]
.Install requirements and run:
pip install -r requirements.txt
python main.py
Make sure you follow all steps in Environment preparing and check all TODO
dist
folder.dist
folder before packaging app. If you not, pyinstaller can't build project.# On Mac, Linux
source ./.env/bin/activate
# On Windows
.\.env\Scripts\activate
pyinstaller ./desktop.spec
.\buildtools\create-installer.iss
. Output file will save in .\buildtools\Output
folder.pkgbuild --install-location /Applications --component 'dist/Kivy RTC.app' 'dist/Install Kivy RTC v0.1.0.pkg'
If you get error, read this to fix it or contact to python@sk-global.biz for further instructions.
Copyright (C) 2019 Spring Knowledge Global,.JSC. All rights reserved.
Licensed under the MIT license (see the LICENSE file).