All Projects → kaltura → playkit-js-ui

kaltura / playkit-js-ui

Licence: AGPL-3.0 license
UI Application Framework for the PlayKit JS Player

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to playkit-js-ui

kaltura-player-js
Kaltura Player JS Platform - Cloud TV and OVP Media Players
Stars: ✭ 83 (+232%)
Mutual labels:  kaltura, flow-typed, playkit-js
kaltura-player-android
Kaltura Player is a rich, easy to integrate and easy to use video player for all media types and ad scenarios you need. - based on Google ExoPlayer
Stars: ✭ 22 (-12%)
Mutual labels:  kaltura, playkit
kaltura-device-info-android
Kaltura Device Info
Stars: ✭ 26 (+4%)
Mutual labels:  kaltura, playkit
playkit-ios-samples
PlayKit Samples
Stars: ✭ 19 (-24%)
Mutual labels:  kaltura, playkit
snap-state
State management in a snap 👌
Stars: ✭ 23 (-8%)
Mutual labels:  preact
preact-journal
14k offline-capable journaling PWA using preact, node, MySQL, and IndexedDB.
Stars: ✭ 33 (+32%)
Mutual labels:  preact
luck-or-hardwork
Simple web-app to provide illustration about a take on luck and hard work.
Stars: ✭ 29 (+16%)
Mutual labels:  preact
preact-native
client native implement of preactjs(https://preactjs.com/)
Stars: ✭ 17 (-32%)
Mutual labels:  preact
preact-mdc
material design components for preact using material-components-web sass styles (for live demo click the link below)
Stars: ✭ 23 (-8%)
Mutual labels:  preact
fireworks-js
🎆 A simple fireworks library! Ready to use components available for React, Vue 3, Svelte, Angular, Preact, Solid, and Web Components.
Stars: ✭ 550 (+2100%)
Mutual labels:  preact
WorkerStore
Small React state container running inside WebWorker
Stars: ✭ 32 (+28%)
Mutual labels:  preact
fpreact
fpreact provides an alternative api for creating preact components, heavily inspired by elm.
Stars: ✭ 47 (+88%)
Mutual labels:  preact
esri-preact-pwa
An example progressive web app (PWA) using the ArcGIS API for JavaScript built with Preact
Stars: ✭ 13 (-48%)
Mutual labels:  preact
tailwind-layouts
Collection of Tailwind Layouts
Stars: ✭ 53 (+112%)
Mutual labels:  preact
macos-preact
macos-preact.now.sh
Stars: ✭ 1,019 (+3976%)
Mutual labels:  preact
preact-cli-plugin-netlify
Preact cli plugin for generating h2push headers and redirects rules for netlify
Stars: ✭ 25 (+0%)
Mutual labels:  preact
tic-tac-toe-app
Online multiplayer Tic Tac Toe game for iOS, Android, and web.
Stars: ✭ 34 (+36%)
Mutual labels:  preact
parcel-examples
Parcel project examples for React, Vue, preact, VanillaJS and jQuery.
Stars: ✭ 26 (+4%)
Mutual labels:  preact
bassdrum
reactive, type safe components with preact and rxjs.
Stars: ✭ 44 (+76%)
Mutual labels:  preact
preact-styled-jsx-demo
Preact + styled-jsx = 💞
Stars: ✭ 16 (-36%)
Mutual labels:  preact

PlayKit JS UI - UI Application Framework for the PlayKit JS Player

Build Status code style: prettier

PlayKit JS UI is a UI Application Framework for composing PlayKit JS Player UI.

The application uses Preact to manage virtual DOM and provide a declarative way for building UI and Redux to manage a predictable state container.

The PlayKit JS UI framework enables an easy and intuitive way of customize the UI to any purpose and design, either by simple CSS definitions or by letting application define it's entire layout.

The UI framework exposes a UIManager that handles the life cycle of the UI, and and a library of components which is used to build the UI layout, where each component is responsible of a specific functionality.

Components library contains any need of the UI, but can be extended to include any additional component an application will require.

The library also exposes its default presets, which can be used as-is™ or extended.

PlayKit JS UI is written in ECMAScript6, statically analysed using Flow and transpiled in ECMAScript5 using Babel.

Table of Contents

Getting Started

Prerequisites

The UI Manager expects a player that implements the PlayKit JS Player interface.

The UI Manager depends on Preact and Redux.

Installing

First, clone and run yarn to install dependencies:

git clone https://github.com/kaltura/playkit-js-ui.git
cd playkit-js-ui
yarn install

Building

Then, build the player

yarn run build

Embed the Player In Your Test Page

Finally, add the bundle as a script tag in your page, and initialize the player

<script type="text/javascript" src="/PATH/TO/FILE/playkit.js"></script>
<script type="text/javascript" src="/PATH/TO/FILE/playkit-ui.js"></script>
<div id="player-placeholder" style="height:360px;width:640px">
  <script type="text/javascript">
    var playerConfig = {...};
    var uiConfig = {targetId: "player-placeholder"};
    var player = playkit.core.loadPlayer(playerConfig);
    var uiManager = new playkit.ui.UIManager(player, uiConfig);
    uiManager.buildDefaultUI();
    player.play();
  </script>
</div>

Documentation

Running the Tests

Tests can be run locally via Karma, which will run on Chrome, Firefox and Safari.

yarn run test

You can test individual browsers:

yarn run test:chrome
yarn run test:firefox
yarn run test:safari

And Coding Style Tests

We use ESLint recommended set with some additions for enforcing Flow types and other rules.

See ESLint config for full configuration.

We also use .editorconfig to maintain consistent coding styles and settings, please make sure you comply with the styling.

Compatibility

TBD

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the AGPL-3.0 License - see the LICENSE.md file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].