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

@creative-realities/rvhost

v3.2.5

Published

CRI RVHost SDK for application development on players

Downloads

26

Readme

# RVHost 3.2.5

An API for the CRI ReflectView player ecosystem.

Updates

getContentSnapshot implementation

Features

  • Support for BrightSign, Android, and Windows Chromium.
  • Bundle types include - Modern, Commonjs, ESM, and UMD.
  • Includes the RVPopup and RVInactive Timeout API's.
  • Full player specific unit testing.
  • Written in Typescript | Supports Typescript.

Installation & Setup

Install by running: npm -i @creative-realities/rvhost

Setup by running:

import RVHost from 'rvhost3';

const rvhost = RVHost.getRVHost()

Usage & Configuration

RVHost exposes a singleton class that allows you to interact with the ReflectView player. You first need to gain access to this instance by calling the getRVHost() method. Storing this instance on a property you can then check to see if the API is exposed (See above Installation and Setup). To see if your running browser has the ReflectView RVHost API exposed, check to see if the property isRunnable is true.

const rvHost = RVHost.getRVHost()
if (rvHost.isRunnable) {
	... interface with the API methods here.
}

Unit Testing (added in minor 3.1.0)

Run pnpm test:unit to run unit tests. The BrightSign platform is tested by default. Android and Chromium may be tested by changing testPlatform to "Android" or "Chromium" and re-running the tests.

Build

The package uses microbundlejs to build the javacript library. After cloning the repo from source and installing with your favorite package manager, simply run the package.json build command. A lib folder will be created with all the different bundle types along with the typescript declaration file.

Supported API's

  • getHostInfo : Get the host info the player.
  • getLocationInfo : Get the location info of the player.
  • getClassifications : Get any location classifications setup for the player in publisher.
  • getContentSnapshot : Get a snapshot of valid content for a specified channel on the player.
  • getChannelClassifications : Get the specified classifications for the given channel.
  • getChannelContainers : Get the related guids for available containers on the player.
  • getFeedChannelContainers : Get the related guids for available feed containers on the player. You can get this by either provided the feed instance UID or by the feed channel name.
  • getContainer : Get the container for the specified channel and guid on the player.
  • getInstanceProperties : Get the instance properties provided by any defined properties from ReflectView Publisher.
  • exit : Exit the current browser instance.
  • log : log a string or stringified object to the player logs.

Configurable API's

  • Popup API : Advanced API for handling player popups.