Skip to content

ITVlab/SubChannel

Repository files navigation

SubChannel

Videos from various subreddits that can be played through the Live Channels App, on Android TV

Download the app from Google Play.

You can also sign up for the beta.

Background

Reddit is a popular source for curated content. Users are able to pick what submissions are the best. This content can be found in the "top" or "hot" sections of Reddit.

What this app does is integrates this hot content with the TV Input Framework. A JobService runs periodically to pull the top content from each selected Subreddit, extract all of the videos, and place them into the program guide.

At this moment, only YouTube videos are playable. Some good examples of Subreddits are /r/YouTubeHaiku and /r/lectures. A variety of good subreddits to add are provided in the app itself.

How Does This Work?

Since the standard Android YouTube SDK doesn't work for video playback, this uses a WebView and loads the YouTube URLs. Then, playback is controlled through JavaScript. The code for doing so is available as a separate library, the YouTube TV Player.

DVR

If your Android TV is running Android 7.0 and up, you will have access to the DVR feature. This will allow certain programs to be saved. Programs are not stored on the device. It is more like a bookmark, where the metadata is saved. Playing that video will start playing the YouTube video.

Compiling

If you encounter any issues in getting the app to build and compile on a device, try running Clean Project first. Then building should work. You'll still see a number of errors but they're benign.

Contributing

If you have any feedback, feel free to write an issue or contribute to the codebase. Pull requests are welcomed.

Known Issues

  • Program guide doesn't match what's playing
    • Yes, I currently don't have the duration of each video, so the guide may be out of sync. However, I do pull from that same guide to get every video.
  • General playback issues
    • Yes, the YouTube Tv Player is still buggy. Refer to that project for issues and upadtes.

About

Videos from various subreddits that can be played through the Live Channels App, on Android TV

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages