0.3.0 • Published 2 years ago

@ltmp/components v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Purpose

A reusable template for getting started with Microsoft's FAST Element web component library.

What's included?

  • Typescript setup
  • Web-dev-server
  • Web-test-runner
  • Initial structure
  • Example counter component with tests.
  • Changelog generation with standard-changelog
  • Linting with ts-standard
  • Custom Elements manifest generation

Getting started

Click the clone from template button on Github.

Then, in your new repo do the following:

yarn install
yarn start

Navigate to localhost:8000 and find the magic of the counter component.

Moving forward

Check out the package.json for all possible scripts.

Documentation

<audio-playlist>

The <audio-playlist> is a web component designed to make it easy to setup a playlist.

The <audio-playlist> elements has a number of internal methods you can use to create your own controls.

Usage

import "@ltmp/components"
Controls

<audio-playlist controls></audio-playlist> will render an audio-playlist with controls on it for play, pause, forward, backwards, scrubbing, etc.

Hls

To use hls, you must first bind hls.js to the window. If your bundler doesnt support UMD format, you may have to import Hls from a CDN and attach it to window.Hls. Regardless, the audio-playlist component will look for window.Hls from hls.js to be able to attach HLS behavior.

Once you have window.Hls bound, you can do this:

<audio-playlist controls hls></audio-playlist> and then you have an HLS audio playlist player!

0.3.0

2 years ago

0.1.0

3 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.2

3 years ago