菜单

树莓派安装chromium谷歌浏览器和YOUTUBE播放器

2017年1月13日 - 嵌入式

今天突然想尝试一下为树莓派安装谷歌浏览器,后来发现本来就是谷歌好像。。。。

我也不知道是不是我装的谷歌,仍然无法播放flash视频。我本来是想用树莓派去利用python爬虫去爬视频网站的视频的,后来突然觉得直接在线看看,看看是否比较卡。所以就准备尝试一下。

我的思路是:先获取能够下载rpi-youtube的仓库,然后拿到这个仓库下载的公钥,然后添加进我的公钥列表里,然后更新我的本地sources.list,添加一个源,然后更新后安装软件包,操作如下:

wget -qO – http://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add –
echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install chromium-browser rpi-youtube -y

然后接着就是去到谷歌商店安装rpi-youtube 的插件,这样,你树莓派的rpi-youtube 就可以和谷歌浏览器一起播放视频了,速度还不错。

前提是你家里路由器已经翻墙。

老外是这么写的:

You should have Chromium 49 and RPi-youtube now installed! Simply install the extension from the Chrome web store (rpi-youtube) and click on the icon whenever you want smoother video viewing, on any supported website. 
RPi-youtube, view youtube locally (much smoother)
http://kusti8.github.io/RPi-chromium/
I've released a Chromium extension for the RPi that allows you to play youtube videos in omxplayer, allowing much smoother playback. 
Currently, when you install the extension and all the required files, when you visit a youtube video it will prompt you if you want to view the video locally. If you visit another video site and click on the icon, the same should happen, support more than 600 websites. After pressing OK and waiting a few seconds, omxplayerGUI will pop up displaying the video. It's as simple as that!
Supported sites
http://rg3.github.io/youtube-dl/supportedsites.html

好了,去体验一把吧。

发表评论