# tntesting2

> This is the core test package

Latest version **1.0.2** (published 2017-11-17) · SEE LICENSE IN LICENSE.TXT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-11-17 |
| First published | 2017-11-17 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE.TXT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | nanocosmos IT GmbH |
| 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/tntesting2
- npm.io page: https://npm.io/package/tntesting2

## 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

- 1.0.2 (latest) — 2017-11-17
- 1.1.0 (beta) — 2017-11-17
- 1.0.1 — 2017-11-17
- 1.0.0 — 2017-11-17

## 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)

# NanoCore - 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 Core of the H5Live Player Javascript Client for plugin-free low-latency playback in Web Browsers and Apps.
It can be included via script tag or requirejs.

This package contains the nanocore.min.js (including a flash fallback functionality) and the nanocore.h5live.min.js (h5live only).

## 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 tntesting2
```

## Quick Start

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

```js
<div id="playerDiv" class="player"></div>
<script type="text/javascript" src="./node_modules/nanocore/nanocore.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
        }
    };
    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
        }
    };
    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/nanocore/nanocore.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 (NanoPlayer)

This docs are for the whole NanoPlayer. They match also for the NanoCore excluding the view (config.style is not present). 

* [Documentation][documentation-url]

## License

* [SEE HERE][license-url]

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

[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/tntesting2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
