Skip to content

Commit 113d995

Browse files
committed
fix lost file
1 parent dfd53e7 commit 113d995

File tree

2 files changed

+0
-54
lines changed

2 files changed

+0
-54
lines changed

demo/Server.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,6 @@ std::shared_ptr<Room> SfuServer::getOrCreateRoom(const oatpp::String& roomId)
706706
// Create room instance
707707
room = std::make_shared<Room>(roomId, mediasoupRouter);
708708
room->setConfig(this->m_pConfig);
709-
room->createPushPeer(room);
710709
//add to room map
711710
m_rooms[roomId] = room;
712711
}

mediasoup/Router.hpp

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "PlainTransport.hpp"
1212
#include "PipeTransport.hpp"
1313
#include "DirectTransport.hpp"
14-
#include "PushTransport.hpp"
1514
#include "Producer.hpp"
1615
#include "Consumer.hpp"
1716
#include "DataProducer.hpp"
@@ -845,58 +844,6 @@ class Router : public EnhancedEventEmitter, public std::enable_shared_from_thi
845844
return transport;
846845
}
847846

848-
std::shared_ptr<PushTransport> createPushTransport(
849-
PushTransportOptions& options
850-
)
851-
{
852-
MS_lOGD("createPushTransport()");
853-
json internal = this->_internal;
854-
internal["transportId"] = uuidv4();
855-
const json reqData;
856-
json appData = options.appData;
857-
858-
json data =
859-
this->_channel->request("router.createPushTransport", internal, reqData);
860-
TransportParams params;
861-
params.internal = internal;
862-
params.data = data;
863-
params.channel = this->_channel;
864-
params.payloadChannel = this->_payloadChannel;
865-
params.appData = appData;
866-
params.getRouterRtpCapabilities = this->getRouterRtpCapabilitiesFunc;
867-
params.getProducerById = this->getProducerByIdFunc;
868-
params.getDataProducerById = this->getDataProducerByIdFunc;
869-
870-
std::shared_ptr<PushTransport> transport = std::make_shared<PushTransport>(params);
871-
transport->handleWorkerNotifications();
872-
873-
this->_transports[transport->id()] = transport;
874-
//transport.on('@close', () => this->_transports.delete(transport.id));
875-
transport->on("@close", [self = shared_from_this(), transport]()
876-
{
877-
self->_transports.erase(transport->id());
878-
879-
});
880-
881-
//transport.on('@newproducer', (producer: Producer) => this->_producers.set(producer.id, producer));
882-
transport->on("@newproducer", [self = shared_from_this()](std::shared_ptr<Producer>& producer)
883-
{
884-
self->_producers[producer->id()] = producer;
885-
});
886-
//transport.on('@producerclose', (producer: Producer) => this->_producers.delete(producer.id));
887-
transport->on("@producerclose", [self = shared_from_this()](std::shared_ptr<Producer>& producer)
888-
{
889-
self->_producers.erase(producer->id());
890-
});
891-
892-
// Emit observer event.
893-
this->_observer->safeEmit("newtransport", transport);
894-
895-
return transport;
896-
}
897-
898-
899-
900847
/**
901848
* Pipes the given Producer or DataProducer into another Router in same host.
902849
*/

0 commit comments

Comments
 (0)