OSDN Git Service

TIF: call tune() in HardwareSession
authorDongwon Kang <dwkang@google.com>
Fri, 28 Nov 2014 10:40:36 +0000 (19:40 +0900)
committerDongwon Kang <dwkang@google.com>
Fri, 28 Nov 2014 10:40:36 +0000 (19:40 +0900)
Background: The underlying passthrough TV input expects tune() command
to show video on the screen and call notifyVideoAvailable().

Bug: 18551619
Change-Id: I257db321c09d621e6bd3c0e69bfe0abfca5742a9

media/java/android/media/tv/TvInputService.java

index 93cca2f..b19a1fb 100644 (file)
@@ -1210,6 +1210,7 @@ public abstract class TvInputService extends Service {
                 }
                 mServiceHandler.obtainMessage(ServiceHandler.DO_NOTIFY_SESSION_CREATED, args)
                         .sendToTarget();
+                session.tune(TvContract.buildChannelUriForPassthroughInput(getHardwareInputId()));
             }
 
             @Override