summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayerSource.h
diff options
context:
space:
mode:
authorRoger Jönsson <roger1.jonsson@sonymobile.com>2013-01-21 17:15:45 +0100
committerAndreas Huber <andih@google.com>2013-02-06 13:37:09 -0800
commitfba60daf77cc74a13ae3bf4b0e9925dd2ee4470c (patch)
tree03c491b66972ce99a18d60511843d37ff2a4a80a /media/libmediaplayerservice/nuplayer/NuPlayerSource.h
parentb50e83eca302a12f0fced6e7bab1b8617d63deaa (diff)
downloadframeworks_av-fba60daf77cc74a13ae3bf4b0e9925dd2ee4470c.zip
frameworks_av-fba60daf77cc74a13ae3bf4b0e9925dd2ee4470c.tar.gz
frameworks_av-fba60daf77cc74a13ae3bf4b0e9925dd2ee4470c.tar.bz2
Enable pause/resume for RTSP streaming
When a stream is paused, RTSP Pause is also sent to the server. Otherwise the buffering might continue until the memory runs out. When the stream is resumed, RTSP Play will be sent in order to resume the buffering. Change-Id: I5dc1761140827c532451638c3fd3f34271e5b9ab
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/NuPlayerSource.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/NuPlayerSource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerSource.h b/media/libmediaplayerservice/nuplayer/NuPlayerSource.h
index df84123..8622abe 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayerSource.h
+++ b/media/libmediaplayerservice/nuplayer/NuPlayerSource.h
@@ -54,6 +54,8 @@ struct NuPlayer::Source : public AHandler {
virtual void start() = 0;
virtual void stop() {}
+ virtual void pause() {}
+ virtual void resume() {}
// Returns OK iff more data was available,
// an error or ERROR_END_OF_STREAM if not.