GithubHelp home page GithubHelp logo

nicolasguzca / multi-live-channel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rokudev/multi-live-channel

0.0 1.0 0.0 645 KB

Channel example of live TV in addition to multiple live streams support

License: Other

Brightscript 100.00%

multi-live-channel's Introduction

Multi Live Channel

Proof of concept streaming channel - for a single live video stream or multiple live stations with navigation. Roku Ads are integrated in the channel. For more info about the Roku Ad Framework, please contact [email protected].

This channel is publishing ready and can be used as a template for a Roku channel.

Sample Multi Station Channel Screen Shot

Use Case

This sample channel is an easy way to publish a live station of multiple live stations. Simply add your stream or video URL, title, and logo.

In addition, the Roku Ad Framework is already integrated into the Channel.

Video Formats: For the full list of supported Video formats on Roku devices, refer to our docs at https://sdkdocs.roku.com/display/sdkdoc/Video+Encoding+Guidelines

How to run this channel

Features

  • Pre-made template for streaming live television content
  • Includes easy functionality to just plug, play, and publish
  • Custom lower third navgiation for supporting multiple channels
  • Incorporates the Roku Ad Framework as an example

Directory Structure

  • Components: SceneGraph Components
    • Config.brs This is a file where the user can enter their stream info
    • HomeScene.brs This is the back-end for the UI. It tracks and monitors video playback to play ads and handles channel change events.
    • HomeScene.xml Creates all SceneGraph nodes displayed in the UI
    • RowListItems.xml Formats RowList to have captions, poster-size, etc.
    • tasks
      • RowListContentTask.xml Goes through stream contents and stores all data in content nodes for RowList
  • Source: Contains Main method
    • Main.brs Creates screen to display UI when channel starts. Contains setup for RAF integration

Channel Flow

  • Event: Upon starting the channel, the stream info is parsed and all content is passed to the SceneGraph nodes.
  • Event: The content is loaded into a RowList and all channel artwork is created.
  • Event: The main thread calls for a pre-roll add to play. Afterwards, the user's content will play.
  • User: If the channel contains more than one stream, the user is presented with a RowList that can toggle between channels.
  • Event: Upon choosing a new channel, a pre-roll ad is played. If the same channel is streaming for 20 mintues, a mid-roll ad will play.

multi-live-channel's People

Contributors

chris-trag avatar dannykng avatar

Watchers

 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.