Socket
Socket
Sign inDemoInstall

youtube-remote

Package Overview
Dependencies
70
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    youtube-remote

Youtube Leanback API wrapper


Version published
Weekly downloads
694
decreased by-17.58%
Maintainers
1
Install size
2.09 MB
Created
Weekly downloads
 

Readme

Source

youtube-remote

NPM Version Build Status Dependency Status Standard - Javascript Style Guide

Youtube API wrapper to control your device.

Installation

npm install youtube-remote

Usage

const YoutubeRemote = require('youtube-remote')

const client = new YoutubeRemote(screenId)

// Play a Youtube video by id
client.playVideo('LqYIKYEnX7Y', function (err) {
  if (err) return console.log('Error: ', err)
  console.log('Playing video :)')
})

API

client = new YoutubeRemote(screenId)

Start a new remote connection.

screenId is the screen identifier of the device you you want to connect to.

client.playVideo(videoId, [listId, callback])

Start a new queue (or playlist) and start playing a new Youtube video.

Use listId to provide the identifier of a Yotube playlist.

client.addToQueue(videoId, [callback])

Add a new video to the queue.

client.playNext(videoId, [callback])

Add a new video to the queue just after the current one.

client.removeVideo(videoId, [callback])

Remove a video from the queue.

client.clearPlaylist([callback])

Clear the current playlist.

License

MIT. Copyright (c) Alex

Keywords

FAQs

Last updated on 15 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc