diff options
author | Andreas Huber <andih@google.com> | 2013-03-25 15:46:52 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2013-03-25 16:20:26 -0700 |
commit | 2aea9552aeba92bbaf9e56c666049ea2d14057b5 (patch) | |
tree | fc3cdb049837a7bdd7452620b9b596aad2c831d3 /media/libstagefright/wifi-display/MediaReceiver.cpp | |
parent | f90debb467a0daf5288e7d8684642ef1119c4bad (diff) | |
download | frameworks_av-2aea9552aeba92bbaf9e56c666049ea2d14057b5.zip frameworks_av-2aea9552aeba92bbaf9e56c666049ea2d14057b5.tar.gz frameworks_av-2aea9552aeba92bbaf9e56c666049ea2d14057b5.tar.bz2 |
In "special" mode we now establish a UDP RTCP channel in addition to the
TCP RTP channel and provide feedback on the latency of arriving packets from
the sink back to the source. This information is then used to throttle
video bitrate.
Change-Id: Ic589a3cb65e4893a3ff67de947da6063d32a1c6e
Diffstat (limited to 'media/libstagefright/wifi-display/MediaReceiver.cpp')
-rw-r--r-- | media/libstagefright/wifi-display/MediaReceiver.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/media/libstagefright/wifi-display/MediaReceiver.cpp b/media/libstagefright/wifi-display/MediaReceiver.cpp index e2e791d..364acb9 100644 --- a/media/libstagefright/wifi-display/MediaReceiver.cpp +++ b/media/libstagefright/wifi-display/MediaReceiver.cpp @@ -47,7 +47,8 @@ MediaReceiver::~MediaReceiver() { } ssize_t MediaReceiver::addTrack( - RTPReceiver::TransportMode transportMode, + RTPReceiver::TransportMode rtpMode, + RTPReceiver::TransportMode rtcpMode, int32_t *localRTPPort) { if (mMode != MODE_UNDEFINED) { return INVALID_OPERATION; @@ -74,10 +75,8 @@ ssize_t MediaReceiver::addTrack( 97, RTPReceiver::PACKETIZATION_H264); status_t err = info.mReceiver->initAsync( - transportMode, // rtpMode - transportMode == RTPReceiver::TRANSPORT_UDP - ? transportMode - : RTPReceiver::TRANSPORT_NONE, // rtcpMode + rtpMode, + rtcpMode, localRTPPort); if (err != OK) { @@ -314,13 +313,14 @@ void MediaReceiver::postAccessUnit( notify->post(); } -status_t MediaReceiver::notifyLateness(size_t trackIndex, int64_t latenessUs) { +status_t MediaReceiver::informSender( + size_t trackIndex, const sp<AMessage> ¶ms) { if (trackIndex >= mTrackInfos.size()) { return -ERANGE; } TrackInfo *info = &mTrackInfos.editItemAt(trackIndex); - return info->mReceiver->notifyLateness(latenessUs); + return info->mReceiver->informSender(params); } } // namespace android |