Project Icon

desktop

基于OBS的开源跨平台直播软件

Streamlabs Desktop是一款开源的跨平台直播软件,基于Electron和OBS技术开发。该软件支持macOS 10.14+和64位Windows系统,具有简洁的界面和多样化的功能。Streamlabs Desktop采用多窗口架构,包括主窗口、工作窗口和子窗口,以优化直播体验。目前,该项目正在进行从Vue到React的技术迁移,并鼓励开发者参与贡献。作为一个以OBS为核心的衍生项目,Streamlabs Desktop为内容创作者提供了专业的直播工具。该项目在GitHub上开源,欢迎开发者查看源码并参与项目改进。

Streamlabs Desktop

Build Status

Simple, powerful, and efficient live streaming software built on Electron and OBS.

Streamlabs Desktop

This application currently only supports OSX 10.14+ and 64-bit Windows.

Dependencies

Node.js

Node is required for installing npm packages and for running various scripts. We recommend the latest LTS release.

https://nodejs.org

Yarn

We use Yarn as our package manager. We use yarn modern (berry) with the yarn version checked in to version control. To get the yarn CLI, we currently recommend installing it with npm:

npm install -g yarn

Bash

Some of our scripts assume a bash-like environment. On Windows, we recommend using Git Bash, which is included with Git for Windows. On macOS, the default shell should work fine.

Native Modules

Streamlabs Desktop uses several native C++ modules. These are NPM modules that live in separate repositories, and are automatically installed as prebuilt binaries by Yarn. If you are not doing any development on these native modules, no additional action is required to install native modules.

Installation

Install all node modules via yarn:

yarn install

Then, compile assets with webpack:

yarn compile

Alternatively, you can watch for changes to app files:

yarn watch

Starting

You can start the app by running:

yarn start

Environment Variables

These variables can be used in development to force certain behavior.

SLOBS_FORCE_AUTO_UPDATE: Force the auto-updater to run in development. Normally this would only run in production.

SLOBS_CACHE_DIR: Force a different location for the user data cache directory.

SLOBS_DISABLE_MAIN_LOGGING: Disable javascript logging in the main process.

SLOBS_REPORT_TO_SENTRY: Report errors to sentry in the dev environment

SLOBS_PRODUCTION_DEBUG: Forces dev tools to open when the app starts

Development

You can open dev tools by clicking the </> button on the sidebar. In the development environment, the titlebar of the main window will light up red when an exception occurs in any window.

Our app is comprised of several windows, which are essential separate copies of the same Javascript app, which are running different pieces of the code and communicating via Electron IPC.

worker - This is a persistent invisible window that runs our entire services layer.

main - This is the main window of the application. It communicates with the worker window to perform actions.

child - This window is always running in the background, and appears to show windows like Source Properties. It stays always running because Electron windows can take several seconds to initialize, so we keep it ready in the background.

There are potentially many other JS runtime processes that can be running depending on use, for features like Apps, embedded webviews, one-off windows like projectors, pop-outs etc.

Sync / Async

Given the heavy reliance on interprocess communication in our application, we strongly recommend using asynchronous IPC whenever possible. When accessing a service, calling it as an action will call it asynchronously.

For example the following (synchronous):

StreamingService.toggleStreaming()

Can be rewritten as (asynchronous):

StreamingService.actions.toggleStreaming()

The return type of the latter will automatically be void as actions are unable to return values. In general, receiving information from services is best done via views. views are executed in-window, and backed by our vuex data store, which is replicated across windows.

Vue / React

We are in the process of migrating from Vue to React. There are many components of both frameworks in our codebase currently. All new components should be written in React, and major non-trivial changes to existing Vue components should be accompanied with a rewrite to React.

We exclusively use functional components in React, relying on the hooks API for things like component state and lifecycle.

Contributing

We accept outside contributions, and do our best to respond to Pull Requests. We ask that all contributors sign a Contributor License Agreement before merging code. We do not guarantee that all external Pull Requests will be merged, but we deeply appreciate any and all changes submitted. Thank you for your interest and contribution.

Translations

At this time, we are not able to accept translations submitted to GitHub, as we use a professional translation team that manages translations elsewhere.

Packaging/Distribution

For Windows:

yarn package

For macOS:

yarn package:mac

Note that both of these commands require code signing certificates to be present in the environment, and in the case of macOS, a valid Apple developer account for notarization of the app package.

There are some environment variables that can be passed to skip these steps:

SLOBS_NO_SIGN Do not attempt to codesign the app package

SLOBS_NO_NOTARIZE Do not attempt to notarize the macOS package

❤ OBS Developers

At its core, Streamlabs Desktop is powered by the OBS project. We want to thank all of the developers over at the OBS project for their years of tireless hard work, without which Streamlabs Desktop wouldn't exist today.

项目侧边栏1项目侧边栏2
推荐项目
Project Cover

豆包MarsCode

豆包 MarsCode 是一款革命性的编程助手,通过AI技术提供代码补全、单测生成、代码解释和智能问答等功能,支持100+编程语言,与主流编辑器无缝集成,显著提升开发效率和代码质量。

Project Cover

AI写歌

Suno AI是一个革命性的AI音乐创作平台,能在短短30秒内帮助用户创作出一首完整的歌曲。无论是寻找创作灵感还是需要快速制作音乐,Suno AI都是音乐爱好者和专业人士的理想选择。

Project Cover

有言AI

有言平台提供一站式AIGC视频创作解决方案,通过智能技术简化视频制作流程。无论是企业宣传还是个人分享,有言都能帮助用户快速、轻松地制作出专业级别的视频内容。

Project Cover

Kimi

Kimi AI助手提供多语言对话支持,能够阅读和理解用户上传的文件内容,解析网页信息,并结合搜索结果为用户提供详尽的答案。无论是日常咨询还是专业问题,Kimi都能以友好、专业的方式提供帮助。

Project Cover

阿里绘蛙

绘蛙是阿里巴巴集团推出的革命性AI电商营销平台。利用尖端人工智能技术,为商家提供一键生成商品图和营销文案的服务,显著提升内容创作效率和营销效果。适用于淘宝、天猫等电商平台,让商品第一时间被种草。

Project Cover

吐司

探索Tensor.Art平台的独特AI模型,免费访问各种图像生成与AI训练工具,从Stable Diffusion等基础模型开始,轻松实现创新图像生成。体验前沿的AI技术,推动个人和企业的创新发展。

Project Cover

SubCat字幕猫

SubCat字幕猫APP是一款创新的视频播放器,它将改变您观看视频的方式!SubCat结合了先进的人工智能技术,为您提供即时视频字幕翻译,无论是本地视频还是网络流媒体,让您轻松享受各种语言的内容。

Project Cover

美间AI

美间AI创意设计平台,利用前沿AI技术,为设计师和营销人员提供一站式设计解决方案。从智能海报到3D效果图,再到文案生成,美间让创意设计更简单、更高效。

Project Cover

AIWritePaper论文写作

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

投诉举报邮箱: service@vectorlightyear.com
@2024 懂AI·鲁ICP备2024100362号-6·鲁公网安备37021002001498号