Giter Club home page Giter Club logo

ytjs-mre's Introduction

YT.js - MRE

Minimal Reproducible Example of network issue in YouTube.js for issue #690 on LuanRT/YouTube.js. Uses Expo and React Native and will require you to install a development APK to your phone for you to run the app. That is available at

https://drive.google.com/file/d/1yBQ5MdLuyqMG-0VCueRHeJFkWbM0UWio/view?usp=drive_link

Download and Install this to your phone (steps will differ slightly based on phone). The phone may warn you about it being potentially harmful, this is just since it's an APK from online.

All of the code that interacts with YouTube.js lives in the App.tsx file (which is just typescript). The platform shims that make it work are in Innertube.tsx and the actual library is in youtubei.js.

Get Started

Clone this Repo (to your computer)

  git clone https://github.com/sgebr01/ytjs-mre

Install Packages with NPM

  npm install

Then, update the package.json for the library jintr in node_modules. Add the field "main": "./dist/index.d.ts to node_modules/jintr/package.json

Start the server with npm start

   npm start

Then to connect the development APK on your phone to the computer you will need to scan the QR Code that appears in your terminal with your phone's camera app.

From there, it should connect and you can edit any files you'd like and it will instantly reload. All of the app logic is located in app.tsx, and the API interaction with youtubei.js is in the load() function within it.

The youtube.js library is in the youtubei.js folder (not in node_modules) since I had to update some shims to make it work with react native

If you have any questions or any issues arise setting this up, feel free to contact me through [email protected] or through the original issue

ytjs-mre's People

Contributors

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