Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For ages, I've been having problems getting my webcam to play with websites that use Flash. The cam works fine with programs like Camorama, but when I try to use it on a Flash site, Flash always crashes regardless of the browser used (Chrome, Firefox, Opera).

I used to use the workaround described here, but since upgrading to 11.04, even that doesn't work any more. I've tried installing the latest flash beta using the Firefox Flash-Aid plugin, to no effect.

When running Firefox in a terminal and try to test my cam on a website like testmycam.com, I get the following error when Flash crashes:

!!! ABORT: X_GetWindowAttributes: BadWindow (invalid Window parameter); 2 requests ago: file /build/buildd/firefox-5.0+build1+nobinonly/build-tree/mozilla/toolkit/xre/nsX11ErrorHandler.cpp, line 199

Using Flash version 10.3.181.36 and Firefox 5.0

share|improve this question

closed as off topic by Jorge Castro, Mateo_, Basharat Sialvi, Kevin Bowen, vasa1 Apr 9 '13 at 3:14

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
This question should instead be filed as a bug report, and as such is off-topic, thanks! Instructions on filing a bug report are here. –  Jorge Castro Apr 9 '13 at 0:46

3 Answers 3

Based on my personal experience when using the Ultimate Edition DistroPlayer, fully documented here: http://forumubuntusoftware.info/viewtopic.php?f=66&t=4998&start=0 , and information that can be reached here: https://bugs.adobe.com/jira/browse/FP-204, you can use The Flashcam Project in order to gain access to your webcam via Flash Player.

I have tried this both in Firefox and Chromium/Google-Chrome and it works like a charm but I continue experiencing some issues with the stability of the Flash Player when it tries to gain access to my TV Tuner instead of the Webcam itself.

Another temporal solution that I find useful is the usage of the WebCam Studio for GNU/Linux, which will drop a bridge between your physical webcam and a virtual webcam that can be seen and managed by Flash Player.

However, you may experience some issues when using both these tools, anyway it's worth than expecting Flash Player to do what it seems it can't.

Give it a try, and please inform how do you manage this issue. I am yet interested on having the experiences of other people in order to fix my TVTuner/Webcam crashing issue.

Good luck!

share|improve this answer

I personally have quit using flash and use gnash. Which seems to do what flash is suppose to do. I haven't had any issues with my webcam since switching to gnash instead of flash. To install gnash

sudo apt-get install gnash

Hope this helps

share|improve this answer

I have used this script and now work flash, Also works great in the live distro:

#!/bin/bash
echo "***************************************************************************
*****************PLEASE WAIT...DON'T CLOSE THIS TERMINAL!******************
***************************************************************************
***************************************************************************"
sudo -k
echo '***************************************************************************
*************************Starting removal commands*************************
***************************************************************************
***************************************************************************'
sudo rm -f ~/.mozilla/plugins/*flash*so
sudo rm -f /usr/lib/mozilla/plugins/libflashplayer.so
echo '***************************************************************************
*************************Starting update commands**************************
***************************************************************************
***************************************************************************'
echo '***************************************************************************
*************************Starting install commands*************************
***************************************************************************
***************************************************************************'
cd "/root/.mozilla/firefox/nq474mcm.default/extensions/flashaid@lovinglinux.megabyet.net/chrome/content/tmp" && rm -f *flash* && wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.228/install_flash_player_11_linux.x86_64.tar.gz
NEWHASH64=$(md5sum *flash* | sed 's/ .*//g')
if [ "${NEWHASH64}" == '01e4ddb6e87ea8439f4955e83422f82e' ];then
tar xvf *flash* libflashplayer.so && sudo chown root:root libflashplayer.so && sudo chmod 0644 libflashplayer.so && sudo mv libflashplayer.so /usr/lib/mozilla/plugins/ && sudo ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox-addons/plugins/libflashplayer.so && rm -f *flash* && mkdir ~/.mozilla/plugins/
else
echo 'Flash 64bit installation aborted, due to md5 checksum mismatch!'
rm -f *flash* && mkdir ~/.mozilla/plugins/
fi
cd "/root/.mozilla/firefox/nq474mcm.default/extensions/flashaid@lovinglinux.megabyet.net/chrome/content/tmp" && rm -f *flash* && wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.228/install_flash_player_11_linux.i386.tar.gz
NEWHASH32=$(md5sum *flash* | sed 's/ .*//g')
if [ "${NEWHASH32}" == '174a9e778a11559d65f66290b16e2088' ];then
tar xvf *flash* libflashplayer.so && mv libflashplayer.so ~/.mozilla/plugins/ && rm -f *flash*
else
echo 'Flash 32bit installation aborted, due to md5 checksum mismatch!'
rm -f *flash*
fi
echo '***************************************************************************
*************************Starting tweaking commands************************
***************************************************************************
***************************************************************************'
TWEAK=$(cat /etc/adobe/mms.cfg | grep 'OverrideGPUValidation')
if test -z "${TWEAK}";then
echo 'OverrideGPUValidation=true' | sudo tee -a /etc/adobe/mms.cfg
fi
cat /etc/adobe/mms.cfg | sed '/EnableLinuxHWVideoDecode=1/d' | sudo tee /etc/adobe/mms.cfg
NPVIEWER=/usr/lib/nspluginwrapper/i386/linux/npviewer
if test -f "${NPVIEWER}";then
cat /usr/lib/nspluginwrapper/i386/linux/npviewer | sed '/export GDK_NATIVE_WINDOWS=1/d' | sudo tee /usr/lib/nspluginwrapper/i386/linux/npviewer
fi
echo -n "***************************************************************************
******FINISHED! You can close this terminal and restart Firefox now.*******
***************************************************************************
***************************************************************************" && read
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.