diff options
Diffstat (limited to 'media/libstagefright/rtsp/ARTPConnection.h')
-rw-r--r-- | media/libstagefright/rtsp/ARTPConnection.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libstagefright/rtsp/ARTPConnection.h b/media/libstagefright/rtsp/ARTPConnection.h index c535199..77f81fa 100644 --- a/media/libstagefright/rtsp/ARTPConnection.h +++ b/media/libstagefright/rtsp/ARTPConnection.h @@ -38,10 +38,13 @@ struct ARTPConnection : public AHandler { void addStream( int rtpSocket, int rtcpSocket, const sp<ASessionDescription> &sessionDesc, size_t index, - const sp<AMessage> ¬ify); + const sp<AMessage> ¬ify, + bool injected); void removeStream(int rtpSocket, int rtcpSocket); + void injectPacket(int index, const sp<ABuffer> &buffer); + // Creates a pair of UDP datagram sockets bound to adjacent ports // (the rtpSocket is bound to an even port, the rtcpSocket to the // next higher port). @@ -57,6 +60,7 @@ private: kWhatAddStream, kWhatRemoveStream, kWhatPollStreams, + kWhatInjectPacket, }; static const int64_t kSelectTimeoutUs; @@ -72,6 +76,7 @@ private: void onAddStream(const sp<AMessage> &msg); void onRemoveStream(const sp<AMessage> &msg); void onPollStreams(); + void onInjectPacket(const sp<AMessage> &msg); void onSendReceiverReports(); status_t receive(StreamInfo *info, bool receiveRTP); |