Giter Site home page Giter Site logo

utube's Introduction

utube

Watch YouTube Live Streams via a Cloudflare Worker

Advantages

  • AD free
  • Fast
  • Scalable
  • Secure
  • Serverless

Use-cases

  • Can play on any media player, like VLC, which supports .m3u8
  • Make a .m3u playlist and use it on your Smart TV/Kodi/Android device

How to use

  • Go to https://workers.cloudflare.com/ and create a Cloudflare worker
  • Copy the contents of the worker.js file into the the newly-created worker script file
  • Save and deploy

Your worker route would be something like yourapp.example.workers.dev

To play a live stream you've to pass the YouTube url of the video to the worker For ex: YouTube url : https://www.youtube.com/channel/UCP0uG-mcMImgKnJz-VjJZmQ/live New worker url: https://yourapp.example.workers.dev/?url=https://www.youtube.com/channel/UCP0uG-mcMImgKnJz-VjJZmQ/live

Tip: https://www.youtube.com/channel/UCP0uG-mcMImgKnJz-VjJZmQ/live and https://www.youtube.com/watch?v=jjH6v95z3Nw are both acceptable urls, but the former is preferable as it is a permanent url.

Working demo

https://utube.arapurayil.workers.dev/?url=https://www.youtube.com/channel/UCP0uG-mcMImgKnJz-VjJZmQ/live

Play the above url in VLC media player

utube's People

Contributors

arapurayil 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.