Skip to content

Commit

Permalink
Added support for data track in push provider
Browse files Browse the repository at this point in the history
Keukhan committed Dec 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6f891dc commit ac39955
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/projects/publishers/push/push_stream.cpp
Original file line number Diff line number Diff line change
@@ -88,6 +88,11 @@ namespace pub
SendFrame(media_packet);
}

void PushStream::SendDataFrame(const std::shared_ptr<MediaPacket> &media_packet)
{
SendFrame(media_packet);
}

std::shared_ptr<pub::Session> PushStream::CreatePushSession(std::shared_ptr<info::Push> &push)
{
auto session = std::static_pointer_cast<pub::Session>(PushSession::Create(GetApplication(), GetSharedPtrAs<pub::Stream>(), this->IssueUniqueSessionId(), push));
2 changes: 1 addition & 1 deletion src/projects/publishers/push/push_stream.h
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ namespace pub
void SendFrame(const std::shared_ptr<MediaPacket> &media_packet);
void SendVideoFrame(const std::shared_ptr<MediaPacket> &media_packet) override;
void SendAudioFrame(const std::shared_ptr<MediaPacket> &media_packet) override;
void SendDataFrame(const std::shared_ptr<MediaPacket> &media_packet) override {} // Not supported
void SendDataFrame(const std::shared_ptr<MediaPacket> &media_packet) override;

std::shared_ptr<pub::Session> CreatePushSession(std::shared_ptr<info::Push> &push) override;

0 comments on commit ac39955

Please sign in to comment.