Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * NinjaVideo JQUERY Call Script (which should be one of the frameworks available, but there should be more)
- *
- * Author: Third3ye
- * Version: 0.1
- * Timestamp: 12/11 2010 3:30
- */
- // The NV TV plugin, which has tools to import videos and related information,
- // is also pretty handy at locating necessary video playback plugins, as well
- // as additional parameters (to be continued...)
- $.getScript("jquery.nvtv.js");
- // The NV ART plugin, which is designed to automagically set up an easy to use
- // gallery on a page and call (using ajax) the content locally or via third party
- // providers (i.e "ninjavideo").
- $.getScript("jquery.nvart.js");
- $(document).ready(function() {
- $(".videopost").ninjaTV({
- showID: "683", // showID can be offered to retrieve show title, show description, date of origin, and original creator(s) (if the client asks for it)
- showDesc: true, // This variable is sent to the server, as a part of the initial request
- showCreators: true, // This one to! It will contain extra information and URLs
- showContributors: true; // also, this one
- showOriginDate: true // and this one as well. The reason being if it is set to false the server will not send the information
- showHost: "Wayne", // The author can provide a show host (in case the show is created with a host and writers, i.e "creators")
- episode: "34", // Do not be fooled, this isn't the longest season EVER! It's episode 4 season 3 :P
- });
- $(".gallery").ninjaART({
- galleryID "298", // This ID can be used to retrieve gallery name, description, date of origin, creator(s), and contributors
- showDesc: true,
- showCreators: true,
- showContributors: true;
- showOriginDate: true,
- perPage: "20", // How many items to show per page
- dynamicPages: true, // "Dynamic pages" mean dynamically reloaded pages, using ajax.
- cache: true, // This can only be used if the client has dynamic scripting that caches the pics from NV to the local server (this would be optimal for achiving pictures and saving bandwidth)
- });
- // Note that all the small differences in bits and bytes make a huge difference
- // in enterprise size web apps. The idea of these little examples is to provide
- // an easy way to integrate and optimize NV resources with NV tools without
- // having to rely on a third party service entirely. This relieves NV of some
- // bandwidth burdens and also allows more possibilities for costumizing the content
- // to the clients web-site ("client" being the people who are "served").
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement