TOCPREVNEXTINDEX

 

Table of Contents

1 Overview

What is HME?

HME Protocol

Supported Media File Formats

HME Software Development Kit (SDK)

HME Java Classes

Hosting Interfaces

Samples

About This Guide

Related Documentation

Getting Started

System Requirements

Run HelloWorld in the Simulator

Run HelloWorld Standalone

Run Local HME Applications on the TiVo Box

2 Key Concepts

Application Life Cycle

Initialize

Handle Events

Send Commands from Other Threads

Destroy

Views

HmeObject

View Hierarchy

View Parameters

Removing Views

Painting Efficiently

Resources

Two Techniques for Creating Resources

Performance Tip for Creating Resources

Cleaning Up Resources

Assigning Resources to Views

System Fonts and Sounds

Inlined vs. Streamed Resources

Types of Resources

Colors

Fonts

Text

Images

Sounds

Streams

Animation

Animation Examples

Animation Chaining with Send Event

Syntax for the getResource() Method

Flushing Pending Commands

Events

Key Event

ResourceInfo Event

Resource Status Event

ApplicationInfo Event

DeviceInfo Event

FontInfo Event

Idle Event

Event Flow

Send Event

Processing Streams (ResourceInfo Event)

Image Streams

Audio Streams

Advanced: Active Resource

Sample HME Hosting Environment

Main Class

Application Factory

Context

Persistent Data

Logging

Identifying a Specific Receiver

Obtaining Connection Attributes

Application URL

Application Assets

Custom Factories

Naming a Factory

getAppFactory() Method

3 Interacting with the TiVo Box

Designing for Television

HME Simulator

Features

File Menu

Show Views and Show Highlight

Resource Usage

Show Safe Action

Network Menu

Applications Menu

Other Features

Starting an Application in the Simulator

Command Line Syntax

Key Bindings

Limits

Discovery

Title

Icon

Important Multicast DNS Note

Advanced: Specifying a URI and Title for an Application

Application URI

Application Title

Finding Assets

Working within the TiVo UI

Teleport Keys

Handling the Idle Event

Graceful Exit from Your Application

4. Programming Techniques

Working with Picture Resources

Application Framework

Basic Setup

Pictures Factory

Setting Up Views

Starting the Master Timer

Adding Resources

Event Model

Implementing the Ticker.Client Interface

flush Method

Showing Pictures

Animating Images

Scaling Images

Working with Stream Resources

Basic Setup

Music Factory

User Interface

Track View

Handling Events

Handling Key Press Events

Handling Resouce Status Events

Working with Fonts

FontInfo Event

Basic Font Metrics

Glyph Metrics

Application Framework

Basic Setup

Handle Events

Performance Tips

Rendering Speed

Enable Debug Rendering

Rendering Constraints

Workarounds

Pixel Memory

Caching Resources

Removing Resources


TOCPREVNEXTINDEX