# RVHost 3.2.5
An API for the CRI ReflectView player ecosystem.
getContentSnapshot implementation
- 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.
Install by running: npm -i @creative-realities/rvhost
Setup by running:
import RVHost from 'rvhost3';
const rvhost = RVHost.getRVHost()
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.
}
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.
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.
- 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.
- Popup API : Advanced API for handling player popups.