XUL and XULRunner (co-starring flash)

Writing Thesis Phd After my first extension I decided to try something different and first I created a little (this time nothing new at all) and lightweight extension for grabbing flv videos while visiting youtube.com or video.google.com. It simply creates a statusbar icon and when there are availables flv on the page it will get active. Clicking on it let you save the current playing flv. You can also change the options and tell the extension to open the video using you favourite Video Player (Like VLC or FLVPlayer)

Business Plan Buying Real Estate First of all I have to say thanks to Darron Schall for his article on how-to embed swf files in xul. I was going crazy to understand all the steps for creating a valid xulrunner package..
As usual opensource sofware has bad and incomplete documentation. I need to look into one of the examples (chatzilla) to understand how it works.

Write My Paper Theatre In the installer a file named Academic Writing Online Help flvideoplayer.cfg will be copied inside the Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust direcory, and it’s content is

http://grekokatolicy.pl/?dissertation-service-uk-marketing Dissertation Service Uk Marketing

Master Thesis In Uk Well, fortunately there’s ffmpeg which does this job for everyone 🙂

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function execute_batch(bat) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
try
{
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(bat.path);
var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
process.init(file);
process.run(true, {}, 0);
} catch(e)
{
alert(e);
}
}

In order to run correctly this application you first have to:

Buy Cost Accounting Papers

  • Federico Bebber

  • College Essays Waste Management mozilla.org\GRE\1.8.0.4\GreHome
    corresponding to the path of your xulrunner.exe. Try also to launch yougrab from a command prompt (inside the yougrab installation dir):
    Steps To Write A Persuasive Essay xulrunner application.ini

  • Max

    Dissertation Writing Service Malaysia Nursing Is there any chance you could modify GetVideo to support other video sites, such as DailyMotion.com?

  • Pay For Essay Reviews Thanks for this nice article, Is it posible that you can tell me how i can make a installer from a xulrunner application and how to make the .exe to startup the application ?

  • Alessandro Crugnola
  • Xypher

    Get Video has stopped working with DailyMotion. Please can you fix this?
    Thank You!

  • jordan

    no matter what i do, i went through all the right step, along with someone that got getvideo to work, but no matter what i do, when i click on the icon while viewing a video on youtube it says “no video available” what am i doing wrong?

  • jordan

    so it works fine on google but not youtube, it says no video available…what can i do? is there a conflict with youtube i should know about? im on a mac. thanks

  • jordan

    soooo…now if i switch to google video first, then go to youtube, it says i have a video available.
    but then when i go to save it to disk, a blank popup download window comes up, and theres a blank getvideo file on my desk top. i switch it to an .flv file and still it wont open…whats going on? please help.

  • adam

    ive download the get video application from the firefox website. Have been on to youtube, but cant see a way to download the any video from that site.
    What am i doing wrong?
    Thanks

  • dougi

    Hi,
    I have to make work flash with xul. the only problem i hav come from the flash player security alert.
    – How do u do to copy a .cfg file during the installatation of the plugin in the flash player trust directory ?
    – I have tried to put as u say the xul file (chrome://) in the .cfg file and it does not work , i have to write the windows path.
    Thanks for your help.

  • Mark

    Hi,
    Where can I get the source code?
    Thanks

  • dougi

    Hi,
    Thank you for this example but i have somme questions.
    I need to insert a swf into my extension but like you of course, i ‘ve got a problem with the security sandbox.
    How do u do to copy a file during the installation of the xpi extension into the flasplayertrush directory ?
    For my test, i have manually copied the .cfg file into the right place and it only works if i put the entirely windows path of my extension and not the chrome uri of my xul container like in your example?
    Can u help me ?
    Thanks in advance.

  • Mark

    I have the following problems:
    1) When run the executable, only local (file://) flv files can be loaded. Attempting to load any other URI (e.g. http) fails)
    2) When using xulrunner.exe application.ini, not even local flv are loaded
    My configuracion: XP SP 2
    Xulrunner 1.8.0.4
    Could you verify?

  • hi,
    I’ve found this post very useful. I tried running this app on linux ( I copied and pasted the app folders from the installation location on windows) and tried running it using the latest xulrunner runtime (1.9.0.3). I altered application.ini to accommodate this.
    It appears to run fine (like my own test app) but these errors appear on the console:
    (Gecko:7883): GnomeUI-WARNING **: While connecting to session manager:
    Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
    (Gecko:7883): GLib-CRITICAL **: g_hash_table_unref: assertion `hash_table != NULL’ failed
    (Gecko:7883): GnomeUI-WARNING **: While connecting to session manager:
    Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
    (Gecko:7883): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)’ failed
    (Gecko:7883): GLib-CRITICAL **: g_hash_table_unref: assertion `hash_table != NULL’ failed
    if anyone has any ideas how to suppress/fix these please comment.
    thanks

  • Hi, Thank you for this example but i have somme questions. I need to insert a swf into my extension but like you of course, i ‘ve got a problem with the security sandbox. How do u do to copy a file during the installation of the xpi extension into the flasplayertrush directory ? For my test, i have manually copied the