This document provides an introduction and overview of a tutorial on digital TV (DTV) and the Ginga middleware. It is divided into four parts: 1) an overview of DTV reference models, 2) middleware design decisions, 3) the Ginga middleware architecture with a focus on its declarative environment, and 4) future research directions. The document introduces key concepts such as DTV workflows, standards, transport streams, applications, and interactivity considerations. It discusses requirements for the Ginga middleware in Brazil including support for inclusion applications and an easy to use declarative language.