@@ -468,26 +468,32 @@ void Room::setOnAudioFrameCallback(const std::string& participant_identity, cons
468468 AudioFrameCallback callback, const AudioStream::Options& opts) {
469469 bool const result = trySetOnAudioFrameCallback (participant_identity, track_name, std::move (callback), opts);
470470 if (!result) {
471- LK_LOG_ERROR (" Room::setOnAudioFrameCallback: failed to set callback for participant={} track_name={}" ,
472- participant_identity, track_name);
471+ LK_LOG_ERROR (
472+ " Room::setOnAudioFrameCallback: failed to set callback for participant={} track_name={}. This function is "
473+ " deprecated, instead use trySetOnAudioFrameCallback" ,
474+ participant_identity, track_name);
473475 }
474476}
475477
476478void Room::setOnVideoFrameCallback (const std::string& participant_identity, const std::string& track_name,
477479 VideoFrameCallback callback, const VideoStream::Options& opts) {
478480 bool const result = trySetOnVideoFrameCallback (participant_identity, track_name, std::move (callback), opts);
479481 if (!result) {
480- LK_LOG_ERROR (" Room::setOnVideoFrameCallback: failed to set callback for participant={} track_name={}" ,
481- participant_identity, track_name);
482+ LK_LOG_ERROR (
483+ " Room::setOnVideoFrameCallback: failed to set callback for participant={} track_name={}. This function is "
484+ " deprecated, instead use trySetOnVideoFrameCallback" ,
485+ participant_identity, track_name);
482486 }
483487}
484488
485489void Room::setOnVideoFrameEventCallback (const std::string& participant_identity, const std::string& track_name,
486490 VideoFrameEventCallback callback, const VideoStream::Options& opts) {
487491 bool const result = trySetOnVideoFrameEventCallback (participant_identity, track_name, std::move (callback), opts);
488492 if (!result) {
489- LK_LOG_ERROR (" Room::setOnVideoFrameEventCallback: failed to set callback for participant={} track_name={}" ,
490- participant_identity, track_name);
493+ LK_LOG_ERROR (
494+ " Room::setOnVideoFrameEventCallback: failed to set callback for participant={} track_name={}. This function is "
495+ " deprecated, instead use trySetOnVideoFrameEventCallback" ,
496+ participant_identity, track_name);
491497 }
492498}
493499
0 commit comments