diff options
Diffstat (limited to 'include/media/IMediaPlayerService.h')
-rw-r--r-- | include/media/IMediaPlayerService.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/media/IMediaPlayerService.h b/include/media/IMediaPlayerService.h index 76c45a0..c4c37b6 100644 --- a/include/media/IMediaPlayerService.h +++ b/include/media/IMediaPlayerService.h @@ -34,6 +34,8 @@ namespace android { struct ICrypto; class IMediaRecorder; class IOMX; +class IRemoteDisplay; +class IRemoteDisplayClient; struct IStreamSource; class IMediaPlayerService: public IInterface @@ -50,6 +52,22 @@ public: virtual sp<IOMX> getOMX() = 0; virtual sp<ICrypto> makeCrypto() = 0; + // Connects to a remote display. + // 'iface' specifies the address of the local interface on which to listen for + // a connection from the remote display as an ip address and port number + // of the form "x.x.x.x:y". The media server should call back into the provided remote + // display client when display connection, disconnection or errors occur. + // The assumption is that at most one remote display will be connected to the + // provided interface at a time. + virtual sp<IRemoteDisplay> listenForRemoteDisplay(const sp<IRemoteDisplayClient>& client, + const String8& iface) = 0; + + // If iface == NULL, disable remote display, otherwise + // iface should be of the form "x.x.x.x:y", i.e. ip address + // of the local interface to bind to and the port number + // to listen on. + virtual status_t enableRemoteDisplay(const char *iface) = 0; + // codecs and audio devices usage tracking for the battery app enum BatteryDataBits { // tracking audio codec |