Giter VIP home page Giter VIP logo

sipsorcery.sdl2's Introduction

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

sipsorcery.sdl2's People

Contributors

christophei avatar

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.