video_sink_encoded

Module: Media Recorder API

The interface for receiving the encoded video frames.

#include <media_engine.h>

Public Functions

Name
virtual voidset_codec_name(const std::string & codec, const std::string & track_id) =0
The callback that is invoked when a new video track is available. The callback allows setting the corresponding codec for the video track.
virtual voidhandle_frame_encoded(const std::string & track_id, std::unique_ptr< encoded_video_frame > frame) =0
The callback that is invoked when a new encoded video frame is ready to be processed.
class dolbyio::comms::video_sink_encoded;

Public Functions Documentation

function set_codec_name

virtual void set_codec_name(
    const std::string & codec,
    const std::string & track_id
) =0

The callback that is invoked when a new video track is available. The callback allows setting the corresponding codec for the video track.

Parameters:

  • codec The codec of the video track.
  • track_id The ID of the video track.

function handle_frame_encoded

virtual void handle_frame_encoded(
    const std::string & track_id,
    std::unique_ptr< encoded_video_frame > frame
) =0

The callback that is invoked when a new encoded video frame is ready to be processed.

Parameters:

  • track_id The ID of the video track.
  • frame The encoded video frame.


Did this page help you?