The DefaultControlsSource directory contains the default Ooyala player skin. This directory includes source Java programs that control the layout of the video player on the device, both the default and for inline or fullscreen display, including the following:
- OoyalaPlayerControls.java is the program that actually implements the layout whose name you pass it.
- OoyalaPlayerLayoutController.java is a generic LayoutController that will work in most cases (regardless of the containing Layout type). It uses basic controls and allows additional overlays to be added. Fullscreening is done by opening a full screen Dialog and filling it with a dynamically created OoyalaPlayerLayout. Because of this, playback will be suspended and subsequently resumed during this process. As a result, fullscreening is slower than if the OoyalaPlayerLayout is embedded directly in the Activity's base layout, that base layout is a FrameLayout, and the LayoutController used is FastOoyalaPlayerLayoutController.
- The recommended OptimizedOoyalaPlayerLayoutController.java is a faster LayoutController that will work only on one specific case: The OoyalaPlayerLayout it controls is a direct child of the Activity's base layout which is a FrameLayout. This LayoutController uses basic controls and allows additional overlays to be added. Fullscreening is done by simply resizing the OoyalaPlayerLayout to fill the entire screen, which does not trigger a player reload thus causing this to be much faster at Fullscreening than OoyalaPlayerLayoutController.
Note: If you decide to use any layout other than the default, be sure to change your project's LinearLayout element to use the name of the layout you desire. See the final step in Creating a Basic Android App.