Improve TransportController demo.

This is an actually realistic implementation of a
video player.  It's still delibrately simple, but it's
not outright broken.  We now have our own media controller
since that is the only way to get something that actually
works, we use system UI flags to hide nav/status bar when
playing, we use the new TransportController APIs to go
into a formal playback state where we take audio focus.

Change-Id: I19ac171483637b8ee94c9c07aea39c11748cbc46
This commit is contained in:
Dianne Hackborn
2013-04-04 18:36:56 -07:00
parent e5d68096be
commit 9b4e96dcb8
5 changed files with 732 additions and 28 deletions

View File

@@ -167,7 +167,7 @@ public class VideoPlayerActivity extends Activity
h.removeCallbacks(mNavHider);
if (!mMenusOpen && !mPaused) {
// If the menus are open or play is paused, we will not auto-hide.
h.postDelayed(mNavHider, 1500);
h.postDelayed(mNavHider, 3000);
}
}
}