Archive

Posts Tagged ‘youtube’

Play Youtube videos with VLC

November 27, 2012 1 comment

Did you know that VLC media player can play Youtube videos? Neither did I. Try this:

vlc http://www.youtube.com/watch?v=Dmn4gtZWVzw

Does Flash break all the time? Use VLC :)

Tip from here.

Categories: Uncategorized Tags: , ,

Youtube audio player

November 20, 2012 Leave a comment

At http://www.labnol.org/internet/youtube-audio-player/26740/ I found a nice trick to embed just a part of the Youtube Flash player, thus the player looks like an audio player. All you need is a little CSS trick:

Categories: firefox, google, html Tags: , , ,

Play a song with youtube

Say you know the artist and the title of a song and you want to get it played with youtube. How to do that?

First, let’s review what we should know about the “I’m Feeling Lucky” button (long description here). On Google Search, when you type in a search term and you hit the “I’m Feeling Lucky” button, you’ll be redirected to the first search hit. Simply it skips showing the full search result.

If instant results are activated, you can’t click on the “I’m Feeling Lucky” button. In this case visit the Preferences page and switch off the instant results.

Now, back to the original problem. Say you want to play the song “The Prodigy: Out of Space”. Use the following search term:

site:youtube.com inurl:http://www.youtube.com/watch?v= The Prodigy Out of Space

And hit the “I’m Feeling Lucky” button. You are redirected to the video clip.

Now, let’s say you want to open this video clip from a script. You’ll have to visit the following link:

https://www.google.com/search?btnI=I'm+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=site:youtube.com%20inurl:http://www.youtube.com/watch?v=%20The Prodigy Out of Space

You can try it here. Click on this link.

This trick is from here.

Homework
You collect your favourite songs in a plain text file. Each line in the file contains the artist’s name and the title of the song. Write a script that picks a random line and opens the song on youtube.

Minitube – a YouTube desktop application

March 22, 2012 Leave a comment

Minitube is a YouTube desktop application. With it you can watch YouTube videos in a new way: you type a keyword, Minitube gives you an endless video stream. Minitube is not about cloning the original YouTube web interface, it aims to create a new TV-like experience.

Installation

sudo apt-get install minitube
Categories: ubuntu Tags: , ,

Watch YouTube video in full screen inside your browser

March 9, 2011 2 comments

A typical youtube URL looks like this: http://www.youtube.com/watch?v=zatmdqTYivI.

There are two methods to watch it in full screen:

  1. Click on the “full screen” button (with the four arrows) in the bottom right corner of the video. It will be real full screen.
  2. Transform the address to this form: http://www.youtube.com/embed/zatmdqTYivI. It will fill just your browser.

For method #2, I made a simple bookmarklet:

javascript:
var l = document.location;
var h = l.href;
if (/^https?:\/\/www.youtube.com\/watch\?v=([^&]+)/.test(h)) {
    var funny = RegExp.$1;
    var address = 'http://www.youtube.com/embed/' + funny;
    l.href = address;
}
else if (/^https?:\/\/www.youtube.com\/embed\/([^&]+)/.test(h)) {
    var funny = RegExp.$1;
    var address = 'http://www.youtube.com/watch?v=' + funny;
    l.href = address;
}
void(1);

Installation:
Open this page in a new tab. There, you will find a link “YouTube FS”. Drag and drop that link to the bookmark bar.

Usage:
When you watch a youtube video, just click on the bookmarklet to switch to “full screen” mode. If you are in full screen, the bookmarklet will restore the normal mode, i.e. it works in both directions.

Categories: firefox Tags: , ,
Follow

Get every new post delivered to your Inbox.

Join 61 other followers