Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@geins/ralph-module-streamify

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geins/ralph-module-streamify

Streamify module for Geins PWA Storefront Ralph

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

NPM Package NPM Downloads

Streamify module for Geins PWA Storefront Ralph

A module for Geins PWA Storefront Ralph that adds streamify liveshopping streams to your storefront.

Pre-requisites

Description

This module enables you to add streamify liveshopping streams to your storefront in seconds. You can add past, present or future streams.

Module can be used in any page of your storefront and is configuerd to work with Geins Cart out-of-box. Module can be added via Geins CMS or any CMS of your choice.

Installation

1. Install the module

npm i @geins/streamify-module

2. Add the module to your Geins PWA Storefront Ralph

Add the module to your Geins PWA Storefront Ralph by adding the following line to your nuxt.config.json file:

...
  modules: [
    [
        '@geins/ralph-module-streamify',
        {
            enabled: true,
            debug: true,
            apiToken: 'your-streamify-api-token',
        }
    ]
  ],

3. CaWidgetJson

3. If you already have overridden the CaWidgetJson

Module Options

Add extra options to module configuration in nuxt.config.json file.

ParameterDefaultExample
enabledtrueEnables the module
debugfalseEnables debug info to console
apiTokennoneYour token to use Streamify API
apiBaseUrlhttps://api.streamify.io'Base Url to API
apiEndpointGetStreams/live/broadcast?type=upcoming&direction=asc&per_page=1API Endpoint to list streams

Usage

Add component to desired page of your storefront. Either by cms or as a component. You can add id to the component to show a specific stream. If no id is added the component will show the next upcoming or live stream.

Component

Component name is CaWidgetStreamify.

Events

The component emits events that translates to your Geins Cart.

Properties

The properties of the component are one to one with the Streamify Floating Player API. You can add any property to the component and it will be passed to the API.

PropertyTypeDefault ValueRequiredDescription
configurationObject-NoConfiguration object to set properties for the widget
idString-YesThe ID of the stream
orientationString'landscape'NoThe orientation of the player. Possible values: 'landscape' or 'portrait'
playButtonBooleanfalseNoDetermines whether to show the play button
autoStartBooleanfalseNoOpens the minified player if the broadcast is live
persistentBooleantrueNoDetermines whether the player is persisted as a mini-player while navigating between pages
googleAnalyticsBooleantrueNoEnables Google Analytics integration
buttonTextString-NoThe text to customize the button in the banner. Defaults to the broadcast title if not set or used
hideButtonBooleanfalseNoDetermines whether to hide the play button in the banner
hideCalendarBooleanfalseNoDetermines whether to hide the calendar in the banner
hideTitleBooleanfalseNoDetermines whether to hide the title in the banner
infoButtonBooleantrueNoDetermines whether to display an info button if the broadcast has a description

The configuration object will be overriden by any property added to the component.

Use with Geins CMS

Add a JSON Widget to your page in the Geins CMS. Add the following JSON to your widget. Replace your-stream-id with the id of the stream you want to show. You can find the id in the Streamify App or in the Streamify.

{
  "renderWidget": "CaWidgetStreamify",
  "data": {
    "id": "your-stream-id",
    "orientation": "landscape",
    "autostart-if-live": "true",
    "button-text": "Watch the UNBOXING of the new iPhone",
    "ga": "true"
  }
}

All properties of the Stremify Floating Player JS can be added to the JSON. Read documentation here. Use the same name as in the streamify documentation to add properties to the JSON. The data part of the JSON is passed to the component as the configuration property.

If you want to show the next upcoming or live stream, remove the id property from the JSON.

As a component or with any CMS

Add the component to your page. Add the id of the stream you want to show as a property to the component. You can find the id in the Streamify App or in the Streamify.

<CaStreamify id="your-stream-id" />

Tips!

  • Add the component without an id and you can always start a live stream by adding a new stream in Streamify or starting a spontanius stream form your Streamify App.

  • Add the id of the stream to the component to keep past streams available on PDP pages.

Keywords

FAQs

Package last updated on 30 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc