Giter Club home page Giter Club logo

vortex's Introduction

DEPRECATED, rewrite on new branch

Please do not use Vortex in any capacity until the rewrite is complete, you will not receive any support for the current version and the new version is heavy in development.

Revolt Vortex

Description

The voice server for Revolt.

Stack

Resources

Vortex

Revolt

Quick Start

Get Vortex up and running locally for development.

git clone https://github.com/revoltchat/vortex
cd vortex
cargo build
# Set the environment variables as described below
cargo run

Environment Variables

Variable Description Example
HTTP_HOST The hostname to bind to. 0.0.0.0:8080 (default)
WS_URL The websocket URL to advertise. wss://vortex.revolt.chat
MANAGE_TOKEN The token used for communication between Vortex and Delta. <token>
RTC_MIN_PORT The minimum port to use for WebRTC and RTP. 10000 (default)
RTC_MAX_PORT The maximum port to use for WebRTC and RTP. 11000 (default)
DISABLE_RTP Disable RTP. The value 1 disables RTP, all other values or not set will enable RTP. 0 (default)
RTC_IPS Semicolon separated list of IPs to use for WebRTC. Hostnames are not supported yet. Either combined or split listen and announce IPs. <combined>;<listen>,<announce>

CLI Commands

Command Description
cargo build Build/compile Vortex.
cargo run Run Vortex.

License

Vortex is licensed under the GNU Affero General Public License v3.0.

vortex's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vortex's Issues

Deafen self.

Give users the ability to deafen themselves, consider stopping any incoming audio streams to save on bandwidth.

RTC_IPS expects public IP Address, usage of hostname not possible

Hello there,

at first: thanks for your great work with revolt. Its great!

I have the issue that vortex running as docker container is expecting the environment variable RTC_IPS with must contain an IP Address. 0.0.0.0 is not accepted as the only content since this is the address the voice clients are connecting to (seems so). So I'm using RTC_IPS = 0.0.0.0,1.2.3.4 (my public IP Address). This is working so far. But since I don't have an static public IP, I have to change it every couple of Days. When entering a hostname like a dedyn domain name it doesn't work.

Is it possible to make RTC_IPS accepting FQDNs instead of IP Addresses?

failed to run custom build command for `mediasoup-sys v0.3.1`

Hello,

For several days (since I installed Revolt on my server) I can't install vortex because the following error occurs:

I send a txt file below with the error

My server is under Debian and I can't find the resolution to this problem

Thanks to everyone who will help me

cargo build error

Compiling mediasoup-sys v0.3.1
error[E0658]: use of unstable library feature 'str_strip': newly added
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mediasoup-sys-0.3.1/build.rs:34:18
|
34 | .strip_suffix("libstdc++.a")
| ^^^^^^^^^^^^
|
= note: for more information, see rust-lang/rust#67302

error: aborting due to previous error

For more information about this error, try rustc --explain E0658.
error: could not compile mediasoup-sys.

To learn more, run the command again with --verbose.

Leaving Servers on mobile (iOS specially)

I accidentally joined a server and can’t find a way to leave it. I asked someone in the Revolt server and they said they haven’t implemented the feature yet on iOS. I’m just going to make this thread here so if anyone has similar problems.

How can i download libmediasoup-worker.a.p/src_lib.cpp.o

Hello.
When I run the build with "cargo build", most of the dependencies compile fine, except 'mediasoup-sys'.
This error message appears:

error: failed to build archive: 'libmediasoup-worker.a.p/src_lib.cpp.o': No such file or directory

error: could not compile `mediasoup-sys` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

image

how to solve this problem please?

Offline user in voice channel.

Offline users in voice channel

If user is exits the revolt or serverbut if don't exit voice channel , user is waiting in the voice channel.
For fix;

  • If user left server , user's disconnect with voice channel
  • If user exit revolt , user's disconnect with voice channel
    Image;
    image

Video support

related to #4, support for user video (and like that issue, will likely take a while)

Screen Share / Live Streaming

One of the features which makes discord particularly useful is live-streaming, specifically sharing screens for low-latency high resolution streams.

feat: multiple voice server regions

Have options like discord to have multiple servers in different locations and be able to switch servers for nearer locations.

Voice Server to be installed in 1 package for easy management

Add support for screen sharing

Currently it seems like there is no support for screen sharing in a voice chat. This is the one thing that is keeping me from migrating away from Discord.

Are there any plans to incorporate this in a future release?

Revolt's Voice IP address blocked by ESET

It is very unusual for my anti-virus to block any IP addresses.

Steps to duplicate

  • Join the Revolt server
  • Click on 'Voice' under "Voice Channels"
  • Click on the 'Phone' icon on the top right of the window

The result is that the anti-virus blocks the IP address. I bring this up since others with this anti-virus will likely have the same issue, and likewise it is possible that other firewall software may also be blacklisting the IP.

Workaround for now is to whitelist that IP.

image

thread 'main' panicked at 'Missing WS_URL environment variable.: NotPresent', src/util/variables.rs:16:43 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Hello everyone, I decided to create a new issue because I didn't get any answer on the old one (and I think the problem is not related to the old one so I closed it and I made a copy and paste here)

I thank you in advance for all the people who will help me. Here is the message I had sent:

