GithubHelp home page GithubHelp logo

anthrax3 / androidtv-sample-inputs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlesamples/androidtv-sample-inputs

0.0 2.0 0.0 23.43 MB

Sample Channel App (TV Input Service) on Android TV using TIF

Home Page: https://developer.android.com/training/tv/tif

License: Apache License 2.0

Java 100.00%

androidtv-sample-inputs's Introduction

Sample Android TV Channel App (TV Input) using TIF

This app is designed to show how to build live TV channel apps for Android TV using the TV Input Framework (TIF). The sample is a service that once installed, is recognized and run by the default TV app (e.g. Live Channels app).

Introduction

The sample app consists of a single TV input: 4 channels consisting of MP4 videos, HLS stream and MPEG-DASH stream, organized into various genres. The video files are served from Google Cloud Storage.

References and Developer Guides

TIF Companion Library

This app uses the TIF Companion Library. The source code for the library is in the library directory. To use this library in your project, copy the directory over or use the following Gradle dependency:

compile 'com.google.android.libraries.tv:companionlibrary:0.1'

Pre-requisites

Getting Started

Note that the Live Channels app does not show up in Apps on Home screen unless there is at least one TV input service or a physical input like HDMI1.

To set up the TV input:

  • Start Live Channels app
  • Click Search to search for and add channels
  • Alternatively within Live Channels app,
    • Click ENTER to bring out Recent Channels
    • Click DOWN to enter TV options
    • Click RIGHT to Channel sources and select it
    • Click DOWN to select Rich Input and click ENTER to select it
    • Click ADD CHANNELS NOW to add channels of MP4 videos, HLS stream and MPEG-DASH stream
  • To watch sample channels, simply toggle UP and DOWN to switch channels
  • Visit Channel Sources -> Rich Input -> Settings to see mock options for input settings.

Screenshots

TV program guide TV options TV options:channel sources Add Rich TV Input

Support

License

License under the Apache 2.0 license. See the LICENSE file for details.

How to make contributions?

Please read and follow the steps in the CONTRIBUTING.md

Notice

Images/videos used in this sample are courtesy of the Blender Foundation, shared under copyright or Creative Commons license.

  • Elephant's Dream: (c) copyright 2006, Blender Foundation / Netherlands Media Art Institute / www.elephantsdream.org
  • Sintel: (c) copyright Blender Foundation | www.sintel.org
  • Tears of Steel: (CC) Blender Foundation | mango.blender.org
  • Big Buck Bunny: (c) copyright 2008, Blender Foundation / www.bigbuckbunny.org

androidtv-sample-inputs's People

Contributors

chalko avatar flamme avatar fleker avatar guangstick avatar jaewan-github avatar naokigoogle avatar ryanseys avatar shawngit avatar smishra2 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.