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

liveplus-web-module

v1.0.1

Published

Live+ web npm package for easy integration of Live+ in any website

Downloads

4

Readme

LivePlus web module (npm)

The Live+ web SDK can be used to easily integrate the Live+ widget in a website.

How to use it

To integrate this, you will need to things :

  • your applicaster clientId (ask [email protected] to provide it to you)
  • a container with relative position to act as an anchor point for positionning the LivePlus widget itself. You can either specify the container's id when initializing the widget, or give it the id liveplus_widget_container which is the default setting. It is highly recommended that this container exactly fits your video player's position, width and height, for better positionning of the LivePlus widget.

install this module with npm :

$ npm install -S liveplus-web-module

This will add the module to your node_modules. You then just need to initialize the widget at the root of your app like this :

import LivePlus from 'liveplus-web-module';

let options = {clientId: ''} // your applicaster account Id - required
LivePlus.init(options);

and that's it ! Simply note that the LivePlus object will require the javascript document object to be available, as well as the container. So you should initialize the widget when DOM is loaded.

Configure your LivePlus widget

by default, the player positions itself on the right bottom corner of the given container, precisely at bottom: 100px and right: 20px, and bottom: 190px and right: 30px in fullscreen. You can customize this by passing other parameters to place it wherever you want.

Here is the default parameter's object. You can override any part you want, by passing an option object to the widget's init method. The actual config used is Object.assign({, defaultParams, options}), so any provided parameter will override the default one.

defaultParams = {
  containerId: "liveplus_widget_container",
  position: {
    bottom: 100,
    right: 20,
  },
  fullscreen: { // position parameters when entering fullscreen
    bottom: 190,
    right: 30
  }
}

API reference

The LivePlus object currently exposes two public methods :

  • init(options) : init method to be called with a proper options object as parameter to create the widget in the DOM.
  • toggleVisibility() : a method you can use to show / hide the Live+ widget. Use this method if you want to add a button to your video player to toggle the widget on & off.