Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

38 lines
969 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "EpicRtcDataTrackObserver.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(EpicRtcDataTrackObserver)
namespace UE::PixelStreaming2
{
FEpicRtcDataTrackObserver::FEpicRtcDataTrackObserver(TObserverVariant<IPixelStreaming2DataTrackObserver> UserObserver)
: UserObserver(UserObserver)
{
}
void FEpicRtcDataTrackObserver::OnDataTrackState(EpicRtcDataTrackInterface* DataTrack, const EpicRtcTrackState State)
{
if (UserObserver)
{
UserObserver->OnDataTrackState(DataTrack, State);
}
}
void FEpicRtcDataTrackObserver::OnDataTrackMessage(EpicRtcDataTrackInterface* DataTrack)
{
if (UserObserver)
{
UserObserver->OnDataTrackMessage(DataTrack);
}
}
void FEpicRtcDataTrackObserver::OnDataTrackError(EpicRtcDataTrackInterface* DataTrack, const EpicRtcErrorCode Error)
{
if (UserObserver)
{
UserObserver->OnDataTrackError(DataTrack, Error);
}
}
} // namespace UE::PixelStreaming2