SIPSorceryMedia.SDL2
No description available
Install / Use
/learn @sipsorcery-org/SIPSorceryMedia.SDL2README
The SIPSorceryMedia.SDL2 project does not currently have an active maintainer. Support for issues is not likely to materialise.
SIPSorceryMedia.SDL2
This project is an example of developing a C# library that can use features from SDL2 native libraries and that integrates with the SIPSorcery real-time communications library.
The classes in this project provide Audio End Point and Audio Source features.
So used in correlation with SIPSorceryMedia.FFMpeg you have both Audio and Video End Point and Audio and Video Source using multi-platform component.
Using both you have these features:
-
Video Input:
- using local file or remote using URI [
With SIPSorceryMedia.FFMpeg] - using camera [
With SIPSorceryMedia.FFMpeg] - using screen [
With SIPSorceryMedia.FFMpeg]
- using local file or remote using URI [
-
Audio Input:
- using local file or remote using URI [
With SIPSorceryMedia.FFMpeg] - using microphone [
With SIPSorceryMedia.FFMpeg or SIPSorceryMedia.SDL2]
- using local file or remote using URI [
-
Audio Ouput:
- using a speaker [
With SIPSorceryMedia.SDL2]
- using a speaker [
Audio Codecs supported by this library: (using AudioEncoder from SIPSorcery )
- PCMU
- PCMA
- G722
- G729 (not tested in SIP Context but should work)
- Opus (see CheckCodec example which implements Opus Codec using Concentus (C# implementation)
Installing SDL2
For Windows
No additional steps are required for an x64 build. The nuget package includes the SDL v2.0.20 x64 binaries.
For Mac
Install the DMG file available here
For Linux
Install the SDL binaries using the package manager for the distribution.
sudo apt-get install libsdl2
Testing
Several projects permits to understand how the library can be used:
-
PlayAudioFile - Multiplatform application:
- Let user select an Audio Playback device
- Play Audio file
-
PlayVideoFile - Multiplatform application:
- Let user select an Audio Playback device
- Play Video file (Display it in ASCII in a Console/Terminal Window)
-
CheckCodec - Multiplatform application:
- Let user select an Audio Playback device
- Let user select an Audio Recording device OR a Video File
- Let user select one of the Audio Codecs supported
- Play back the sound after Encoding then Decoding the sample using the specified codec
Related Skills
node-connect
335.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
335.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.5kCommit, push, and open a PR
