-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move Mediaosup as a collector to a monitor level * Add MediasoupProducerCollector for Mediasop Producer objects * Add MediasoupConsumerCollector for Mediasoup Consumer objects * Add MediasoupDataConsumerCollector for Mediasoup DataConsumer objects * Add MediasoupDataProducerCollector for Mediasoup DataProducer objects * Add MediasoupTransportCollector for Mediasoup Transport objects * Add MediasoupRouterCollector for Mediasoup Router objects * Add MediasoupWorkerCollector for Mediasoup Worker objects * Add CustomSfuEvent from schema 2.2.0 * Add Collector as an object * change readme accordingly * make add/remove collector boolean based * bugfix for PromiseFetcher if the min and max pacing time is equal * Add new interface for StatsReader to get monitored entry based on id * Make sample() method sync in SfuMonitor * Make send method sync and possible having a callback * Add per transport type pollStats supplier functions * Add tests to mediasoup collectors * fix test for timer, and fix bug that timer stays there even if there is no listener * infer transport type based on constructor * internal flag fix * fix empty polled stats problem
- Loading branch information
1 parent
67e21bf
commit f9f0b7c
Showing
95 changed files
with
18,617 additions
and
3,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"ignorePatterns": ["*.txt"], | ||
"rules": { | ||
plugins: ["@typescript-eslint"], | ||
ignorePatterns: ["*.txt"], | ||
rules: { | ||
"prefer-for-of": 0, | ||
"no-inferrable-types": 0, | ||
"no-explicit-any": 0, | ||
"ban-types": 0, | ||
"no-this-alias": 0, | ||
"no-non-null-assertion": 0, | ||
} | ||
} | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,42 @@ | ||
name: Publish | ||
on: | ||
push: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: NPM Install | ||
run: npm i | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: Install | ||
run: yarn | ||
|
||
# - name: NPM Test | ||
# run: npm run test | ||
- name: Build | ||
run: yarn build | ||
|
||
- name: Install | ||
run: yarn | ||
- name: Test | ||
run: yarn test | ||
|
||
- name: Build | ||
run: yarn build | ||
- name: Setup Custom Contexts | ||
shell: bash | ||
run: | | ||
echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" | ||
echo "##[set-output name=version;]$(cat ./package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')" | ||
id: job_context | ||
|
||
- name: Test | ||
run: yarn test | ||
- name: Make snapshot version | ||
if: steps.job_context.outputs.branch != 'master' | ||
run: | | ||
npm version ${{ steps.job_context.outputs.version }}-SNAPSHOT.${{ github.sha }} --git-tag-version false | ||
- uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
access: public | ||
token: ${{ secrets.NPM_TOKEN }} | ||
- uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
access: public | ||
token: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
name: Dispatch events to website repository | ||
on: | ||
push: | ||
branches: [ master ] | ||
push: | ||
branches: [master] | ||
jobs: | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Repository Dispatch | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.WEBSITE_REPO_ACCESS_TOKEN }} | ||
repository: ObserveRTC/website-3.0 | ||
event-type: updated-sfu-integrations | ||
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Repository Dispatch | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.WEBSITE_REPO_ACCESS_TOKEN }} | ||
repository: ObserveRTC/website-3.0 | ||
event-type: updated-sfu-integrations | ||
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ dist/ | |
lib/ | ||
keys/ | ||
yarn.lock | ||
todo.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"tabWidth": 4, | ||
"trailingComma": "es5", | ||
"printWidth": 120 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# 1.1.0 | ||
|
||
* use schema 2.2.0 | ||
* Add MediasoupMonitor, as a specialized SfuMonitor | ||
* Change Collectors interface, from now it is accessable through `monitor.collectors` | ||
* Export CustomSfuEvent from schema 2.2.0, and create method `addCustomSfuEvent` to the monitor | ||
* bugfix for PromiseFetcher if the min and max pacing time is equal | ||
* Make `sample` method sync instead of async | ||
* Fix bug of Timer stays live even there is no listener | ||
* Add tests for mediasoup monitor and collectors | ||
* Make mediasoup integration one line and everything is watched | ||
* Send keepalive samples for in-, and outbound rtp pad when polling stats and no bytes are flowing on them | ||
|
||
# 1.0.0 | ||
|
||
Init | ||
Init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.