# tntesting

> This is a test package

Latest version **0.0.8** (published 2017-11-14) · SEE LICENSE IN license.txt license · 0 weekly downloads

## Install

```sh
npm install tntesting
pnpm add tntesting
yarn add tntesting
bun add tntesting
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2017-11-14 |
| First published | 2017-08-02 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN license.txt |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thomas Niedergesäß |
| Maintainers | tniedergesaess |
| Keywords | h5live, nanoStream, nanocosmos, html5, low, latency, low latency, low-latency, web, player, client, browser, plugin free, plugin-free, playback, app, api, javascript |

## Links

- npm: https://www.npmjs.com/package/tntesting
- Homepage: http://nanocosmos.de/
- npm.io page: https://npm.io/package/tntesting

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2017-11-14
- 0.0.4 (beta) — 2017-09-28
- 0.0.7 — 2017-09-29
- 0.0.6 — 2017-09-29
- 0.0.5 — 2017-09-29
- 0.0.3 — 2017-09-28
- 0.0.2 — 2017-09-28
- 0.0.1 — 2017-08-02

## README

This package is for distribution on ```npm```.

[![Nanocosmos Logo](https://www.nanocosmos.de/v6/images/nclogo_429x127.png)](https://www.nanocosmos.de/v6/h5live)

# NanoPlayer - nanoStream h5live player


[![H5Live Scheme][h5live-scheme]](https://www.nanocosmos.de/v6/h5live)

[![NPM Version][npm-image]][npm-url]  [![NPM Downloads][downloads-image]][downloads-url]


## Description

The H5Live Player Javascript Client for plugin-free low-latency playback in Web Browsers and Apps.
It can be include via script tag or requirejs.

## Installation

This is a web-based low-latency javascript player client available through the [npm registry](https://www.npmjs.com/).

Installation is done using the [```npm install``` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):

```bash
$ npm install tntesting
```

## Quick Start

After the installation include the nanoplayer.min.js via script tag:

```js
<div id="playerDiv" class="player"></div>
<script type="text/javascript" src="./node_modules/nanoplayer/lib/nanoplayer.min.js"></script>
<script type="text/JavaScript">
    var player;
    var config = {
        "source": {
            "h5live": {
                "server": {
                    "websocket": "wss://h5live.nanocosmos.de:443/h5live/stream",
                    "hls": "https://h5live.nanocosmos.de:443/h5live/http/playlist.m3u8",
                    "progressive": "https://h5live.nanocosmos.de:443/h5live/http/stream.mp4"
                },
                "rtmp": {
                    "url": "rtmp://your.server.com/live",
                    "streamname": "yourStream"
                }
            }
        },
        "playback": {
            "autoplay": true,
            "muted": true
        },
        "style": {
            "controls": true
        }
    };
    document.addEventListener('DOMContentLoaded', function () {
        player = new NanoPlayer("playerDiv");
        player.setup(config).then(function (config) {
            console.log("setup success");
            console.log("config: " + JSON.stringify(config, undefined, 4));
        }, function (error) {
            alert(error.message);
        });
    });
</script>
```

or via requirejs:

```js
<div id="playerDiv" class="player"></div>
<script type="text/javascript" src="./path/to/require.js"></script>
<script type="text/javascript">
    var player;
    var config = {
        "source": {
            "h5live": {
                "server": {
                    "websocket": "wss://h5live.nanocosmos.de:443/h5live/stream",
                    "hls": "https://h5live.nanocosmos.de:443/h5live/http/playlist.m3u8",
                    "progressive": "https://h5live.nanocosmos.de:443/h5live/http/stream.mp4"
                },
                "rtmp": {
                    "url": "rtmp://your.server.com/live",
                    "streamname": "yourStream"
                }
            }
        },
        "playback": {
            "autoplay": true,
            "muted": true
        },
        "style": {
            "controls": true
        }
    };
    requirejs.config({
        paths: {
            // loads the player ...
            // for a local copy of the minified player use a relative path e.g. 'js/nanoplayer.min'
            // for a online copy of the minified player use a url e.g. '//demo.nanocosmos.de/nanoplayer/api/release/nanoplayer.min'
            // if 'baseUrl' is defined this path have to be relative to the base path
            nanoplayer: './node_modules/nanoplayer/lib/nanoplayer.min.js'
        },
        waitSeconds: 20, // timeout for loading modules
    });
    require(['nanoplayer'], function () {
        player = new NanoPlayer('playerDiv');
        player.setup(config).then(function (config) {
            console.log("setup success");
            console.log("config: " + JSON.stringify(config, undefined, 4));
        }, function (error) {
            alert(error.message);
        });
    });
</script>
```

## Release History

* [Release History][history-url]

## Docs

* [Documentation][documentation-url]

## Sample Demo

* [Offical Sample Demo Page][sample-url]

## License

* [SEE HERE][license-url]

[npm-image]: https://img.shields.io/npm/v/tntesting.svg
[npm-url]: https://npmjs.org/package/tntesting
[downloads-image]: https://img.shields.io/npm/dm/tntesting.svg
[downloads-url]: https://npmjs.org/package/tntesting

[documentation-url]: https://demo.nanocosmos.de/nanoplayer/docs/nanoplayer3
[history-url]: https://demo.nanocosmos.de/nanoplayer/docs/nanoplayer3/release-history.html
[sample-url]: https://www.nanocosmos.de/v6/h5live
[license-url]: https://demo.nanocosmos.de/nanoplayer/release/license.txt

[h5live-scheme]: https://i0.wp.com/www.nanocosmos.de/blog/wp-content/uploads/H5Live-Schema.png

---
_Source: https://npm.io/package/tntesting · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
