Logo

dev-resources.site

for different kinds of informations.

Introducing ReactTVPlayer: An Open Source Media Player for TV Apps on Devices 📺 🖥️

Published at
9/20/2023
Categories
ott
react
tv
showdev
Author
lewhunt
Categories
4 categories in total
ott
open
react
open
tv
open
showdev
open
Author
7 person written this
lewhunt
open
Introducing ReactTVPlayer: An Open Source Media Player for TV Apps on Devices 📺 🖥️

I'm excited to share React TV Player - a free to use open source React media player component designed for TV, aiming to lower the barrier to entry and simplify playback in big-screen web apps! 🙌

With a customizable UI and easy arrow-key navigation, it can play a variety of urls like Dash/HLS streams and it even supports YouTube, Twitch & Vimeo videos - saving the cost and hassle of additional media encoding 🎉


Live demo (for desktop browsers)

Github repo (full readme info and source code)


Installation

It has been built as an npm package for easy install:



npm install react-tv-player


Enter fullscreen mode Exit fullscreen mode

Usage

Then just import the player and render it in your App/Page



import React from "react";
import { TVPlayer } from "react-tv-player";
function App() {
  return (
    <>
      <TVPlayer url="https://www.youtube.com/watch?v=SkVqJ1SGeL0" />
    </>
  );
}


Enter fullscreen mode Exit fullscreen mode

The demo's source code App.tsx illustrates how the component can be initialised with more props such as metadata, custom buttons, preview images and multiple media...



<TVPlayer
  title={mediaList[mediaIndex].title}
  subTitle={mediaList[mediaIndex].subTitle}
  url={mediaList[mediaIndex].url}
  light={mediaList[mediaIndex].preview}
  customButtons={customButtons}
  mediaCount={mediaList.length}
  onLikePress={handleLike}
/>


Enter fullscreen mode Exit fullscreen mode

The Github readme details the props available plus the more advanced methods and hooks available to you.


Why Another Player?

In the dynamic landscape of the OTT TV industry, I've dedicated years working with various players. During this journey, two persistent challenges surfaced time and again: performant UI and compatible media encodings. These hurdles often forced us to heavily customise players and tackle streaming difficulties, leading to added costs and frustrating delays. 😫

Enter ReactTVPlayer, an open-source component that seamlessly integrates with your React applications...

What Sets It Apart?

It's designed for TV experiences out of the box, complete with customisable UI buttons and intuitive arrow key plus cursor navigation. 🎮 In addition to handling HLS and Dash streams effortlessly, it tackles the formidable challenge of playing YouTube and Vimeo urls directly on TV. Supporting YouTube/Vimeo eliminates the need for custom media encoding when it's not always necessary or even affordable. 🎉

How Does It Work?

Under the hood, this component harnesses the power of open-source libraries like Norigin Media's spatial navigation hook. It builds upon the excellence of React Player, which utilises hls.js and dash.js. Powered by React TypeScript (although you don't need to use TypeScript to make the most of it), this library is packaged efficiently using Vite, making integration a breeze. 💪

From Amazon FireTV sticks and Samsung Tizen Smart TVs to Xbox, LG webOS and even desktop-based web apps, ReactTVPlayer aims to cover a vast landscape of devices, especially those post-2018 with modern Chromium browsers. 📺 🖥️ 💻


I hope this post has given you a good intro to the component and how it can help simplify and enhance the playback experiences in your next big-screen web apps! 🙌


Live demo (for desktop browsers)

Github repo (full readme info and source code)


https://github.com/lewhunt/react-tv-player

ott Article's
30 articles in total
Favicon
How to Develop an OTT App like Netflix?
Favicon
Comprehensive Guide to Video Streaming Solutions by Mogi I/O
Favicon
OTT Platforms: Revolutionizing the Way We Consume Content
Favicon
Video Streaming for Fitness: A Powerful Tool with Mogi I/O’s OTT Streaming Solution
Favicon
Live Streaming Platform Provider: Unlock Seamless Real-Time Broadcasting with Mogi I/O
Favicon
What is OTT, and How does it function?
Favicon
Mastering the Stream: 6 ways of Roadmap for Future-Proof OTT App Development
Favicon
How to Develop an OTT Platform?
Favicon
Streaming Excellence: Crafting an Exceptional OTT Client Side Application
Favicon
Decoding OTT: Unraveling the Architecture Behind Seamless Streaming
Favicon
Revolutionizing Content Delivery: An Introduction to Video Encoding and OTT Streaming
Favicon
StreamEase: Navigating OTT Content Management
Favicon
Implementing Video Streaming Protocols in OTT Apps
Favicon
VOD, OTT, Live TV Content Distribution and Playback Workflow
Favicon
Introducing ReactTVPlayer: An Open Source Media Player for TV Apps on Devices 📺 🖥️
Favicon
Metadata in VOD OTT: A Deep Dive into Descriptions, OG, SEO, and VOD Solutions
Favicon
How To Start Your Own IPTV Service
Favicon
Most Common Examples of Fallacies in Advertising
Favicon
VOD VS OTT Clash in a Battle for Viewership
Favicon
OTT Platform: The Comprehensive Guide For Beginners
Favicon
What is OTT and Why It's Important for Your Business?
Favicon
What is the difference between VOD and OTT Streaming
Favicon
Unveiling Samsung Galaxy Z Fold4 For Mobile App Testing
Favicon
LIVE With Automation Testing For OTT Streaming Devices 📺
Favicon
6 Essential Tips to Optimize Your OTT Platform Strategy in 2023 [Updated]
Favicon
How to create your own OTT platform
Favicon
What is OTT? The Complete Guide you must know in 2022
Favicon
What Is VOD (Video On Demand)?
Favicon
What is OTT? How does it work?
Favicon
Top 10 Important Features required in an OTT Video CMS Platform

Featured ones: