2013-08-18, 08:13
Work in Progress:
People keep talking about integrating Chromecast and XBMC so I thought I would see if I could implement a Chromecast Receiver app on a XBMC box. The approach is to set up leapcast which in turn opens google-chrome. The chromium-browser included in most linux distros doesn't seem to work, you need the full job from Google. This has been tested on Mythbuntu 12.04, which I use as a basis for my media machines.
(Actually this has little to do with XBMC - leapcast sits in the background until someone casts to it, then it pops up google-chrome fullscreen to play the video, then chrome can be closed either with the sending machine (typically your smartphone) or with a keypress that you assign on your remote.)
1. Install Prerequisites
We need git to get the leapcast source code and we need python-tornado and python-setuptools as a pre-requisite of leapcast:
2. Install leapcast
leapcast should be installed to /usr/local/bin/leapcast
3. Install google-chrome
First it's dependencies:
I found instructions which suggested this way to install google-chrome:
64 Bit Systems
32 Bit Systems
4. Run it
I found this commandline ran it best:
Now get your android or iphone cast something to it via the youtube app.
5. To Do
*Implement remote control keybindings
*Make a startup script so it runs on boot
*Work out why my android phone doesn't let me choose which of several leapcasts running in the house to cast to.
People keep talking about integrating Chromecast and XBMC so I thought I would see if I could implement a Chromecast Receiver app on a XBMC box. The approach is to set up leapcast which in turn opens google-chrome. The chromium-browser included in most linux distros doesn't seem to work, you need the full job from Google. This has been tested on Mythbuntu 12.04, which I use as a basis for my media machines.
(Actually this has little to do with XBMC - leapcast sits in the background until someone casts to it, then it pops up google-chrome fullscreen to play the video, then chrome can be closed either with the sending machine (typically your smartphone) or with a keypress that you assign on your remote.)
1. Install Prerequisites
We need git to get the leapcast source code and we need python-tornado and python-setuptools as a pre-requisite of leapcast:
Code:
sudo apt-get install git python-tornado python-setuptools
2. Install leapcast
Code:
cd Downloads
git clone https://github.com/dz0ny/leapcast.git
cd leapcast
sudo python setup.py develop
leapcast should be installed to /usr/local/bin/leapcast
3. Install google-chrome
First it's dependencies:
Code:
sudo apt-get install libcurl3 libnspr4-0d
I found instructions which suggested this way to install google-chrome:
64 Bit Systems
Code:
cd ~/Downloads
wget -O g-chrome-NoobsLab64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i g-chrome-NoobsLab64.deb
32 Bit Systems
Code:
cd ~/Downloads
wget -O g-chrome-NoobsLab32.deb https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
sudo dpkg -i g-chrome-NoobsLab32.deb
4. Run it
I found this commandline ran it best:
Code:
DISPLAY=:0 leapcast --user_agent TV --fullscreen --chrome /usr/bin/google-chrome
Now get your android or iphone cast something to it via the youtube app.
5. To Do
*Implement remote control keybindings
*Make a startup script so it runs on boot
*Work out why my android phone doesn't let me choose which of several leapcasts running in the house to cast to.