Repository navigation
Conversation
|
I see with pleasure that you've more or less described the feature set of Galene :-)
There's no multicast in WebRTC, so I think this deserves clarification.
Please clarify. Do you mean a client library? What's an embedded device, an AVR with 8kB RAM, or an ARM64 device with 8GB?
WHEP is not finished yet, so I suggest restricting this to WHIP for now.
Please remove this item, or at least rewrite it. Exposing TLS state is a bad idea from a security standpoint, as it allows leaking session keys, thus potentially breaking forward secrecy. Migration must involve renegotiation, so that session keys are regenerated and never leaked. |
|
@jech Thank you for your thoughts.
Tbh, I think if we don't get a lot of contributions, I think we should direct the energy towards contributing to pion itself, or other projects in the community like Galene, but we'll see by the end of this stage :)
I meant multicasting a single source to multiple rooms, it's a nieche feature but it will force us to think of a clean architecture to handle ingest streams, I think, this is why I added it.
I meant finishing the TinyGo support in Pion, and make a simple Pion-based client, and maybe adding hardware acceleration for some devices (not sure if it will help), maybe target media devices for HW encoding / decoding too, I'm not sure what devices will support this yet, but this sound like something we can test in the future.
I think it's safe to add it as an experimental protocol, well, it's better than making a custom protocol.
You're right, I added a clarification, TLS state should be handled with DTLS restart, and the client should be notified with the edge change, I lost track of the DTLS restart project, I should continue it. |
| 3. Offer a modern, layered API. | ||
| * High-level plugin/extension API that hides WebRTC details. | ||
| * Low-level API for advanced use-cases, users should be able to re-implement the same features in the high-level API and provide their own interfaces, This should be abstracted away from non power users. | ||
| 4. Provide a clean, typed Web SDK. |
There was a problem hiding this comment.
For use cases other than video conferencing, for example cloud gaming and realtime voice ai, it would be nice to have a server sdk/plugin that handles codec and can read or modify content. Though this might not be high priority enough for us to implement it in early stage, should we consider this when making architectural decisions?
There was a problem hiding this comment.
I think you are exactly right @3DRX. I think we will find a lot of passion/joy solving the problems of tomorrow :)
- Self-hosted home security systems
- Cloud Gaming (run heavy process remotely like CAD)
- Voice AI
- Broadcasting (would love to replace broadcast box with ion)
- ?
There was a problem hiding this comment.
Curious...is there an interest in Video AI? I can think of some use cases where video can be a better way to convey information, e.g. dance teaching 🤔
| 2. Transport state is tightly coupled to in-memory stateful objects, preventing seamless migration of streams between SFU instances (UDP, DTLS, SRTP, SCTP etc), For security reasons, this will not include the TLS state, Will require finishing the DTLS restart (which should be even simpler with DTLS 1.3). | ||
| 3. Limited support for modern codecs features. | ||
| 4. Incomplete statistics and congestion-control APIs. | ||
| 5. Security hardening (DTLS/SRTP cipher suites, DTLS 1.3, rate limiting, quota management) is missing. |
There was a problem hiding this comment.
We can have end to end encryption implemented using js encoded transform api (it shouldn’t be hard to implement, but offers great value).
| 2. **Draft design proposals (RFCs)** - Contributors submit markdown documents in describing architecture ideas, APIs, and migration strategies. | ||
| 3. **Community voting** - RFCs will be discussed on Discord and in GitHub Discussions. We will use 👍/👎 reactions to measure support and move proposals forward. | ||
| 4. **Define the MVP** - Based on accepted RFCs, we will lock a minimal feature set for the first public milestone. | ||
| 5. **Decide on the name** - We will decide on the name of the project, if we'll keep the name "Ion" and pick a new major version or pick a new name to avoid confusion with the original Ion project. |
I recommend avoiding the word "multicast", in order to prevent confusion. What about "sending a given stream to multiple rooms"?
Then say that, and avoid the term "embedded", which has been diluted so it means nothing. You also should define "SDK". Why not say "client library"?
I respectfully disagree, since I'm not very optimistic about WHEP. (I've been following the WISH WG, and it doesn't look good.)
I agree with what you're saying, but I think your syntax is slightly off, some word-smithing is necessary. |
I think we'll pick a single word term for this feature, when we start implementing it.
I agree, I added a clarification. but we get people asking for "embedded" client, I don't like the term, It's not clear what the people say, but in most of the time they mean a consumer grade microcontroller like ESP32, or even a capable single board computer which isn't even "embedded", We'll just finish the tinygo support and try to ship the smallest client we can ship. I cleared it more.
I agree that an "sdk" is also a diluted term, but we meant programmatically controlling the SFU itself and not just consuming / publishing streams.
Not a WHEP fan anyway, I think I'll leave it for the people to vote, I'm natural on this.
I rewrote this line. Thank you a lot. |
Hi everyone! I'll focus on the terminology and use case for Ion in this answer: I believe that discussing the correct terminology for things like "embedded" should be a priority in the early stages of Ion development. First, understanding how many "client" types Ion can take in an MVP version is very useful and creates proper ways of working. Therefore, we can use as a reference the concepts of WebRTC Devices and WebRTC Endpoints from RFC 8825. In other words: Without much difficulty, a first-stage ION SFU server can support 2 main "clients": common media senders/receivers (generic users in videoconferences, for example) or applications whose purpose is just to send media with some application logic involved. Therefore, I suggest a correct terminology when thinking about embedded devices (using Section 2.2 of RFC 8825):
In the case of IMPs, the Ion SFU should support simple RTP packet reading under UDP listening with security guarantees... unlike the classic IWC use case. I believe discussing this now can direct our efforts towards a first RFC (as mentioned in the archive) as "Ion SFU Client Use Cases". |
| * Low-level API for advanced use-cases, users should be able to re-implement the same features in the high-level API and provide their own interfaces, This should be abstracted away from non power users. | ||
| 4. Provide a clean, typed Web SDK. | ||
| 5. Ship a reference web application with a modern UI. | ||
| 6. Create an SDK for low-power platforms (like: embedded/IoT devices and single-board computers) by compiling Pion with TinyGo. This first requires finishing TinyGo support in Pion; minimum hardware specs and potential hardware acceleration will be assessed later. |
There was a problem hiding this comment.
Instead of TinyGo I have been using libpeer
It would be exciting if you could offer Ion as an answer to
- Running your own security systems
- Voice AI
My experience is that we would need to keep Ion's signaling really simple (or have a back door of sorts). We can't do a Websocket + PeerConnection on a ESP32S3. You can do bi-directional audio, and you are pretty much maxed out CPU wise.
There was a problem hiding this comment.
Was really trying to use this as an excuse to optimize pion for tinygo, and to be able to be stripped down, and finish that project, but libpeer will make most sense :)
| Because many applications need programmable access to the SFU, not just a "play/pause" client. An SDK lets developers embed, extend, and automate SFU specific features from their own code-base. | ||
|
|
||
| What the SDK should let you do: | ||
| 1. Control permissions & scopes, issue, refresh, and introspect tokens for every room, user, or stream. |
There was a problem hiding this comment.
It would be nice if users could use their existing authentication systems. I should be able to send my cookie for my existing app to ion and then it should get authenticated that way.
Why do I have to hit the ion API to generate a ion session? Then I have to manage/handle all this extra state.
The latency of this extra API call to 'go generate a token' is one of the reasons users leave SFUs and build their own thing with Pion.
There was a problem hiding this comment.
I strongly agree, I think the control over auth via the SFU should be an opt-in feature. The developer should have the flexibility in terms of providing their own validation
There was a problem hiding this comment.
Maybe we can have a controlled and a non-controlled mode for auth? and multiple auth strategies, btw feel free to edit any part :)
There was a problem hiding this comment.
@Sean-Der i added this section to the project goals
- Design a modular, multi-strategy authentication system.
- Enable multiple strategies such as centralized authentication through OIDC, with: cookie-based sessions, JWT bearer tokens, mTLS for internal services, and OAuth2 client credentials for automation and service-to-service access.
- Provide a clear interface for custom auth plugins, so that developers can add support for enterprise SSO, API keys, federated identity, or anonymous access.
- The SFU and APIs should remain agnostic to the auth backend and rely on validated identity claims (e.g., user ID, roles, scopes) passed through a secure context. This is important for the SDK to be able to use the same authentication strategy as the SFU, and to able to control the SFU's behavior based on auth claims (if needed).
- Make it easy to deploy and switch between strategies using configuration, and for people to add their own auth strategies.
I think the SDK being able to control the auth is unrelated to the auth strategies, I would like something like auth using Google workspace to be possible in the same time being able to refuse or control claims using the SDK as another layer, if needed, asynchronous and synchronous!
@sideDesert Please feel free to correct anything or change anything in the document.
|
Draft stage is done :) |
Description
please read the document and feel free to add any thoughts you have or edit the document in any way.