Skip to content

sipsorcery-org/SIPSorceryMedia.SDL2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]
  • Audio Input:

    • using local file or remote using URI [With SIPSorceryMedia.FFMpeg]
    • using microphone [With SIPSorceryMedia.FFMpeg or SIPSorceryMedia.SDL2]
  • Audio Ouput:

    • using a speaker [With SIPSorceryMedia.SDL2]

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages