Git Product home page Git Product logo

ivy-youtube's Introduction

MIT licensed

#Ivy-YouTube

Ivy-YouTube is a simple plugin to query YouTube via emacs and play videos in your browser.

IMPORTANT: Remember to set your 'ivy-youtube-key' variable!

Based on Helm-Youtube

This package was based on Maximilian Roquemore's package called helm-youtube. Thanks Maximilian to create this awesome package.

Installation

The installation process is very simple:

  • M-x package-install: ivy-youtube

  • Obtain new google API key here

    Screenshot

    • To create this API key you need to go to Credentials -> Create Credentials and select API Key
    • After create you need to enable it: go to Library, select YouTube Data API and click in Enable button on top.
  • IMPORTANT: Set 'ivy-youtube-key' variable

    M-x customize-variable ;; search 'ivy-youtube-key'
    Ivy Youtube Key: replace "NONE" with "API KEY" ;; FROM STEP 2

Where do you want to play the video?

By default Ivy Youtube play the selected video in your default browser, but you can configure that:

Change the default browser:

Set browse-url-generic and add to .emacs

;;start ivy-youtube.el
(autoload 'ivy-youtube "ivy-youtube" nil t)
(global-set-key (kbd "C-c y") 'ivy-youtube) ;; bind hotkey

;;set default browser for you will use to play videos/default generic
(setq browse-url-browser-function 'browse-url-generic)
(setq browse-url-generic-program "google-chrome-open-url")

Using an external player (beta)

You can set a external player to watch your videos, like mpv or vlc. To do that you need to set the custom varialble ivy-youtube-play-at: M-x customize-variable<RET>ivy-youtube-play-at<RET>. You can set in this field any binary that receives the youtube url as parameter like: /usr/bin/mpv or /usr/bin/vlc.

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.