npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

flowplayer-vpaid

v1.3.0

Published

VPAID 2.0 (Flash/JS) support within Flowplayer 6 HTML

Downloads

8

Readme

flowplayer-vpaid

VPAID 2.0 (Flash/JS) support within Flowplayer 6 HTML

Note: This project is a work in progress and may not fulfill all of the VPAID 2.0 spec yet.

Behavior

  1. Create a flowplayer instance like you normally would.
  2. Invoke the attach method to listen for the vpaid_js event.
  3. When the event is fired, a vpaid container will overlap the video when the user attempts to play the video.
  4. After the vpaid container is closed/skipped/etc, it will disappear and the video will start.

Usage

If you do not want to fire the vpaid_js event your self (because you parsed your own VAST response), consider using the flowplayer-vast project.

Note: SWFObject is required to show flash creatives and you will need to host the VPAIDFlash.swf file.

var container = document.getElementById('div');

var player = flowplayer(container);

fpvpaid.attach({
    container: container,
    player: player,
    swfVpaid: '//domain.com/VPAIDFlash.swf',
    swfObject: '//domain.com/swfobject.js'
});

player.trigger('vpaid_js', [{
    src: 'http://site.com/file.js',
    attributes: '',
    tracker: {} // should be a DMVAST.tracker instance from the vast-client-js project
}]);

player.trigger('vpaid_swf', [{
    src: 'http://site.com/file.swf',
    attributes: '',
    tracker: {} // should be a DMVAST.tracker instance from the vast-client-js project
}]);

Changelog

  • 1.3.0: Update build to expose code as "fpvpaid" global variable when using dist/ files directly
  • 1.2.8: Hide overlay after ad is loaded
  • 1.2.7: Have to show overlay prior to init otherwise it can fail viewability tests
  • 1.2.6: Timeout if ad is never loaded
  • 1.2.5: Support autoplay and trigger events on player
  • 1.2.4: fix case sensitivity
  • 1.2.3: Play video on ad error
  • 1.2.2: Fix parameters and add timeout if unit doesn't play in time
  • 1.2.1: Preload vPAID ad to prevent delay on play
  • 1.2.0: API change, lazy load swfobject, edge cases and styling
  • 1.1.1: Ability to timeout if ad hasn't loaded
  • 1.1.0: Flash support
  • 1.0.2: Fix iframe showing under play button
  • 1.0.1: Dependency tweaks for easier downstream builds
  • 1.0.0: Initial release