3.7.2 • Published 1 year ago

@liveryvideo/interactive v3.7.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Livery Interactive Client

This is a frontend application for Livery interactive video client

Getting Started

Dependencies

  • node
  • nvm
  • yarn@1

Installing

nvm use
yarn install

Executing program

yarn start

Testing

This project used jest for unit testing and cypress for e2e testing

  • Run all unit tests
yarn test
  • Run logic tests
yarn test:application
  • Run ui tests
yarn test:ui
  • Run e2e tests
yarn cy:run
yarn cy:open
  • Open e2e dashboard
yarn cy:open

Cloud Cypress dashboard

Publishing

Pipeline Trigger

  • Merge feature PR into development
  • Go to CircleCI project, select development branch, and press Trigger Pipeline
  • Add version parameter. Accepts string value. patch, minor, or major should be mainly used but a custom string is also supported

Pull Request Trigger

  • Merge feature PR into development
  • Merge development PR into main. The main branch will trigger the increment_package_version CircleCI job
  • Defaults to patch updates. Add [npm minor] or [npm major] to the latest commit message to trigger the equivalent version updates
  • For PRs: add the [npm X] tag to the merge commit of the PR to trigger the expected version update

Usage

This interactive client can be embedded within the Livery Video Player two ways: iFrame and web component.

iFrame

The project's build flow is set up to generate a deployable bundle to any environment handled in Ex Machina's devops panel. All files and assets are deployed to the specified environment and loaded within the iFrame.

Example test URL: https://embed.livery.live/?id=5ddb98f5e4b0937e6a4507f2&livery_interactive=https://dev-stable.interactive.livery.live?livery_tenantid=____8SDWDJfHfXtGwM0AAA==

The livery_interactive query parameter can be replaced with any URL and that URL will be loaded in the iFrame.

Web component

The project's build flow is set up to generate a package that gets published to NPM that can then be loaded by the video player. This package injects the interactive client into a custom element added by the video player.

Package URL: https://www.npmjs.com/package/@liveryvideo/interactive

Example test URLs:

The livery_interactive query parameter is split into <package version>;<region>;<tenant ID>. Package version is the version published to NPM or latest. Region is the environment name that the backend is hosted on (for example dev-stable for backend.dev-stable.interactive.livery.live). Tenant ID is the id of the tenant to be used.

To test and develop the web component locally a proxy (ie. Charles Proxy) has to be used to map https://cdn.jsdelivr.net/npm/@liveryvideo/interactive@latest to a local build of the package.

0 - install and set up charles notion 1 - add cdn.jsdelivr.net tp SSL proxy. 2 - run build:package_hot command 3 - map https://cdn.jsdelivr.net/npm/@liveryvideo/interactive@latest to http://localhost:8080/index.js 4 - open dev/dev-stable and source code should be from your local machine

Contributors

Contributors names and contact info

License

This project is licensed under the MIT License

3.7.2

1 year ago

3.7.1

1 year ago

3.6.5

1 year ago

3.6.4

1 year ago

3.6.2

1 year ago

3.6.3

1 year ago

3.6.1

1 year ago

3.6.0

1 year ago

3.5.13

1 year ago

3.5.12

1 year ago

3.5.11

1 year ago

3.5.10

1 year ago

3.5.9

1 year ago

3.5.8

1 year ago

3.5.6

1 year ago

3.5.5

2 years ago

3.5.3

2 years ago

3.5.2

2 years ago

3.5.1

2 years ago

3.4.6

2 years ago

3.4.5

2 years ago

3.5.0

2 years ago

3.4.4

2 years ago

3.4.3

2 years ago

3.4.2

2 years ago

3.4.1

2 years ago

3.4.0

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.14

2 years ago

3.0.13

2 years ago

3.0.12

2 years ago

3.0.11

2 years ago

3.0.10

2 years ago

3.0.9

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.1.5

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.2-alpha.1

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago