.. _injection_example: Example Injector Implementation =============================== Below are the header and cpp files for a Media Injector Implementation. In order for this injector to be used by the C++ SDK, it must be passed to the conference service using the :cpp:func:`dolbyio::comms::services::conference::set_media_source` method. Now when a conference is joined and audio/video is started, this injector is part of the media injection pipeline. The interfaces inherited by this custom_injector example must be implemented by any custom injector intended to inject video and audio frames to a conference. At the bottom of the page is a sample CMakeLists.txt which shows how to create a library for this custom injector, then the library can be linked against the executable shown in the :ref:`getting_started_sample` section if you want to use a custom injector module. custom_injector.h _________________ .. literalinclude:: ../../../src/public/dolbyio/comms/sample/custom_injector/custom_injector.h :language: c++ custom_injector.cc __________________ .. literalinclude:: ../../../src/public/dolbyio/comms/sample/custom_injector/custom_injector.cc :language: c++ CMakeLists.txt _______________ .. literalinclude:: ../../../src/public/dolbyio/comms/sample/custom_injector/CMakeLists.txt :language: console