npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ng-amp

v2.0.2

Published

An Azure Media Player component for Angular.

Downloads

50

Readme

Angular Azure Media Player

An Azure Media Player component for Angular.

NPM

Overview

Azure Media Player (AMP) is a web video player built to playback media content from Azure Media Services on a wide variety of browsers and devices. This project provides an angular component that wraps the raw js/css player for basic use cases.

To use this component, you must first upload a video to media services, encode it, and get a streaming endpoint.

Usage

Step 1: Install the ng-amp package

npm install --save ng-amp

Step 2: Import the NgAmpModule

import { NgAmpModule } from  'ng-amp'
@NgModule({
  declarations: [AppComponent],
  imports: [NgAmpModule],
  bootstrap: [AppComponent]
})
export class AppModule {}

Step 3: Use the module

<ng-amp
  src="//amssamples.streaming.mediaservices.windows.net/3b970ae0-39d5-44bd-b3a3-3136143d6435/AzureMediaServicesPromo.ism/manifest"
  [controls]="true"
  [autoplay]="true"
  width="640"
  height="360"
  [fluid]="false"
  >
</ng-amp>

Configuration

This package exposes the commonly-used configuration from the media player. You can find detailed explanations for each option on the AMP documentation. | Input | Type | Default | Required | Description | | ------------- | ------------- | ------------- | ------------- | ------------- | | src | string | none | yes | URL to the manifest for the asset | | [controls] | boolean | true | no | Whether or not the player has controls that the user can interact with | | [autoplay] | boolean | false | no | Controls if the video will start playing as soon as page is loaded | | poster | string | none | no | The image that displays before the video begins playing | | width | number | none | no | Display width of the video | | height | number | none | no | Display height of the video | | [fluid] | boolean | false | no | Controls if video element will take full width of the parent container |

Contributing

Run these commands from the root (ng-azure-media-player) of the repo.

Build the library

ng build ng-amp

This step must be repeated every time a change is made to the library.

Build and serve the host project

ng serve

The host project should now be hosted at http://localhost:4200.

Publish the library

npm run package
cd dist/ng-amp/
npm publish