Giter VIP home page Giter VIP logo

dolbyio / comms-sdk-cpp Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 2.0 10.32 MB

The Dolby.io Communications C++ SDK provides both Client and Server applications the ability to create HD voice and video for fully immersive real-time communications and streaming experiences.

Home Page: https://docs.dolby.io/communications-apis/docs/scpp-overview

License: Other

cross-platform sdk spatial-audio dolbyio webrtc linux macos screen-sharing video-chat voice

comms-sdk-cpp's People

Contributors

djova-dolby avatar dolbyio-gh-bot avatar jfan-dolby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

comms-sdk-cpp's Issues

2.3.0-beta.1: subscribing to audio_levels causes crashes when destroying SDK while in conference

With this piece of code:

#include <dolbyio/comms/sdk.h>
#include <cstdio>

int main() {
  auto cppsdk = dolbyio::comms::sdk::create(token, [](auto&&) {});

  cppsdk->conference()
      .add_event_handler([](const dolbyio::comms::audio_levels&) {})
      .on_error([](auto&&) {});

  cppsdk->session()
      .open({})
      .then([sdk = cppsdk.get()](auto&&) {
        return sdk->conference().demo(
            dolbyio::comms::spatial_audio_style::disabled);
      })
      .on_error([](auto&&) {});

  while (getchar() != 'q') {
  };
}

The application will crash on exit instead of exiting cleanly.

add event for audio_level

managing audio_level to create a vumeter requires you to create a thread and constantly poll volume level apis
https://api-references.dolby.io/comms-sdk-cpp/api/sdk/conference.html?highlight=level#_CPPv4N7dolbyio5comms8services10conference20get_all_audio_levelsEv
https://api-references.dolby.io/comms-sdk-cpp/api/sdk/conference.html?highlight=level#_CPPv4N7dolbyio5comms8services10conference15get_audio_levelERKNSt6stringE

it would be better to have a configurable event so the sdk can manage this for me.
for example:
set the event interval get_all_audio_levels(int interval)
register callback virtual async_result<event_handler_id> add_event_handler(event_handler<dolbyio::comms::audio_level> &&callback)=0

library path hardcoded?

Got this error when trying to launch desktop_app:
dyld[92874]: Library not loaded: '/Users/dolbyvoice/builds/dDLzDfbp/1/voxeet/cpp/sdk/ext-lib/macos/ffmpeg/lib/libavcodec.58.dylib'

I set the LD_LIBRARY_PATH pointing to the sdk-release/lib where it does have that library.

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.