summaryrefslogtreecommitdiffstats
path: root/include/media/mediaplayer.h
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2013-08-14 18:30:38 -0700
committerLajos Molnar <lajos@google.com>2013-08-15 16:04:58 -0700
commitcbaffcffee6418d678806e63097c19fe26d48fe0 (patch)
tree21af7d5eab33df7c6487290014f29a83b525734c /include/media/mediaplayer.h
parentb8689b31813f55cbc1bf8e9ca0d46a9ee113e38a (diff)
downloadframeworks_av-cbaffcffee6418d678806e63097c19fe26d48fe0.zip
frameworks_av-cbaffcffee6418d678806e63097c19fe26d48fe0.tar.gz
frameworks_av-cbaffcffee6418d678806e63097c19fe26d48fe0.tar.bz2
Add MEDIA_STARTED/PAUSED/STOPPED events to media players
This is needed for the MediaTimeProvider java interface, so it does not continually poll for current media time. Note: NuPlayer and AwesomePlayer do not correctly handle stop (pause instead), so for those we will signal PAUSED. Signed-off-by: Lajos Molnar <lajos@google.com> Change-Id: I3c61e1bda475f131323f475c18a42e3ec66c9ae1 Bug: 10326117
Diffstat (limited to 'include/media/mediaplayer.h')
-rw-r--r--include/media/mediaplayer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/mediaplayer.h b/include/media/mediaplayer.h
index 14381c7..1afd7f7 100644
--- a/include/media/mediaplayer.h
+++ b/include/media/mediaplayer.h
@@ -42,6 +42,9 @@ enum media_event_type {
MEDIA_BUFFERING_UPDATE = 3,
MEDIA_SEEK_COMPLETE = 4,
MEDIA_SET_VIDEO_SIZE = 5,
+ MEDIA_STARTED = 6,
+ MEDIA_PAUSED = 7,
+ MEDIA_STOPPED = 8,
MEDIA_TIMED_TEXT = 99,
MEDIA_ERROR = 100,
MEDIA_INFO = 200,