Git Product home page Git Product logo

jarust's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

agfteg

jarust's Issues

Audio Bridge Plugin Tracking

An issue to track the development of the Audio Bridge Plugin. Some features are omitted and could be added later on (for example, play_file).

Janus docs: https://janus.conf.meetecho.com/docs/audiobridge.html

  • Sync Requests

    • Create
    • Edit
    • Destroy
    • Exist
    • Allowed
    • Kick (#91)
    • Kick all (#91)
    • List rooms
    • Mute (#89)
    • Unmute (#89)
    • Mute room (#90)
    • Unmute room (#90)
    • List Participants
  • Async Requests

    • Join
    • Configure (#88)
    • Change room (#93)
    • Leave (#92)
  • Events

    • Joined
    • Left (#92)
    • RoomChanged (#93)
    • Participants Updated (#95)

Cancellation

Capture the task handle and cancel it when necessary.

Abstract Janus Transport

Current we have an abstract transport, which abstract the network transport and have a very generic functionality like send

Here we want to abstract the janus specific transport, so for example we can decorate the message on the transport rather than on the connection. Also, this will help in decoupling the JaSession and JaHandle from JaConnection. And the transaction generation can be their, so JaConnection can have a single responsibility.

Encapsulate inners

currently jaconnectio, jasesseion, jahandle, and jarouter exposes their inners. We should encapsulate them

Testing Infrastructure

In addition to the unit tests and integration tests, add e2e tests that spawns a janus server and test the library

Request timeout

Add a request timeout and close pending transactions when timing out.

Retry mechanism

Add a retry mechanism that requires several retrials and several x amount of units (x seconds, or x milliseconds).

Containing the unbounded growth of the transaction manager

The transaction manager only closes transactions on particular cases.

But other cases like a lost message will keep the transaction pending.

Propositions:

  • Mutating the transaction manage becomes async and saves the abort handle inside a pending transaction. Then race a timeout with the success close?
  • Pause the world to clean stale transactions.
  • ...

Improvements Tracker

  • Abstract the usage of the transport (#115)
  • Favour struct params over usual params, so the APIs have a named arguments
  • Use std::sync::Mutex over tokio::sync::Mutex when possible (when we don't hold the mutex between await points)
  • Improve documentation

Planned features

  • Web Assembly support
  • Video Plugin
  • More core messages (e.g.: server_info, detach, ...)

Channel sizes

Arbitrary channel sizes are spread across the codebase. It is better to make them parameterized and leave it to the client to decide. Or at least put some rules in place.

Example:

mpsc::channel(10);
mpsc::channel(100);
mpsc::channel(32);

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.