Prism as a TV

capture_02252009_194641I know I said that the next Prism related post I would be doing was one on manually installing an addon, but it’s taking me more time to get to than I had hoped. However, I do have another use for Prism that I’d like to share right now. I’ve been using Prism as a tool for creating TV show specific browsers for video sites. Veoh specifically, but I’m pretty sure you can do this for other video sharing sites as well.

Basically what I’ve done is used Prism to create a new webapp that points to the search URL of Veoh with a single program as the search term. For instance, right now I’m following the anime Toradora.

capture_02252009_194818To create the webapp, I’ve chosen to place a link on my desktop, used the search link above, and enabled the navigation keys for Prism:

Alt+Back Arrow = Back in History
Alt+Forward Arrow = Forward in History
Alt+Home = Home Page for webappX
etc.

Veoh Search Link:

http://www.veoh.com/search/videos/q/your+search+here

Prism automatically pulls the site’s favicon as the desktop icon (has anyone else experienced problems with Prism not correctly installing the icon from pre-bundled webapps?).

Other places where this could be useful (other than setting up your own custom television station on your desktop with play-on-demand access)? The instructors for the courses I’m taking right now at ECU via the web often put class lectures on both YouTube and ECU’s own servers (depending on the class and the web-savvy-ness of the instructor). This would be a perfect way to distribute these movies to students, simply by placing the right URL into Prism and bundling the webapp, you can create a feed specific video channel for student consumption.

Other thoughts on this process:

  • The ability to uninstall webapps would be useful. Manual uninstalls, while not difficult, are a pain.
  • An addon or webapp script for Prism to load into the sidebar with links or buttons corresponding to pre-configured feeds/pages to change the currently viewed page so that you can “change channels.”
  • Along those same lines, an addon with FF3’s built-in feed reader which would load into the sidebar would be a nifty means of navigating a number of pre-configured links… yes that would be nifty indeed…

HowTo – Make Your Own WebApp

This is just a quick howto on making your own WebRunner/Prism webapp file. This is a very simple process and shouldn’t take more than a few minutes of your time. There are a couple of tools you need however, to get started.

  • a file archiver – my favorite is 7-zip, but you can just as easily use any archiving program that is compatible with zip files
  • a text plain text editor

For more advanced webapps, a more advanced context highlighting text editor can be helpful for coding custom style sheets or adding javascript customizations. And don’t forget icons! I use a combination of Paint.Net and @icon sushi (which covers everything but MacOS, which is because I can’t seem to find software for Linux or Windows to accommodate icons for it – recommendations anyone?).

The No “.webapp” WebApp

There are several ways to open webpages with Prism or WebRunner. The first and easiest is to install Prism, then create a link to it on your desktop. Then change that link adding the option “-uri” and the url of the page you want to open. Here are two examples:

Windows:
c:\your\path\to_prism\prism.exe -uri http://web_url_of_site c:\your\path\to_prism\prism.exe -uri c:\location\of\local_file

GNU/Linux:
/your/path/to_prism/prism -uri http://web_url_of_site /your/path/to_prism/prism -uri /location/of/local_file

This method does not require a webapp file, it just launches the website or file you specify. This means, no icons are required, but you also don’t get to add any custom themes or js files. This would be a really good method to use with applications like Wiki on a Stick (woas).

WebApp Bundles

The second method is also pretty straight forward (until you make it complex by adding more functionality). For the most basic webApp bundle you only need to create one file; the webapp.ini. Here’s the content from the example webapp.ini on the Prism wiki:

[Parameters] id=unique-app-id@unique-author-id.whatever uri=http://[the-url-what-you-want-to-connect-to]/ status=yes location=no sidebar=no navigation=no

The “id” parameter is required to be unique. I’ve been using my website’s url (as most others have done as well) preceded by the name of the site, but any unique identifier will work. The “uri” parameter is required and will accept both url of the target website as well as local file paths. Everything after that appears to be optional and the values show are the defaults. These remaining parameters are options to tell Prism whether or not to show certain GUI elements (“status” = status bar;”location” = address bar;”sidebar” = sidebar;”navigation” = well, quite frankly, I have no idea – maybe navigation buttons that haven’t been implemented yet?).

The next step after saving your changes to this document, is to use your archiving program to zip up this file creating, as an example, “your_webapp.zip”. Replace the “zip” extension with “webapp” and you’re ready to roll! Now either double click the webapp file or you can launch the webapp from the command line thusly:

Windows:
c:\your\path\to_prism\prism.exe -webapp your_webapp_bundle

GNU/Linux:
/your/path/to_prism/prism -webapp your_webapp_bundle

For more advanced webapps you can add icons, scripting and style sheet support (see the Prism page for more details).

Happy coding!

Prism
Prism/WebApp Bundle
Prism/Scripting
Prism/Styling
7-Zip
Paint.Net
@icon sushi
Wiki on a Stick

YAWA – Yet Another WebApp for Prism/WebRunner

nin remix screen capI’ve been checking out the phenomenal NIN remix site and I thought to myself, wow how nice that a site that empowers you with the ability to take part in the musical experience – free of charge – is also a perfect candidate for a WebApp!

Included in this webapp are the source files for the icon I created using Paint.Net (so you can change the background color or make other changes if you’d like – just keeping within the remix/open culture vein) . Enjoy!

Remix – NIN Remix site

Remix.NIN-WebApp (let me know what you think!)

Prism/WebRunner