class RETerm::Components::YouTube
YouTube
viewer, use cmds to render youtube to ascii:
youtube-dl <url> mplayer -vo aa <file> -or- CACA_DRIVER=ncurses mplayer -vo caca <file>
Public Class Methods
new(args={})
click to toggle source
Initialize the YouTube
component
@param [Hash] args youtube params @option args [String] :url url of the video
to load
Calls superclass method
RETerm::Components::CmdOutput::new
# File lib/reterm/components/youtube.rb, line 13 def initialize(args={}) @url = args[:url] cmd = "..." super(args.merge(:cmd => cmd)) end