summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
diff options
context:
space:
mode:
authorLi Sun <sunli@codeaurora.org>2015-08-31 22:39:13 +0800
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:59 -0600
commit562092cd2ad4cadc6555d582945c78465f613a12 (patch)
tree92afd2649f0d81e0aa71a7c2d4865af8cb3b2d6e /media/libmediaplayerservice/nuplayer/NuPlayer.cpp
parentbda215ba50dd406845bf4c3842d6d5f3c4380d6c (diff)
downloadframeworks_av-562092cd2ad4cadc6555d582945c78465f613a12.zip
frameworks_av-562092cd2ad4cadc6555d582945c78465f613a12.tar.gz
frameworks_av-562092cd2ad4cadc6555d582945c78465f613a12.tar.bz2
rtsp: notify the client when receiving BYE message in RTCP
RTSP stack would parse "BYE" message from RTCP packets and notify NuPlayer which will send the notification to the client. Change-Id: I461960f28610f998b71a6e1322fe79f9856c7a92
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayer.cpp')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
index 1767eb0..86c35e2 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
+++ b/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
@@ -2232,6 +2232,13 @@ void NuPlayer::onSourceNotify(const sp<AMessage> &msg) {
break;
}
+ case Source::kWhatRTCPByeReceived:
+ {
+ ALOGV("notify the client that Bye message is received");
+ notifyListener(MEDIA_INFO, 2000, 0);
+ break;
+ }
+
default:
TRESPASS();
}