Skip to content

Commit 0d64f7b

Browse files
authored
Merge pull request #191 from millicast/develop
Release v0.1.34
2 parents 18f118c + bf90bb8 commit 0d64f7b

File tree

20 files changed

+5391
-5083
lines changed

20 files changed

+5391
-5083
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@
77
This Software Development Kit (SDK) for JavaScript allows developers to simplify Millicast services integration into their own web apps.
88

99
## Table of Contents
10-
* [Installation](#installation)
11-
* [Basic Usage](#basic-usage)
12-
* [API Reference](#api-reference)
13-
* [Samples](#samples)
14-
* [SDK developer information](#sdk-developer-information)
15-
* [License](#license)
10+
- [Millicast SDK for JavaScript](#millicast-sdk-for-javascript)
11+
- [Table of Contents](#table-of-contents)
12+
- [Installation](#installation)
13+
- [Basic Usage](#basic-usage)
14+
- [Publisher app](#publisher-app)
15+
- [Viewer app](#viewer-app)
16+
- [API Reference](#api-reference)
17+
- [Samples](#samples)
18+
- [SDK developer information](#sdk-developer-information)
19+
- [License](#license)
1620

1721

1822
## Installation
@@ -25,7 +29,7 @@ Or if you are building an application with Node.js, you can install the SDK pack
2529

2630

2731
```sh
28-
$ npm i --save @millicast/sdk
32+
npm i --save @millicast/sdk
2933
```
3034

3135
## Basic Usage

developer-info.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ This project is built with [Lerna](https://lerna.js.org/) and contains the follo
1010
## Development
1111
Asumming that you have Node 12.10.x or newer and `npm` installed, install the required dependencies running:
1212
```sh
13-
$ npm ci
13+
npm ci
1414
```
1515
### Building packages
1616
As the project is built using [Lerna](https://lerna.js.org/), we can rely on it to manage our packages dependencies, so you just need to run at project's root directory
1717
```sh
18-
$ npm run prepare
18+
npm run prepare
1919
```
2020

2121
Next, to build all packages add a `.env` file in both demo packages (`millicast-publisher-demo`, `millicast-viewer-demo` & `millicast-chromecast-receiver`). You can find the following example in `.env.sample`:
@@ -28,26 +28,26 @@ MILLICAST_PUBLISH_TOKEN=test
2828

2929
Then, build all packages:
3030
```sh
31-
$ npm run build
31+
npm run build
3232
```
3333

3434
Optionally you can run other Lerna command using `npx lerna [command]`.
3535

3636
### Running demo
3737
If you want to add, fix or edit features in SDK, or just try our demo pages, run:
3838
```sh
39-
$ npm run start
39+
npm run start
4040
```
4141
It opens in your browser both demos and keep watching changes in all packages, so you only need to refresh both pages if you add changes in code.
4242

4343
### Building docs
4444
The SDK documentation is written with [JSDcos](https://jsdoc.app/), so to build documentation to get HTMLs files run:
4545
```sh
46-
$ npx lerna run build-docs
46+
npx lerna run build-docs
4747
```
4848

4949
Or if you want to navigate docs in your localhost run:
5050
```sh
51-
$ npx lerna run start-docs --stream
51+
npx lerna run start-docs --stream
5252
```
5353
In the logs you find the link where you can access to docs. By default is running at http://localhost:5000.

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "0.0.0"
5+
"version": "0.1.34"
66
}

packages/millicast-chromecast-receiver/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (process.env.ROLLUP_WATCH) {
1616
serve({
1717
open: true,
1818
contentBase: 'dist',
19-
port: 10002
19+
port: 10004
2020
})
2121
]
2222
}

packages/millicast-publisher-demo/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ MILLICAST_STREAM_NAME=yourStreamName
88
MILLICAST_ACCOUNT_ID=yourAccountId
99
MILLICAST_PUBLISH_TOKEN=yourPublishToken
1010
```
11+
12+
Install all dependencies using:
13+
```sh
14+
npm ci
15+
```
16+
1117
## Run
1218
To start running this demo, the following command will publish the app at `http://localhost:10001` and enter in watching mode.
1319
```sh

packages/millicast-sdk/docs-translations/en/Director.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
"<p><em>Deprecated, use options parameter instead</em> Token to subscribe to secure streams. If you are subscribing to an unsecure stream, you can omit this param.</p>": "<p><em>Deprecated, use options parameter instead</em> Token to subscribe to secure streams. If you are subscribing to an unsecure stream, you can omit this param.</p>",
2828
"<p>Promise object which represents the result of getting the subscribe connection data.</p>": "<p>Promise object which represents the result of getting the subscribe connection data.</p>",
2929
"<p>Object which represents a list of Ice servers.</p>": "<p>Object which represents a list of Ice servers.</p>",
30-
"<p>Simplify API calls to find the best server and region to publish and subscribe to.\nFor security reasosn all calls will return a <a href=\"https://jwt.io\">JWT</a> token forn authentication including the required\nsocket path to connect with.</p>\n<p>You will need your own Publishing token and Stream name, please refer to <a href=\"https://docs.millicast.com/docs/managing-your-tokens\">Managing Your Tokens</a>.</p>": "<p>Simplify API calls to find the best server and region to publish and subscribe to.\nFor security reasosn all calls will return a <a href=\"https://jwt.io\">JWT</a> token forn authentication including the required\nsocket path to connect with.</p>\n<p>You will need your own Publishing token and Stream name, please refer to <a href=\"https://docs.millicast.com/docs/managing-your-tokens\">Managing Your Tokens</a>.</p>"
31-
}
30+
"<p>Simplify API calls to find the best server and region to publish and subscribe to.\nFor security reasosn all calls will return a <a href=\"https://jwt.io\">JWT</a> token forn authentication including the required\nsocket path to connect with.</p>\n<p>You will need your own Publishing token and Stream name, please refer to <a href=\"https://docs.dolby.io/streaming-apis/docs/managing-your-tokens\">Managing Your Tokens</a>.</p>": "<p>Simplify API calls to find the best server and region to publish and subscribe to.\nFor security reasosn all calls will return a <a href=\"https://jwt.io\">JWT</a> token forn authentication including the required\nsocket path to connect with.</p>\n<p>You will need your own Publishing token and Stream name, please refer to <a href=\"https://docs.millicast.com/docs/managing-your-tokens\">Managing Your Tokens</a>.</p>"
31+
}

packages/millicast-sdk/docs-translations/en/Publish.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@
2424
"<p>Initialize recording in an active stream.</p>": "<p>Initialize recording in an active stream.</p>",
2525
"<p>Finalize recording in an active stream.</p>": "<p>Finalize recording in an active stream.</p>",
2626
"<p>Manages connection with a secure WebSocket path to signal the Millicast server\nand establishes a WebRTC connection to broadcast a MediaStream.</p>\n<p>Before you can broadcast, you will need:</p>\n<ul>\n<li>\n<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API\">MediaStream</a> which has at most one audio track and at most one video track. This will be used for stream the contained tracks.</p>\n</li>\n<li>\n<p>A connection path that you can get from {@link Director} module or from your own implementation.</p>\n</li>\n</ul>": "<p>Manages connection with a secure WebSocket path to signal the Millicast server\nand establishes a WebRTC connection to broadcast a MediaStream.</p>\n<p>Before you can broadcast, you will need:</p>\n<ul>\n<li>\n<p><a href=\"https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API\">MediaStream</a> which has at most one audio track and at most one video track. This will be used for stream the contained tracks.</p>\n</li>\n<li>\n<p>A connection path that you can get from {@link Director} module or from your own implementation.</p>\n</li>\n</ul>",
27-
"<p>Specify which events will be delivered by the server (any of &quot;active&quot; | &quot;inactive&quot; | &quot;viewercount&quot;).*</p>": "<p>Specify which events will be delivered by the server (any of &quot;active&quot; | &quot;inactive&quot; | &quot;viewercount&quot;).*</p>"
27+
"<p>Specify which events will be delivered by the server (any of &quot;active&quot; | &quot;inactive&quot; | &quot;viewercount&quot;).*</p>": "<p>Specify which events will be delivered by the server (any of &quot;active&quot; | &quot;inactive&quot; | &quot;viewercount&quot;).*</p>",
28+
"<p>Initialize recording in an active stream and change the current record option.</p>": "<p>Initialize recording in an active stream and change the current record option.</p>",
29+
"<p>Finalize recording in an active stream and change the current record option.</p>": "<p>Finalize recording in an active stream and change the current record option.</p>"
2830
}

packages/millicast-sdk/docs-translations/en/Signaling.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@
4545
"<p>Override which events will be delivered by the server (&quot;active&quot; | &quot;inactive&quot; | &quot;vad&quot; | &quot;layers&quot;).</p>": "<p>Override which events will be delivered by the server (&quot;active&quot; | &quot;inactive&quot; | &quot;vad&quot; | &quot;layers&quot;).</p>",
4646
"<p>Select the simulcast encoding layer and svc layers for the main video track, leave empty for automatic layer selection based on bandwidth estimation.</p>": "<p>Select the simulcast encoding layer and svc layers for the main video track, leave empty for automatic layer selection based on bandwidth estimation.</p>",
4747
"<p>Override which events will be delivered by the server (&quot;active&quot; | &quot;inactive&quot;).</p>": "<p>Override which events will be delivered by the server (&quot;active&quot; | &quot;inactive&quot;).</p>",
48-
"<p>Passthrough of available Millicast broadcast events.</p>\n<p>Active - Fires when the live stream is, or has started broadcasting.</p>\n<p>Inactive - Fires when the stream has stopped broadcasting, but is still available.</p>\n<p>Stopped - Fires when the live stream has been disconnected and is no longer available.</p>\n<p>Viewercount - Fires when the viewer count changes.</p>\n<p>More information here: {@link https://docs.millicast.com/docs/web-draft#broadcast-events}</p>": "<p>Passthrough of available Millicast broadcast events.</p>\n<p>Active - Fires when the live stream is, or has started broadcasting.</p>\n<p>Inactive - Fires when the stream has stopped broadcasting, but is still available.</p>\n<p>Stopped - Fires when the live stream has been disconnected and is no longer available.</p>\n<p>Viewercount - Fires when the viewer count changes.</p>\n<p>More information here: {@link https://docs.millicast.com/docs/web-draft#broadcast-events}</p>"
49-
}
48+
"<p>Passthrough of available Millicast broadcast events.</p>\n<p>Active - Fires when the live stream is, or has started broadcasting.</p>\n<p>Inactive - Fires when the stream has stopped broadcasting, but is still available.</p>\n<p>Stopped - Fires when the live stream has been disconnected and is no longer available.</p>\n<p>Viewercount - Fires when the viewer count changes.</p>\n<p>More information here: {@link https://docs.dolby.io/streaming-apis/docs/web#broadcast-events}</p>": "<p>Passthrough of available Millicast broadcast events.</p>\n<p>Active - Fires when the live stream is, or has started broadcasting.</p>\n<p>Inactive - Fires when the stream has stopped broadcasting, but is still available.</p>\n<p>Stopped - Fires when the live stream has been disconnected and is no longer available.</p>\n<p>Viewercount - Fires when the viewer count changes.</p>\n<p>More information here: {@link https://docs.dolby.io/streaming-apis/docs/web#broadcast-events}</p>"
49+
}

packages/millicast-sdk/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/millicast-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@millicast/sdk",
3-
"version": "0.1.33",
3+
"version": "0.1.34",
44
"description": "SDK for building a realtime broadcaster using the Millicast platform.",
55
"keywords": [
66
"sdk",

0 commit comments

Comments
 (0)