Hello everyone. First of all, sorry for the delay I took. I just wanted to say that my problem concerning Vortex is still not solved. Indeed, when I try to start Vortex, I have the following error that appears:

thread 'main' panicked at 'Missing WS_URL environment variable.: NotPresent', src/util/variables.rs:16:43
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

I searched for several hours to solve this problem but could not find a solution. If you need any particular information (like API link, .env file information or anything else, please let me know)

I thank you in advance for your answer

Ring users.

Notify users when a call is created, and allow users to re-notify a user.

trouble with cargo build

hi , i'm trying to build your code, but i'm getting an error, please help me solve the problem. i do everything on a virtual machine on debian
error:
cargo build
Compiling mediasoup-sys v0.3.1
Compiling mediasoup v0.9.2
error: failed to build archive: 'libmediasoup-worker.a.p/src_lib.cpp.o': No such file or directory

error: could not compile mediasoup-sys due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

bug: docker build failing - ninja: build stopped: subcommand failed - Directory does not contain a valid build tree

What happened?

I have worked through several issues trying to build the vortex server, had to add the installation of python3-pip to the dockerfile, update the version of rust being used, and modify a few RUN lines. Currently running into an issue with ninja building the libuv subproject in what seems to be mediasoup. I'm not finding much information on how to get around this after googling for a few days, hoping to get some insight here.

Dockerfile
`

Build Stage

FROM rust:latest AS build
USER 0:0
WORKDIR /home/rust

RUN apt-get update && apt-get install python3-pip -y
RUN USER=root cargo new --bin vortex
WORKDIR /home/rust/vortex

COPY Cargo.toml Cargo.lock ./
RUN cargo build --release

RUN rm src/.rs target/release/deps/vortex
COPY src ./src
RUN cargo install --locked --path .

Bundle Stage

FROM debian:bullseye

COPY --from=build /usr/local/cargo/bin/vortex ./vortex

EXPOSE 8080
ENV HTTP_HOST 0.0.0.0:8080
ENV WS_URL wss://vortex.mydomain.com
#ENV MANAGE_TOKEN
ENV RTC_MIN_PORT 10000
ENV RTC_MAX_PORT 11000
ENV DISABLE_RTP 0

CMD ["./vortex"]
`
Full output of: docker build .
dockerbuild.txt

Main error:
`[730/1021] Compiling C object subprojects/libuv-v1.43.0/libuv.a.p/src_unix_stream.c.o
FAILED: subprojects/libuv-v1.43.0/libuv.a.p/src_unix_stream.c.o
cc -Isubprojects/libuv-v1.43.0/libuv.a.p -Isubprojects/libuv-v1.43.0 -I../../../../../../../../../../../usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/mediasoup-sys-0.3.3/subprojects/libuv-v1.43.0 -I../../../../../../../../../../../usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/mediasoup-sys-0.3.3/subprojects/libuv-v1.43.0/include -I../../../../../../../../../../../usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/mediasoup-sys-0.3.3/subprojects/libuv-v1.43.0/src -fdiagnostics-color=always -DNDEBUG -std=c89 -O3 -fPIC -pthread -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_POSIX_C_SOURCE=200112 -MD -MQ subprojects/libuv-v1.43.0/libuv.a.p/src_unix_stream.c.o -MF subprojects/libuv-v1.43.0/libuv.a.p/src_unix_stream.c.o.d -o subprojects/libuv-v1.43.0/libuv.a.p/src_unix_stream.c.o -c ../../../../../../../../../../../usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/mediasoup-sys-0.3.3/subprojects/libuv-v1.43.0/src/unix/stream.c
../../../../../../../../../../../usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/mediasoup-sys-0.3.3/subprojects/libuv-v1.43.0/src/unix/stream.c: In function ‘uv__write’:
../../../../../../../../../../../usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/mediasoup-sys-0.3.3/subprojects/libuv-v1.43.0/src/unix/stream.c:929:3: error: C++ style comments are not allowed in ISO C90
929 | // XXX(jwn): this must call uv__stream_flush_write_queue(stream, n) here, since we won't generate any more events
| ^
../../../../../../../../../../../usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/mediasoup-sys-0.3.3/subprojects/libuv-v1.43.0/src/unix/stream.c:929:3: note: (this will be reported only once per input file)
ninja: build stopped: subcommand failed.

--- stderr
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Directory does not contain a valid build tree:
/home/rust/vortex/target/release/build/mediasoup-sys-f448789c1b12f09a/out/out/Release/build
make: *** [Makefile:226: libmediasoup-worker] Error 1
thread 'main' panicked at 'Failed to build libmediasoup-worker', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/mediasoup-sys-0.3.3/build.rs:96:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
`

Can’t change the pfp on iOS

Exactly what it says on the tin. I can’t remove my current blank pfp or change the banner on mobile. I don’t have a computer as of now, so everything I’m doing is on mobile iOS.

docs: Vortex Configuration guide

Hi, I'm having problems while configuring vortex. The Vortex program seems to work out but it's like it doesn't interface with Revolt: when I click on the button to connect with the voice chat it doesn't have any effect, but when I digit the Vortex URL it shows the following writing :

{"vortex":"0.3.0-alpha.1","features":{"rtp":true},"ws":"wss://vortex.revolt.chat"}

I have already followed every other guide in this site, so I'd like to ask for a more general guide in order to configure it. Thanks for the help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.