# Annoto Player

## Install dependencies

```sh
npm install
```

## Development

```sh
npm start
```

This will build, watch for source changes and serve on http://localhost:9001

To only build for development and watch for changes without serving:

```sh
npm run watch
```

### Vimeo

Open browser at http://localhost:9001?pt=vimeo&v=253538285

### Youtube

Open browser at http://localhost:9001/?pt=youtube&v=uT_GcOGEFsk

### Direct video src

Open browser at http://localhost:9001?v=https%3A%2F%2Fcommondatastorage.googleapis.com%2Fgtv-videos-bucket%2Fsample%2FElephantsDream.mp4

> set `v` query param to uri encoded media source (can be any html5 valid media or HLS stream)

## Production

### Build

```sh
npm run build
```

### Build and publish Docs

```sh
npm run docs-publish
```
